Interface EntityInteractHandler
- All Superinterfaces:
ItemHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Author:
- Linox
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Class<? extends ItemHandler>This method returns the identifier for thisItemHandler.voidonInteract(PlayerInteractEntityEvent e, ItemStack item, boolean offHand) This function is triggered when aPlayerright clicks with the assignedSlimefunItemin his hand.Methods inherited from interface io.github.thebusybiscuit.slimefun4.api.items.ItemHandler
validate
-
Method Details
-
onInteract
This function is triggered when aPlayerright clicks with the assignedSlimefunItemin his hand.- Parameters:
e- ThePlayerInteractAtEntityEventwhich was calleditem- TheItemStackthat was held and used while triggeringoffHand-trueif theEquipmentSlotis off hand
-
getIdentifier
Description copied from interface:ItemHandlerThis method returns the identifier for thisItemHandler. We use aClassidentifier to group Item Handlers together.- Specified by:
getIdentifierin interfaceItemHandler- Returns:
- The
Classidentifier for thisItemHandler
-