PartyRule
What a plugin declares to answer the party question, as parties()
does; at most one listed plugin declares one. The members a rule
answers are the ones in this room: a platform’s party may hold others.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
traits? |
readonly Trait[] |
The traits its answers read, which a view watches to read them again as they change. |
Methods
Section titled “Methods”findParty()
Section titled “findParty()”findParty(
world,player):PartyEntity|null
The party player is in, or null for none.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
player |
PlayerEntity |
Returns
Section titled “Returns”PartyEntity | null
readPartyLeader()
Section titled “readPartyLeader()”readPartyLeader(
world,party):PlayerEntity|null
The member who speaks for the party, such as the one whose join queues it, or null where none is in this room.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
party |
PartyEntity |
Returns
Section titled “Returns”PlayerEntity | null
readPartyMembers()
Section titled “readPartyMembers()”readPartyMembers(
world,party): readonlyPlayerEntity[]
The party’s members in this room, in no order the core reads.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
party |
PartyEntity |
Returns
Section titled “Returns”readonly PlayerEntity[]