Interface ZentrixCorpse
public interface ZentrixCorpse
Read-only view of a tracked, persistent corpse.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<org.bukkit.Location> @NotNull Optional<org.bukkit.entity.Entity> @NotNull UUIDlong@NotNull ZentrixGamegetGame()default @NotNull Optional<CorpseLeaveReason> Why the owner left the match, for a corpse that still holds their return.@NotNull UUID@NotNull Stringlong@NotNull org.bukkit.Location@NotNull org.bukkit.inventory.ItemStack[]@NotNull org.bukkit.inventory.ItemStack[]@NotNull Optional<org.bukkit.inventory.ItemStack> @NotNull Optional<org.bukkit.inventory.ItemStack> booleanbooleandefault booleanWhether the owner can still return to the match through this corpse.boolean
-
Method Details
-
getPlayerId
-
getPlayerName
-
getEntityId
-
getGame
-
getSpawnLocation
@NotNull @NotNull org.bukkit.Location getSpawnLocation() -
getCurrentLocation
-
getEntity
-
getExpiryTimeMillis
long getExpiryTimeMillis() -
getSecondsUntilExpiry
long getSecondsUntilExpiry() -
isExpired
boolean isExpired() -
getStoredContents
@NotNull @NotNull org.bukkit.inventory.ItemStack[] getStoredContents() -
getVisualArmor
@NotNull @NotNull org.bukkit.inventory.ItemStack[] getVisualArmor() -
getVisualMainHand
-
getVisualOffHand
-
isLootDropped
boolean isLootDropped() -
isWarningSent
boolean isWarningSent() -
getLeaveReason
Why the owner left the match, for a corpse that still holds their return.- Returns:
- the leave reason, or empty once the corpse holds no return
- Since:
- 1.8.0
-
isReturnable
default boolean isReturnable()Whether the owner can still return to the match through this corpse. Even then, a rejoin can be refused for reasons outside the corpse; askRejoinService.getStatus(org.bukkit.entity.Player)for the full answer.- Returns:
truewhile the corpse holds its owner's return- Since:
- 1.8.0
-