Interface PasteMutation


public interface PasteMutation
Represents a paste mutation, which will be applied when the brush is pasted.
  • Method Summary

    Modifier and Type
    Method
    Description
    default com.sk89q.worldedit.extension.platform.Actor
    Get the actor of the paste.
    com.sk89q.worldedit.extent.clipboard.Clipboard
    Clipboard of next paste.
    void
    clipboard(com.sk89q.worldedit.extent.clipboard.Clipboard clipboard)
    Set the clipboard of the paste
    static com.sk89q.worldedit.extension.input.ParserContext
    createContext(com.sk89q.worldedit.extension.platform.Actor actor, com.sk89q.worldedit.extent.Extent clipboard, com.sk89q.worldedit.world.World world)
     
    void
    includeAir(boolean includeAir)
    Set the include air
    boolean
    Include air
    com.sk89q.worldedit.function.mask.Mask
    A mask which will be applied on the clipboard.
    void
    maskSource(com.sk89q.worldedit.function.mask.Mask mask)
    Set the mask which will be applied on the clipboard.
    default com.sk89q.worldedit.extension.input.ParserContext
    Gets a parser context for the paste action
    com.sk89q.worldedit.math.BlockVector3
    paste offset of next paste
    void
    pasteOffset(com.sk89q.worldedit.math.BlockVector3 pasteOffset)
    Set the paste offset
    Get the owner of the brush
    com.sk89q.worldedit.EditSession
    session of next paste
    com.sk89q.worldedit.math.transform.AffineTransform
    Transform of next paste
    void
    transform(com.sk89q.worldedit.math.transform.AffineTransform transform)
    Set the transform of the paste
  • Method Details

    • createContext

      static com.sk89q.worldedit.extension.input.ParserContext createContext(com.sk89q.worldedit.extension.platform.Actor actor, com.sk89q.worldedit.extent.Extent clipboard, com.sk89q.worldedit.world.World world)
    • clipboard

      com.sk89q.worldedit.extent.clipboard.Clipboard clipboard()
      Clipboard of next paste.
      Returns:
      clipboard
    • transform

      com.sk89q.worldedit.math.transform.AffineTransform transform()
      Transform of next paste
      Returns:
      transform
    • session

      com.sk89q.worldedit.EditSession session()
      session of next paste
      Returns:
      session
    • pasteOffset

      com.sk89q.worldedit.math.BlockVector3 pasteOffset()
      paste offset of next paste
      Returns:
      offset
    • isIncludeAir

      boolean isIncludeAir()
      Include air
      Returns:
      true if air should be included
    • maskSource

      com.sk89q.worldedit.function.mask.Mask maskSource()
      A mask which will be applied on the clipboard.
      Returns:
      a mask
    • maskSource

      void maskSource(com.sk89q.worldedit.function.mask.Mask mask)
      Set the mask which will be applied on the clipboard.
      Parameters:
      mask - mask
    • clipboard

      void clipboard(com.sk89q.worldedit.extent.clipboard.Clipboard clipboard)
      Set the clipboard of the paste
      Parameters:
      clipboard - clipboard
    • transform

      void transform(com.sk89q.worldedit.math.transform.AffineTransform transform)
      Set the transform of the paste
      Parameters:
      transform - transform
    • pasteOffset

      void pasteOffset(com.sk89q.worldedit.math.BlockVector3 pasteOffset)
      Set the paste offset
      Parameters:
      pasteOffset - paste offset
    • includeAir

      void includeAir(boolean includeAir)
      Set the include air
      Parameters:
      includeAir - includeair
    • actor

      default com.sk89q.worldedit.extension.platform.Actor actor()
      Get the actor of the paste.
      Returns:
      actor
    • player

      Player player()
      Get the owner of the brush
      Returns:
      the owner
    • parserContext

      default com.sk89q.worldedit.extension.input.ParserContext parserContext()
      Gets a parser context for the paste action
      Returns:
      a new parser action