Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
EliteMobs
/
com.magmaguy.elitemobs.advancedcombat.minions
/
CorpseOpportunityLedger
Corpse
Opportunity
Ledger
public
final
class
CorpseOpportunityLedger
Per-player consumption state for shared, non-persistent corpse opportunities.
Members
Constructors
Corpse
Opportunity
Ledger
Link copied to clipboard
public
void
CorpseOpportunityLedger
(
)
Functions
available
To
Link copied to clipboard
public
boolean
availableTo
(
UUID
corpseId
,
UUID
playerId
,
long currentTick
)
consume
Link copied to clipboard
public
boolean
consume
(
UUID
corpseId
,
UUID
playerId
,
long currentTick
)
contains
Link copied to clipboard
public
boolean
contains
(
UUID
corpseId
)
discard
Link copied to clipboard
public
boolean
discard
(
UUID
corpseId
)
For world/chunk cleanup where the matching transient marker can no longer exist.
expire
Link copied to clipboard
public
Set
<
UUID
>
expire
(
long currentTick
)
offer
Link copied to clipboard
public
void
offer
(
UUID
corpseId
,
Set
<
UUID
>
eligiblePlayers
,
long expiresAtTick
)
remove
Player
Link copied to clipboard
public
Set
<
UUID
>
removePlayer
(
UUID
playerId
)
Removes one departing player's claims and returns markers that no longer serve anyone.