Class PlayerReviveEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
dev.itsharshxd.zentrix.api.events.revival.PlayerReviveEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PlayerReviveEvent
extends ZentrixGameEvent
implements org.bukkit.event.Cancellable
Cancellable event fired immediately before a teammate is restored to a match.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerReviveEvent(@NotNull ZentrixGame game, @NotNull org.bukkit.entity.Player reviver, @NotNull org.bukkit.entity.Player target, @NotNull org.bukkit.Location revivalLocation, boolean restoreClassItems, boolean restoreLostLoot) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull org.bukkit.Location@NotNull org.bukkit.entity.Player@NotNull org.bukkit.entity.PlayerbooleanvoidsetCancelled(boolean cancelled) voidsetRestoreClassItems(boolean value) voidsetRestoreLostLoot(boolean value) voidsetRevivalLocation(@NotNull org.bukkit.Location location) booleanbooleanMethods inherited from class dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
getArenaName, getGame, getGameId, getGameState, getGameTypeName, getPlayerCount, getRuntimeId, getSourceArenaNameMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerReviveEvent
public PlayerReviveEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.entity.Player reviver, @NotNull @NotNull org.bukkit.entity.Player target, @NotNull @NotNull org.bukkit.Location revivalLocation, boolean restoreClassItems, boolean restoreLostLoot)
-
-
Method Details
-
getReviver
@NotNull public @NotNull org.bukkit.entity.Player getReviver() -
getTarget
@NotNull public @NotNull org.bukkit.entity.Player getTarget() -
getRevivalLocation
@NotNull public @NotNull org.bukkit.Location getRevivalLocation() -
setRevivalLocation
public void setRevivalLocation(@NotNull @NotNull org.bukkit.Location location) -
shouldRestoreClassItems
public boolean shouldRestoreClassItems() -
setRestoreClassItems
public void setRestoreClassItems(boolean value) -
shouldRestoreLostLoot
public boolean shouldRestoreLostLoot() -
setRestoreLostLoot
public void setRestoreLostLoot(boolean value) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixGameEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixGameEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-