Package net.minecraft.server.command
Class SetBlockCommand
java.lang.Object
net.minecraft.server.command.SetBlockCommand
public class SetBlockCommand extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SetBlockCommand.Filter
static class
SetBlockCommand.Mode
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
FAILED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description SetBlockCommand()
-
Method Summary
Modifier and Type Method Description private static int
execute(ServerCommandSource source, BlockPos pos, BlockStateArgument block, SetBlockCommand.Mode mode, Predicate<CachedBlockPosition> condition)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
-
-
Constructor Details
-
SetBlockCommand
public SetBlockCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
execute
private static int execute(ServerCommandSource source, BlockPos pos, BlockStateArgument block, SetBlockCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> condition)
-