Package net.minecraft.server.commands
Class CloneCommands
java.lang.Object
net.minecraft.server.commands.CloneCommands
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static interface
(package private) static final record
(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final Predicate<BlockInWorld>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> beginEndDestinationAndModeSuffix
(CommandBuildContext p_265681_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265514_) private static int
clone
(CommandSourceStack p_265047_, CloneCommands.DimensionAndPosition p_265232_, CloneCommands.DimensionAndPosition p_265188_, CloneCommands.DimensionAndPosition p_265594_, Predicate<BlockInWorld> p_265585_, CloneCommands.Mode p_265530_) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> destinationAndModeSuffix
(CommandBuildContext p_265238_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265621_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265296_) private static CloneCommands.DimensionAndPosition
getLoadedDimensionAndPosition
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265513_, ServerLevel p_265183_, String p_265511_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214424_, CommandBuildContext p_214425_) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> wrapWithCloneMode
(CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> p_265374_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> p_265134_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> p_265546_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> p_265798_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_265069_)
-
Field Details
-
ERROR_OVERLAP
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OVERLAP -
ERROR_AREA_TOO_LARGE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_AREA_TOO_LARGE -
ERROR_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED -
FILTER_AIR
-
-
Constructor Details
-
CloneCommands
public CloneCommands()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214424_, CommandBuildContext p_214425_) -
beginEndDestinationAndModeSuffix
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> beginEndDestinationAndModeSuffix(CommandBuildContext p_265681_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265514_) -
getLoadedDimensionAndPosition
private static CloneCommands.DimensionAndPosition getLoadedDimensionAndPosition(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265513_, ServerLevel p_265183_, String p_265511_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
destinationAndModeSuffix
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> destinationAndModeSuffix(CommandBuildContext p_265238_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265621_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> p_265296_) -
wrapWithCloneMode
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> wrapWithCloneMode(CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> p_265374_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> p_265134_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> p_265546_, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> p_265798_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_265069_) -
clone
private static int clone(CommandSourceStack p_265047_, CloneCommands.DimensionAndPosition p_265232_, CloneCommands.DimensionAndPosition p_265188_, CloneCommands.DimensionAndPosition p_265594_, Predicate<BlockInWorld> p_265585_, CloneCommands.Mode p_265530_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-