Contents
Class CopyCommand
java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractPlayerCommand
com.hypixel.hytale.builtin.buildertools.commands.CopyCommand
Command to copy blocks and entities from a selection or specified region.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCommand
AbstractCommand.SuggestionOverrideEntry -
Field Summary
Fields inherited from class AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopySelection(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) Copy the current selection of the player referenced by the given Ref.static voidcopySelection(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, BuilderToolsPlugin.BuilderState builderState, int settings) Copy the current selection of the player referenced by the given Ref with specified settings.Methods inherited from class AbstractAsyncCommand
runAsyncMethods inherited from class AbstractCommand
acceptCall, addAliases, addSubCommand, addUsageVariant, completeRegistration, countParents, getAliases, getDescription, getFullyQualifiedName, getName, getOptionalArgument, getOptionalArguments, getOwner, getPermission, getPermissionGroups, getPermissionGroupsRecursive, getRequiredArguments, getSubCommand, getSubCommands, getSuggestionOverrides, getUsageShort, getUsageString, getVariantByArgCount, getVariantCommands, hasBeenRegistered, hasPermission, isVariant, matches, putRecursivePermissionGroups, requireNoPermission, requirePermission, requirePermission, setAllowsExtraArguments, setOwner, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
Constructor Details
-
CopyCommand
public CopyCommand()Default Constructor for aCopyCommandinstance.
-
-
Method Details
-
copySelection
public static void copySelection(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Copy the current selection of the player referenced by the given Ref.- Parameters:
ref- The Ref of the player whose selection to copy.componentAccessor- The ComponentAccessor to access player components.
-
copySelection
public static void copySelection(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull BuilderToolsPlugin.BuilderState builderState, int settings) Copy the current selection of the player referenced by the given Ref with specified settings.- Parameters:
ref- The Ref of the player whose selection to copy.componentAccessor- The ComponentAccessor to access player components.builderState- The BuilderState of the player.settings- The settings for copying.
-