Package de.eldoria.schematicbrush.brush
Interface BrushPaste
public interface BrushPaste
Represents the next pending brush operation.
-
Method Summary
Modifier and TypeMethodDescriptionbrush()
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 operationcom.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 operationcom.sk89q.worldedit.extent.clipboard.Clipboard
Current clipboardlong
Size of the clipboard in blocksMutator
<?> flip()
The flip mutatorboolean
Shift to the next schematicMutator
<?> The offset mutator of the brushMutator
<?> The offset mutator of the setboolean
Shift to the previous schematicvoid
refresh()
Refresh all mutator valuesvoid
Load a new clipboard from schematic fileMutator
<?> rotation()
The rotation mutatorCurrent schematicCurrent schematic setsettings()
The brush settingsboolean
Shift to next flip valueboolean
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 sessionowner
- owner of brushposition
- 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 sessioncapturingExtent
- extend to caputure changesowner
- owner of brushposition
- 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
SchematicBrush brush()Get the brush which will paste this paste.- Returns:
- schematic brush
-