Class DeadSpecialItemUseHandler
java.lang.Object
de.marcely.bedwars.api.game.specialitem.DeadSpecialItemUseHandler
- All Implemented Interfaces:
SpecialItemUseHandler
The default use handler of a special item
It'll send a warning to the player whenever he's using it
It'll send a warning to the player whenever he's using it
-
Field Summary
-
Constructor Summary
-
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
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DeadSpecialItemUseHandler
public DeadSpecialItemUseHandler()
-
-
Method Details
-
getPlugin
Description copied from interface:SpecialItemUseHandler
Returns the plugin that's in charge of this handler- Specified by:
getPlugin
in interfaceSpecialItemUseHandler
- Returns:
- The plugin that created this handler
-
openSession
Description copied from interface:SpecialItemUseHandler
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- Specified by:
openSession
in interfaceSpecialItemUseHandler
- Parameters:
event
- The informations needed to handle the event- Returns:
- The session containing the actual handler of the item
-