Package net.minecraft.server.command
Class CloneCommand
java.lang.Object
net.minecraft.server.command.CloneCommand
public class CloneCommand extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
CloneCommand.BlockInfo
(package private) static class
CloneCommand.Mode
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
FAILED_EXCEPTION
static Predicate<CachedBlockPosition>
IS_AIR_PREDICATE
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OVERLAP_EXCEPTION
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
TOO_BIG_EXCEPTION
-
Constructor Summary
Constructors Constructor Description CloneCommand()
-
Method Summary
Modifier and Type Method Description private static int
execute(ServerCommandSource source, BlockPos begin, BlockPos end, BlockPos destination, Predicate<CachedBlockPosition> filter, CloneCommand.Mode mode)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
OVERLAP_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OVERLAP_EXCEPTION -
TOO_BIG_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType TOO_BIG_EXCEPTION -
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION -
IS_AIR_PREDICATE
-
-
Constructor Details
-
CloneCommand
public CloneCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
execute
private static int execute(ServerCommandSource source, BlockPos begin, BlockPos end, BlockPos destination, Predicate<CachedBlockPosition> filter, CloneCommand.Mode mode)
-