java.lang.Object
com.fastasyncworldedit.core.command.tool.brush.HeightBrush
All Implemented Interfaces:
Brush
Direct Known Subclasses:
FlattenBrush, StencilBrush

public class HeightBrush extends Object implements Brush
  • Field Details

    • rotation

      public final int rotation
    • yscale

      public final double yscale
    • layers

      public final boolean layers
    • smooth

      public final boolean smooth
  • Constructor Details

    • HeightBrush

      public HeightBrush(InputStream stream, int rotation, double yscale, boolean layers, boolean smooth, Clipboard clipboard, int minY, int maxY)
    • HeightBrush

      public HeightBrush(InputStream stream, int rotation, double yscale, boolean layers, boolean smooth, Clipboard clipboard, ScalableHeightMap.Shape shape, int minY, int maxY)
  • Method Details

    • getHeightMap

      public HeightMap getHeightMap()
    • setRandomRotate

      public void setRandomRotate(boolean randomRotate)
    • build

      public void build(EditSession editSession, BlockVector3 position, Pattern pattern, double sizeDouble) throws MaxChangedBlocksException
      Description copied from interface: Brush
      Build the object.
      Specified by:
      build in interface Brush
      Parameters:
      editSession - the EditSession
      position - the position
      pattern - the pattern
      sizeDouble - the size of the brush
      Throws:
      MaxChangedBlocksException - if the maximum block change limit is exceeded