Package de.eldoria.schematicbrush.brush
Interface SchematicBrush
- All Superinterfaces:
com.sk89q.worldedit.command.tool.brush.Brush
public interface SchematicBrush
extends com.sk89q.worldedit.command.tool.brush.Brush
A brush used to paste schematics.
-
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.bukkit.BukkitPlayer
actor()
Get the bukkit player associated with this brushGet the player associated with this brushvoid
build
(com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.function.pattern.Pattern pattern, double size) Optional
<com.sk89q.worldedit.util.Location> Get the location of the current brushhistory()
info()
@Nullable BrushPaste
Get the next paste which will be executedPaste the brush and capture changes.settings()
Get the settings of the brushtoBuilder
(BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry) Convert the settings of the brush to a builder
-
Method Details
-
brushOwner
Player brushOwner()Get the player associated with this brush- Returns:
- player
-
actor
com.sk89q.worldedit.bukkit.BukkitPlayer actor()Get the bukkit player associated with this brush- Returns:
- bukkit palyer
-
build
void build(com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.function.pattern.Pattern pattern, double size) - Specified by:
build
in interfacecom.sk89q.worldedit.command.tool.brush.Brush
-
pasteFake
BlockChangeCollector pasteFake()Paste the brush and capture changes.- Returns:
- changes which will be made to the world
-
getBrushLocation
Optional<com.sk89q.worldedit.util.Location> getBrushLocation()Get the location of the current brush- Returns:
- location based on the conditions of
AbstractPlayerActor.getBlockTraceFace(int, boolean, Mask)
-
settings
BrushSettings settings()Get the settings of the brush- Returns:
- settings
-
nextPaste
Get the next paste which will be executed- Returns:
- next paste
-
toBuilder
Convert the settings of the brush to a builder- Parameters:
settingsRegistry
- settings registryschematicRegistry
- schematic registry- Returns:
- brush as builder
-
history
BrushHistory history() -
info
String info()
-