Class HeightBrush
java.lang.Object
com.fastasyncworldedit.core.command.tool.brush.HeightBrush
- All Implemented Interfaces:
Brush
- Direct Known Subclasses:
FlattenBrush
,StencilBrush
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHeightBrush
(InputStream stream, int rotation, double yscale, boolean layers, boolean smooth, Clipboard clipboard, int minY, int maxY) HeightBrush
(InputStream stream, int rotation, double yscale, boolean layers, boolean smooth, Clipboard clipboard, ScalableHeightMap.Shape shape, int minY, int maxY) -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(EditSession editSession, BlockVector3 position, Pattern pattern, double sizeDouble) Build the object.void
setRandomRotate
(boolean randomRotate)
-
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
-
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 interfaceBrush
- Parameters:
editSession
- theEditSession
position
- the positionpattern
- the patternsizeDouble
- the size of the brush- Throws:
MaxChangedBlocksException
- if the maximum block change limit is exceeded
-