Interface BrushPaste


public interface BrushPaste
Represents the next pending brush operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the brush which will paste this paste.
    com.sk89q.worldedit.function.operation.Operation
    buildpaste(com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.bukkit.BukkitPlayer owner, com.sk89q.worldedit.math.BlockVector3 position)
    Build a paste operation
    com.sk89q.worldedit.function.operation.Operation
    buildpaste(com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.extent.Extent capturingExtent, com.sk89q.worldedit.bukkit.BukkitPlayer owner, com.sk89q.worldedit.math.BlockVector3 position)
    Build a paste operation
    com.sk89q.worldedit.extent.clipboard.Clipboard
    Current clipboard
    long
    Size of the clipboard in blocks
    The flip mutator
    boolean
    Shift to the next schematic
    The offset mutator of the brush
    The offset mutator of the set
    boolean
    Shift to the previous schematic
    void
    Refresh all mutator values
    void
    Load a new clipboard from schematic file
    The rotation mutator
    Current schematic
    Current schematic set
    The brush settings
    boolean
    Shift to next flip value
    boolean
    Shift to the next offset value.
    boolean
    Shift to next rotation value
  • Method Details

    • refresh

      void refresh()
      Refresh all mutator values
    • shiftFlip

      boolean shiftFlip()
      Shift to next flip value
      Returns:
      true if flip was shiftable
    • shiftRotation

      boolean shiftRotation()
      Shift to next rotation value
      Returns:
      true if rotation was shiftable
    • flip

      Mutator<?> flip()
      The flip mutator
      Returns:
      flip mutator
    • rotation

      Mutator<?> rotation()
      The rotation mutator
      Returns:
      rotation mutator
    • offsetSet

      Mutator<?> offsetSet()
      The offset mutator of the set
      Returns:
      offset mutator
    • offsetBrush

      Mutator<?> offsetBrush()
      The offset mutator of the brush
      Returns:
      offset mutator
    • settings

      BrushSettings settings()
      The brush settings
      Returns:
      settings of the brush
    • buildpaste

      com.sk89q.worldedit.function.operation.Operation buildpaste(com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.bukkit.BukkitPlayer owner, com.sk89q.worldedit.math.BlockVector3 position)
      Build a paste operation
      Parameters:
      editSession - edit session
      owner - owner of brush
      position - position to paste
      Returns:
      operation
    • buildpaste

      com.sk89q.worldedit.function.operation.Operation buildpaste(com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.extent.Extent capturingExtent, com.sk89q.worldedit.bukkit.BukkitPlayer owner, com.sk89q.worldedit.math.BlockVector3 position)
      Build a paste operation
      Parameters:
      editSession - edit session
      capturingExtent - extend to caputure changes
      owner - owner of brush
      position - position to paste
      Returns:
      operation
    • nextSchematic

      boolean nextSchematic()
      Shift to the next schematic
      Returns:
      true if the schematic changed
    • previousSchematic

      boolean previousSchematic()
      Shift to the previous schematic
      Returns:
      true if the schematic was changed
    • reloadSchematic

      void reloadSchematic()
      Load a new clipboard from schematic file
    • schematic

      Schematic schematic()
      Current schematic
      Returns:
      schematic
    • schematicSet

      SchematicSet schematicSet()
      Current schematic set
      Returns:
      schematic set
      Since:
      2.0.2
    • clipboard

      com.sk89q.worldedit.extent.clipboard.Clipboard clipboard()
      Current clipboard
      Returns:
      clipboard
    • clipboardSize

      long clipboardSize()
      Size of the clipboard in blocks
      Returns:
      true
    • shiftOffset

      boolean shiftOffset()
      Shift to the next offset value.
      Returns:
      true if the offset was shiftable
    • brush

      Get the brush which will paste this paste.
      Returns:
      schematic brush