Class SetBlockCommand
java.lang.Object
net.minecraft.server.commands.SetBlockCommand
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static intsetBlock(CommandSourceStack source, BlockPos pos, BlockInput block, SetBlockCommand.Mode mode, @Nullable Predicate<BlockInWorld> predicate, boolean strict)
-
Field Details
-
ERROR_FAILED
-
-
Constructor Details
-
SetBlockCommand
public SetBlockCommand()
-
-
Method Details
-
register
public static void register(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
setBlock
private static int setBlock(CommandSourceStack source, BlockPos pos, BlockInput block, SetBlockCommand.Mode mode, @Nullable Predicate<BlockInWorld> predicate, boolean strict) throws CommandSyntaxException - Throws:
CommandSyntaxException
-