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 Dynamic2CommandExceptionTypeprivate static final 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(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static ArgumentBuilder<CommandSourceStack, ?> wrapWithMode(CommandBuildContext context, ArgumentBuilder<CommandSourceStack, ?> builder, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> from, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> to, InCommandFunction<CommandContext<CommandSourceStack>, BlockInput> block, FillCommand.NullableCommandFunction<CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> filter)
-
Field Details
-
ERROR_AREA_TOO_LARGE
-
HOLLOW_CORE
-
ERROR_FAILED
-
-
Constructor Details
-
FillCommand
public FillCommand()
-
-
Method Details
-
register
public static void register(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
wrapWithMode
private static ArgumentBuilder<CommandSourceStack, ?> wrapWithMode(CommandBuildContext context, ArgumentBuilder<CommandSourceStack, ?> builder, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> from, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> to, InCommandFunction<CommandContext<CommandSourceStack>, BlockInput> block, FillCommand.NullableCommandFunction<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 CommandSyntaxException - Throws:
CommandSyntaxException
-