public final class ItemUseFunction extends java.lang.Object implements RegionFunction
Constructor and Description |
---|
ItemUseFunction(World world,
BaseItem item) |
ItemUseFunction(World world,
BaseItem item,
Direction dir) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
public boolean apply(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error