fabric: Fix line length violations

This commit is contained in:
Jason Penilla 2021-06-13 16:20:36 -07:00 committed by Jason
parent 0cf2f70818
commit 9692593095
4 changed files with 10 additions and 4 deletions

View file

@ -135,7 +135,8 @@ final class FabricExecutor<C, S extends SharedSuggestionProvider> implements Com
if (throwable.getCause() instanceof CommandSyntaxException) {
this.sendError.accept(source, new TextComponent("Invalid Command Argument: ")
.append(new TextComponent("")
.append(ComponentUtils.fromMessage(((CommandSyntaxException) throwable.getCause()).getRawMessage()))
.append(ComponentUtils
.fromMessage(((CommandSyntaxException) throwable.getCause()).getRawMessage()))
.withStyle(ChatFormatting.GRAY)));
} else {
this.sendError.accept(source, new TextComponent("Invalid Command Argument: ")

View file

@ -149,7 +149,8 @@ public final class EntityAnchorArgument<C> extends CommandArgument<C, net.minecr
* @see CommandArgument.Builder#asOptionalWithDefault(String)
* @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());
}

View file

@ -334,7 +334,10 @@ public final class FabricArgumentParsers {
private final CommandSourceStack source;
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.posArgument = posArgument;
}

View file

@ -150,7 +150,8 @@ public final class NbtPathArgument<C> extends CommandArgument<C, net.minecraft.c
* @see CommandArgument.Builder#asOptionalWithDefault(String)
* @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());
}