Package cn.nukkit.event.player
Class PlayerRespawnEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerRespawnEvent
-
Field Summary
Fields inherited from class cn.nukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerRespawnEvent
(Player player, Position position) PlayerRespawnEvent
(Player player, Position position, boolean firstSpawn) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Deprecated.Deprecated.boolean
Deprecated.boolean
boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
setConsumeCharge
(boolean consumeCharge) Deprecated.void
setKeepRespawnBlockPosition
(boolean keepRespawnBlockPosition) Deprecated.void
setKeepRespawnPosition
(boolean keepRespawnPosition) Deprecated.void
setOriginalRespawnPosition
(Position originalSpawnPosition) Deprecated.void
setRespawnBlockAvailable
(boolean spawnBlockAvailable) Deprecated.void
setRespawnBlockPosition
(Position spawnBlock) Deprecated.void
setRespawnPosition
(Position position) void
setSendInvalidRespawnBlockMessage
(boolean sendInvalidRespawnBlockMessage) Deprecated.Methods inherited from class cn.nukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
-
Constructor Details
-
PlayerRespawnEvent
-
PlayerRespawnEvent
-
-
Method Details
-
getHandlers
-
getRespawnPosition
-
setRespawnPosition
-
isFirstSpawn
public boolean isFirstSpawn() -
getRespawnBlockPosition
Deprecated. -
setRespawnBlockPosition
@Deprecated @PowerNukkitOnly @Since("1.4.0.0-PN") public void setRespawnBlockPosition(Position spawnBlock) Deprecated. -
isRespawnBlockAvailable
Deprecated. -
setRespawnBlockAvailable
@Deprecated @PowerNukkitOnly @Since("1.4.0.0-PN") public void setRespawnBlockAvailable(boolean spawnBlockAvailable) Deprecated.Plugins not suggest use- Parameters:
spawnBlockAvailable
- the spawn block available
-
getOriginalRespawnPosition
Deprecated. -
setOriginalRespawnPosition
@Deprecated @PowerNukkitOnly @Since("1.4.0.0-PN") public void setOriginalRespawnPosition(Position originalSpawnPosition) Deprecated. -
isKeepRespawnBlockPosition
Deprecated. -
setKeepRespawnBlockPosition
@Deprecated @PowerNukkitOnly @Since("1.4.0.0-PN") public void setKeepRespawnBlockPosition(boolean keepRespawnBlockPosition) Deprecated. -
isKeepRespawnPosition
Deprecated. -
setKeepRespawnPosition
@Deprecated @PowerNukkitOnly @Since("1.4.0.0-PN") public void setKeepRespawnPosition(boolean keepRespawnPosition) Deprecated. -
isSendInvalidRespawnBlockMessage
Deprecated. -
setSendInvalidRespawnBlockMessage
@Deprecated @PowerNukkitOnly @Since("1.4.0.0-PN") public void setSendInvalidRespawnBlockMessage(boolean sendInvalidRespawnBlockMessage) Deprecated. -
isConsumeCharge
Deprecated. -
setConsumeCharge
@Deprecated @PowerNukkitOnly @Since("1.4.0.0-PN") public void setConsumeCharge(boolean consumeCharge) Deprecated.
-