Interface ExternallyInteractable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implement this interface for any
SlimefunItem to provide methods for
external code to 'interact' with the item when placed as a block in the world.- Author:
- Sefiraat
-
Method Summary
Modifier and TypeMethodDescriptiononInteract(Location location) This method should be used by the implementing class to fulfill the actions needed when being interacted with returning the result of the interaction.
-
Method Details
-
onInteract
This method should be used by the implementing class to fulfill the actions needed when being interacted with returning the result of the interaction.- Parameters:
location- TheLocationof the Block being targeted for the interaction.- Returns:
- The
InteractionResultdenoting the result of the interaction.
-