Class ClipboardCommands

java.lang.Object
com.sk89q.worldedit.command.ClipboardCommands

public class ClipboardCommands extends Object
Clipboard commands.
  • Constructor Details

    • ClipboardCommands

      public ClipboardCommands()
  • Method Details

    • copy

      public void copy(Actor actor, LocalSession session, EditSession editSession, Region region, @Switch(name='e',desc="Also copy entities") boolean copyEntities, @Switch(name='b',desc="Also copy biomes") boolean copyBiomes, @ArgFlag(name='m',desc="Set the include mask, non-matching blocks become air") Mask mask) throws WorldEditException
      Throws:
      WorldEditException
    • cut

      public void cut(Actor actor, LocalSession session, EditSession editSession, Region region, @Arg(desc="Pattern to leave in place of the selection",def="air") Pattern leavePattern, @Switch(name='e',desc="Also cut entities") boolean copyEntities, @Switch(name='b',desc="Also copy biomes, source biomes are unaffected") boolean copyBiomes, @ArgFlag(name='m',desc="Set the exclude mask, non-matching blocks become air") Mask mask) throws WorldEditException
      Throws:
      WorldEditException
    • paste

      public void paste(Actor actor, World world, LocalSession session, EditSession editSession, @Switch(name='a',desc="Skip air blocks") boolean ignoreAirBlocks, @Switch(name='v',desc="Include structure void blocks") boolean pasteStructureVoid, @Switch(name='o',desc="Paste at the original position") boolean atOrigin, @Switch(name='s',desc="Select the region after pasting") boolean selectPasted, @Switch(name='n',desc="No paste, select only. (Implies -s)") boolean onlySelect, @Switch(name='e',desc="Paste entities if available") boolean pasteEntities, @Switch(name='b',desc="Paste biomes if available") boolean pasteBiomes, @ArgFlag(name='m',desc="Only paste blocks matching this mask") Mask sourceMask) throws WorldEditException
      Throws:
      WorldEditException
    • rotate

      public void rotate(Actor actor, LocalSession session, @Arg(desc="Amount to rotate on the y-axis") double rotateY, @Arg(desc="Amount to rotate on the x-axis",def="0") double rotateX, @Arg(desc="Amount to rotate on the z-axis",def="0") double rotateZ) throws WorldEditException
      Throws:
      WorldEditException
    • flip

      public void flip(Actor actor, LocalSession session, @Arg(desc="The direction to flip, defaults to look direction.",def="me") BlockVector3 direction) throws WorldEditException
      Throws:
      WorldEditException
    • clearClipboard

      public void clearClipboard(Actor actor, LocalSession session)