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 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 interface com.sk89q.worldedit.command.tool.brush.Brush
    • 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

      @Nullable @Nullable BrushPaste nextPaste()
      Get the next paste which will be executed
      Returns:
      next paste
    • toBuilder

      BrushBuilder toBuilder(BrushSettingsRegistry settingsRegistry, SchematicRegistry schematicRegistry)
      Convert the settings of the brush to a builder
      Parameters:
      settingsRegistry - settings registry
      schematicRegistry - schematic registry
      Returns:
      brush as builder
    • history

      BrushHistory history()
    • info

      String info()