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 Type
    Method
    Description
    com.sk89q.worldedit.bukkit.BukkitPlayer
    Get the bukkit player associated with this brush
    Get the player associated with this brush
    void
    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 brush
     
     
    @Nullable BrushPaste
    Get the next paste which will be executed
    Paste the brush without changing the world and capture the blocks it would place.
    Get the settings of the brush
    void
    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 builder

    Methods inherited from interface com.sk89q.worldedit.command.tool.brush.Brush

    setsSynchronously
  • 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

      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

      BrushSettings settings()
      Get the settings of the brush
      Returns:
      settings
    • settings

      void settings(BrushSettings settings)
      Replaces the settings of the brush and prepares the next paste with them. The schematic history is kept.
      Parameters:
      settings - new 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()