Package de.eldoria.schematicbrush.brush
Interface PasteMutation
public interface PasteMutation
Represents a paste mutation, which will be applied when the brush is pasted.
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.sk89q.worldedit.extension.platform.Actor
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 pastestatic 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 airboolean
Include aircom.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 actioncom.sk89q.worldedit.math.BlockVector3
paste offset of next pastevoid
pasteOffset
(com.sk89q.worldedit.math.BlockVector3 pasteOffset) Set the paste offsetplayer()
Get the owner of the brushcom.sk89q.worldedit.EditSession
session()
session of next pastecom.sk89q.worldedit.math.transform.AffineTransform
Transform of next pastevoid
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
-