mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 08:08:34 +00:00
Switch some Caption#of to TextComponent#of
This commit is contained in:
@ -213,7 +213,7 @@ public class RichMaskParser extends FaweParser<Mask> {
|
||||
return result;
|
||||
} catch (Throwable e2) {
|
||||
e2.printStackTrace();
|
||||
throw new InputParseException(Caption.of(e2.getMessage()));
|
||||
throw new InputParseException(TextComponent.of(e2.getMessage()));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -227,7 +227,7 @@ public class RichMaskParser extends FaweParser<Mask> {
|
||||
throw rethrow;
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
throw new InputParseException(Caption.of(e.getMessage()), e);
|
||||
throw new InputParseException(TextComponent.of(e.getMessage()), e);
|
||||
}
|
||||
List<Mask> maskUnions = new ArrayList<>();
|
||||
for (List<Mask> maskList : masks) {
|
||||
|
@ -57,7 +57,7 @@ public class LinearPatternParser extends RichParser<Pattern> {
|
||||
Set<Pattern> patterns = ((RandomPattern) inner).getPatterns();
|
||||
return new LinearBlockPattern(patterns.toArray(new Pattern[0]));
|
||||
}
|
||||
throw new InputParseException(Caption.of("Pattern " + inner.getClass().getSimpleName()
|
||||
throw new InputParseException(TextComponent.of("Pattern " + inner.getClass().getSimpleName()
|
||||
+ " cannot be used with " + getPrefix()));
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ public class RandomFullClipboardPatternParser extends RichParser<Pattern> {
|
||||
}
|
||||
return new RandomFullClipboardPattern(clipboards, rotate, flip);
|
||||
} catch (IOException e) {
|
||||
throw new InputParseException(Caption.of(e.getMessage()), e);
|
||||
throw new InputParseException(TextComponent.of(e.getMessage()), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,7 @@ public class RichPatternParser extends FaweParser<Pattern> {
|
||||
return result;
|
||||
} catch (Throwable e2) {
|
||||
e2.printStackTrace();
|
||||
throw new InputParseException(Caption.of(e2.getMessage()));
|
||||
throw new InputParseException(TextComponent.of(e2.getMessage()));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -189,7 +189,7 @@ public class RichPatternParser extends FaweParser<Pattern> {
|
||||
throw rethrow;
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
throw new InputParseException(Caption.of(e.getMessage()), e);
|
||||
throw new InputParseException(TextComponent.of(e.getMessage()), e);
|
||||
}
|
||||
if (patterns.isEmpty()) {
|
||||
return null;
|
||||
|
@ -126,7 +126,7 @@ public class RichTransformParser extends FaweParser<ResettableExtent> {
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
throw new InputParseException(Caption.of(e.getMessage()), e);
|
||||
throw new InputParseException(TextComponent.of(e.getMessage()), e);
|
||||
}
|
||||
if (!intersection.isEmpty()) {
|
||||
if (intersection.size() == 1) {
|
||||
|
@ -168,7 +168,7 @@ public class ConsumeBindings extends Bindings {
|
||||
try {
|
||||
return getWorldEdit().getBlockFactory().parseFromInput(argument, parserContext);
|
||||
} catch (NoMatchException e) {
|
||||
throw new InputParseException(Caption.of(e.getMessage()));
|
||||
throw new InputParseException(TextComponent.of(e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user