Class SnowSimulator
java.lang.Object
com.sk89q.worldedit.function.block.SnowSimulator
- All Implemented Interfaces:
LayerFunction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(BlockVector3 position, int depth) Apply the function to the given position.int
boolean
isGround
(BlockVector3 position) Returns whether the given block should be "passed through" when conducting the ground search.
-
Constructor Details
-
SnowSimulator
-
-
Method Details
-
getAffected
public int getAffected() -
isGround
Description copied from interface:LayerFunction
Returns whether the given block should be "passed through" when conducting the ground search.- Specified by:
isGround
in interfaceLayerFunction
- Parameters:
position
- return whether the given block is the ground- Returns:
- true if the search should stop
-
apply
Description copied from interface:LayerFunction
Apply the function to the given position.The depth would be the number of blocks from the surface if a
LayerVisitor
was used.- Specified by:
apply
in interfaceLayerFunction
- Parameters:
position
- the positiondepth
- the depth as a number starting from 0- Returns:
- true whether this method should be called for further layers
- Throws:
WorldEditException
- thrown on an error
-