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.BukkitPlayeractor()Get the bukkit player associated with this brushGet the player associated with this brushvoidbuild(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 BrushPasteGet the next paste which will be executedPaste the brush without changing the world and capture the blocks it would place.settings()Get the settings of the brushvoidsettings(BrushSettings settings) Replaces the settings of the brush and prepares the next paste with them.toBuilder(BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry) Convert the settings of the brush to a builderMethods inherited from interface com.sk89q.worldedit.command.tool.brush.Brush
setsSynchronously
-
Method Details
-
brushOwner
-
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:
buildin interfacecom.sk89q.worldedit.command.tool.brush.Brush
-
pasteFake
PreviewSnapshot pasteFake()Paste the brush without changing the world and capture the blocks it would place.- Returns:
- the blocks of the next paste, or an empty snapshot if the brush can not be pasted right now
-
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
-
settings
Replaces the settings of the brush and prepares the next paste with them. The schematic history is kept.- Parameters:
settings- new 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()
-