Interface SpecialItemUseHandler
- All Known Implementing Classes:
DeadSpecialItemUseHandler
public interface SpecialItemUseHandler
-
Method Summary
Modifier and TypeMethodDescriptionReturns the plugin that's in charge of this handlerUseSpecialItemUseSession(PlayerUseSpecialItemEvent)
and pass it back to this event
Make sure to callSpecialItemUseSession.stop()
when the item did its thing
Also optionally callSpecialItemUseSession.takeItem()
when needed
-
Method Details
-
getPlugin
Plugin getPlugin()Returns the plugin that's in charge of this handler- Returns:
- The plugin that created this handler
-
openSession
UseSpecialItemUseSession(PlayerUseSpecialItemEvent)
and pass it back to this event
Make sure to callSpecialItemUseSession.stop()
when the item did its thing
Also optionally callSpecialItemUseSession.takeItem()
when needed- Parameters:
event
- The informations needed to handle the event- Returns:
- The session containing the actual handler of the item
-