Interface ItemHandler
-
- All Known Subinterfaces:
BlockBreakHandler
,BlockDispenseHandler
,BlockPlaceHandler
,BlockUseHandler
,BowShootHandler
,EntityKillHandler
,ItemConsumptionHandler
,ItemDropHandler
,ItemUseHandler
,MultiBlockInteractionHandler
- All Known Implementing Classes:
BlockTicker
,GeneratorTicker
,RainbowTicker
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ItemHandler
AnItemHandler
represents a certain action that aSlimefunItem
can perform.- Author:
- TheBusyBiscuit
- See Also:
ItemUseHandler
,ItemConsumptionHandler
,BlockUseHandler
,EntityKillHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Class<? extends ItemHandler>
getIdentifier()
This method returns the identifier for thisItemHandler
.default boolean
isPrivate()
This method is used to determine whether thisItemHandler
can be safely associated with one particularSlimefunItem
.
-
-
-
Method Detail
-
isPrivate
default boolean isPrivate()
This method is used to determine whether thisItemHandler
can be safely associated with one particularSlimefunItem
. Should thisItemHandler
not be private, then it will never be permanently linked to aSlimefunItem
.- Returns:
- Whether this
ItemHandler
is considered private.
-
getIdentifier
Class<? extends ItemHandler> getIdentifier()
This method returns the identifier for thisItemHandler
. We use aClass
identifier to group Item Handlers together.- Returns:
- The
Class
identifier for thisItemHandler
-
-