Package com.sk89q.worldedit.function
Class ItemUseFunction
java.lang.Object
com.sk89q.worldedit.function.ItemUseFunction
- All Implemented Interfaces:
RegionFunction
-
Constructor Summary
ConstructorDescriptionItemUseFunction
(World world, BaseItem item) ItemUseFunction
(World world, BaseItem item, Direction dir) -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(BlockVector3 position) Apply the function to the given position.
-
Constructor Details
-
ItemUseFunction
-
ItemUseFunction
-
-
Method Details
-
apply
Description copied from interface:RegionFunction
Apply the function to the given position.- Specified by:
apply
in interfaceRegionFunction
- Parameters:
position
- the position- Returns:
- true if something was changed
- Throws:
WorldEditException
- thrown on an error
-