fabric: Fix line length violations
This commit is contained in:
parent
0cf2f70818
commit
9692593095
4 changed files with 10 additions and 4 deletions
|
|
@ -135,7 +135,8 @@ final class FabricExecutor<C, S extends SharedSuggestionProvider> implements Com
|
||||||
if (throwable.getCause() instanceof CommandSyntaxException) {
|
if (throwable.getCause() instanceof CommandSyntaxException) {
|
||||||
this.sendError.accept(source, new TextComponent("Invalid Command Argument: ")
|
this.sendError.accept(source, new TextComponent("Invalid Command Argument: ")
|
||||||
.append(new TextComponent("")
|
.append(new TextComponent("")
|
||||||
.append(ComponentUtils.fromMessage(((CommandSyntaxException) throwable.getCause()).getRawMessage()))
|
.append(ComponentUtils
|
||||||
|
.fromMessage(((CommandSyntaxException) throwable.getCause()).getRawMessage()))
|
||||||
.withStyle(ChatFormatting.GRAY)));
|
.withStyle(ChatFormatting.GRAY)));
|
||||||
} else {
|
} else {
|
||||||
this.sendError.accept(source, new TextComponent("Invalid Command Argument: ")
|
this.sendError.accept(source, new TextComponent("Invalid Command Argument: ")
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,8 @@ public final class EntityAnchorArgument<C> extends CommandArgument<C, net.minecr
|
||||||
* @see CommandArgument.Builder#asOptionalWithDefault(String)
|
* @see CommandArgument.Builder#asOptionalWithDefault(String)
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*/
|
*/
|
||||||
public @NonNull Builder<C> asOptionalWithDefault(final net.minecraft.commands.arguments.EntityAnchorArgument.@NonNull Anchor defaultValue) {
|
public @NonNull Builder<C> asOptionalWithDefault(
|
||||||
|
final net.minecraft.commands.arguments.EntityAnchorArgument.@NonNull Anchor defaultValue) {
|
||||||
return this.asOptionalWithDefault(defaultValue.name());
|
return this.asOptionalWithDefault(defaultValue.name());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,10 @@ public final class FabricArgumentParsers {
|
||||||
private final CommandSourceStack source;
|
private final CommandSourceStack source;
|
||||||
private final net.minecraft.commands.arguments.coordinates.Coordinates posArgument;
|
private final net.minecraft.commands.arguments.coordinates.Coordinates posArgument;
|
||||||
|
|
||||||
CoordinatesImpl(final @NonNull CommandSourceStack source, final net.minecraft.commands.arguments.coordinates.@NonNull Coordinates posArgument) {
|
CoordinatesImpl(
|
||||||
|
final @NonNull CommandSourceStack source,
|
||||||
|
final net.minecraft.commands.arguments.coordinates.@NonNull Coordinates posArgument
|
||||||
|
) {
|
||||||
this.source = source;
|
this.source = source;
|
||||||
this.posArgument = posArgument;
|
this.posArgument = posArgument;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,8 @@ public final class NbtPathArgument<C> extends CommandArgument<C, net.minecraft.c
|
||||||
* @see CommandArgument.Builder#asOptionalWithDefault(String)
|
* @see CommandArgument.Builder#asOptionalWithDefault(String)
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*/
|
*/
|
||||||
public @NonNull Builder<C> asOptionalWithDefault(final net.minecraft.commands.arguments.NbtPathArgument.@NonNull NbtPath defaultValue) {
|
public @NonNull Builder<C> asOptionalWithDefault(
|
||||||
|
final net.minecraft.commands.arguments.NbtPathArgument.@NonNull NbtPath defaultValue) {
|
||||||
return this.asOptionalWithDefault(defaultValue.toString());
|
return this.asOptionalWithDefault(defaultValue.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue