Class CopyCommand


public class CopyCommand extends AbstractPlayerCommand
Command to copy blocks and entities from a selection or specified region.
  • Constructor Details

    • CopyCommand

      public CopyCommand()
      Default Constructor for a CopyCommand instance.
  • 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.