Class FillCommand
java.lang.Object
net.minecraft.server.commands.FillCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceprivate static enumprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final BlockInput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intfillBlocks(CommandSourceStack source, BoundingBox region, BlockInput target, FillCommand.Mode mode, @Nullable Predicate<BlockInWorld> predicate, boolean strict) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> wrapWithMode(CommandBuildContext context, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> builder, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, BlockPos> from, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, BlockPos> to, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, BlockInput> block, FillCommand.NullableCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> filter)
-
Field Details
-
ERROR_AREA_TOO_LARGE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_AREA_TOO_LARGE -
HOLLOW_CORE
-
ERROR_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED
-
-
Constructor Details
-
FillCommand
public FillCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
wrapWithMode
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> wrapWithMode(CommandBuildContext context, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> builder, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, BlockPos> from, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, BlockPos> to, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, BlockInput> block, FillCommand.NullableCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> filter) -
fillBlocks
private static int fillBlocks(CommandSourceStack source, BoundingBox region, BlockInput target, FillCommand.Mode mode, @Nullable Predicate<BlockInWorld> predicate, boolean strict) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-