CorpseOpportunityLedger

public final class CorpseOpportunityLedger

Per-player consumption state for shared, non-persistent corpse opportunities.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public boolean availableTo(UUID corpseId, UUID playerId, long currentTick)
Link copied to clipboard
public boolean consume(UUID corpseId, UUID playerId, long currentTick)
Link copied to clipboard
public boolean contains(UUID corpseId)
Link copied to clipboard
public boolean discard(UUID corpseId)
For world/chunk cleanup where the matching transient marker can no longer exist.
Link copied to clipboard
public Set<UUID> expire(long currentTick)
Link copied to clipboard
public void offer(UUID corpseId, Set<UUID> eligiblePlayers, long expiresAtTick)
Link copied to clipboard
public Set<UUID> removePlayer(UUID playerId)
Removes one departing player's claims and returns markers that no longer serve anyone.