Uses of Class
de.marcely.bedwars.api.game.specialitem.SpecialItemUseSession
Packages that use SpecialItemUseSession
Package
Description
Contains classes that are related to the
Arena
.Events related to
Player
actions, or changes to player properties.Classes dedicated to handling
SpecialItems
in MBedwars.-
Uses of SpecialItemUseSession in de.marcely.bedwars.api.arena
Methods in de.marcely.bedwars.api.arena that return types with arguments of type SpecialItemUseSessionModifier and TypeMethodDescriptionArena.getSpecialItemSessions()
Get all the active special item sessions. -
Uses of SpecialItemUseSession in de.marcely.bedwars.api.event.player
Methods in de.marcely.bedwars.api.event.player that return SpecialItemUseSessionModifier and TypeMethodDescriptionPlayerStopSpecialItemEvent.getSession()
Returns the session that was stoppedMethods in de.marcely.bedwars.api.event.player that return types with arguments of type SpecialItemUseSessionModifier and TypeMethodDescriptionPlayerUseSpecialItemEvent.getSessionListeners()
Returns the listeners that will be called once the session has been initiated.Method parameters in de.marcely.bedwars.api.event.player with type arguments of type SpecialItemUseSessionModifier and TypeMethodDescriptionvoid
PlayerUseSpecialItemEvent.addSessionListener
(Consumer<SpecialItemUseSession> callback) Adds a listener that gets called once the session has been initiated.Constructors in de.marcely.bedwars.api.event.player with parameters of type SpecialItemUseSessionModifierConstructorDescriptionPlayerStopSpecialItemEvent
(PlayerUseSpecialItemEvent event, SpecialItemUseSession session) PlayerStopSpecialItemEvent
(Player player, SpecialItem specialItem, Arena arena, SpecialItemUseSession session) -
Uses of SpecialItemUseSession in de.marcely.bedwars.api.game.specialitem
Methods in de.marcely.bedwars.api.game.specialitem that return SpecialItemUseSessionModifier and TypeMethodDescriptionDeadSpecialItemUseHandler.openSession
(PlayerUseSpecialItemEvent event) SpecialItemUseHandler.openSession
(PlayerUseSpecialItemEvent event) UseSpecialItemUseSession(PlayerUseSpecialItemEvent)
and pass it back to this event
Make sure to callstop()
when the item did its thing
Also optionally calltakeItem()
when needed