@FunctionalInterface
public interface ItemHandler
ItemHandler
represents a certain action that a SlimefunItem
can perform.ItemUseHandler
,
ItemConsumptionHandler
,
BlockUseHandler
,
EntityKillHandler
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends ItemHandler> |
getIdentifier()
This method returns the identifier for this
ItemHandler . |
default boolean |
isPrivate()
This method is used to determine whether this
ItemHandler can be
safely associated with one particular SlimefunItem . |
default boolean isPrivate()
ItemHandler
can be
safely associated with one particular SlimefunItem
.
Should this ItemHandler
not be private, then it will never be
permanently linked to a SlimefunItem
.ItemHandler
is considered private.java.lang.Class<? extends ItemHandler> getIdentifier()
ItemHandler
.
We use a Class
identifier to group Item Handlers together.Class
identifier for this ItemHandler