Interface ZentrixCorpse


public interface ZentrixCorpse
Read-only view of a tracked, persistent corpse.
  • Method Details

    • getPlayerId

      @NotNull @NotNull UUID getPlayerId()
    • getPlayerName

      @NotNull @NotNull String getPlayerName()
    • getEntityId

      @NotNull @NotNull UUID getEntityId()
    • getGame

      @NotNull @NotNull ZentrixGame getGame()
    • getSpawnLocation

      @NotNull @NotNull org.bukkit.Location getSpawnLocation()
    • getCurrentLocation

      @NotNull @NotNull Optional<org.bukkit.Location> getCurrentLocation()
    • getEntity

      @NotNull @NotNull Optional<org.bukkit.entity.Entity> 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

      @NotNull @NotNull Optional<org.bukkit.inventory.ItemStack> getVisualMainHand()
    • getVisualOffHand

      @NotNull @NotNull Optional<org.bukkit.inventory.ItemStack> getVisualOffHand()
    • isLootDropped

      boolean isLootDropped()
    • isWarningSent

      boolean isWarningSent()
    • getLeaveReason

      @NotNull default @NotNull Optional<CorpseLeaveReason> 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; ask RejoinService.getStatus(org.bukkit.entity.Player) for the full answer.
      Returns:
      true while the corpse holds its owner's return
      Since:
      1.8.0