Package net.minecraft.server.commands
Class CloneCommands
java.lang.Object
net.minecraft.server.commands.CloneCommands
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record
(package private) static final record
(package private) static interface
(package private) static final record
(package private) static enum
-
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> beginEndDestinationAndModeSuffix
(CommandBuildContext pBuildContext, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> pLevelGetter) private static int
clone
(CommandSourceStack pSource, CloneCommands.DimensionAndPosition pBegin, CloneCommands.DimensionAndPosition pEnd, CloneCommands.DimensionAndPosition pTarget, Predicate<BlockInWorld> pFilter, CloneCommands.Mode pMode) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> destinationAndModeSuffix
(CommandBuildContext pBuildContext, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> pSourceLevelGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> pDestinationLevelGetter) private static CloneCommands.DimensionAndPosition
getLoadedDimensionAndPosition
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ServerLevel pLevel, String pName) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher, CommandBuildContext pContext) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> wrapWithCloneMode
(CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> pBeginGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> pEndGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> pTargetGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> pFilterGetter, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pArgumentBuilder)
-
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> pDispatcher, CommandBuildContext pContext) -
beginEndDestinationAndModeSuffix
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> beginEndDestinationAndModeSuffix(CommandBuildContext pBuildContext, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> pLevelGetter) -
getLoadedDimensionAndPosition
private static CloneCommands.DimensionAndPosition getLoadedDimensionAndPosition(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ServerLevel pLevel, String pName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
destinationAndModeSuffix
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> destinationAndModeSuffix(CommandBuildContext pBuildContext, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> pSourceLevelGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, ServerLevel> pDestinationLevelGetter) -
wrapWithCloneMode
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> wrapWithCloneMode(CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> pBeginGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> pEndGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> pTargetGetter, CloneCommands.CommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> pFilterGetter, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pArgumentBuilder) -
clone
private static int clone(CommandSourceStack pSource, CloneCommands.DimensionAndPosition pBegin, CloneCommands.DimensionAndPosition pEnd, CloneCommands.DimensionAndPosition pTarget, Predicate<BlockInWorld> pFilter, CloneCommands.Mode pMode) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-