public abstract class PlayerParty
extends java.lang.Object
Constructor | Description |
---|---|
PlayerParty() |
Modifier and Type | Method | Description |
---|---|---|
abstract boolean |
addPlayer(OnlinePAFPlayer pPlayer) |
Adds a player to the party
|
protected abstract void |
addToInvited(OnlinePAFPlayer pPlayer) |
|
protected abstract void |
findNewLeader() |
|
java.util.List<OnlinePAFPlayer> |
getAllPlayers() |
|
protected abstract java.util.List<java.util.UUID> |
getInvited() |
|
abstract int |
getInviteListSize() |
Returns the size of the invitation list
|
abstract OnlinePAFPlayer |
getLeader() |
Gets the leader of this party
|
abstract java.util.List<OnlinePAFPlayer> |
getPlayers() |
Returns the "normal" players who are in the party.
|
void |
invite(OnlinePAFPlayer pPlayer) |
Invites a player into this party
|
protected abstract boolean |
isAMember(OnlinePAFPlayer pPlayer) |
|
boolean |
isInParty(OnlinePAFPlayer pPlayer) |
Returns true if the player is in the party.
|
abstract boolean |
isInvited(OnlinePAFPlayer player) |
Returns true if the player is already invited.
|
boolean |
isLeader(OnlinePAFPlayer player) |
Returns true if the given player is the leader of this party, and it will
returns false if he is not the leader, of this party
|
boolean |
isNobodyInvited() |
|
void |
kickPlayer(OnlinePAFPlayer pPlayer) |
|
void |
leaveParty(OnlinePAFPlayer pPlayer) |
|
protected abstract boolean |
needsNewLeader(OnlinePAFPlayer pPlayer) |
|
abstract void |
removeFromInvited(PAFPlayer pPlayer) |
|
protected abstract void |
removePlayerSilent(OnlinePAFPlayer pPlayer) |
|
void |
sendMessage(net.md_5.bungee.api.chat.TextComponent pText) |
|
abstract void |
setLeader(OnlinePAFPlayer player) |
Sets the party leader.
|
public boolean isLeader(OnlinePAFPlayer player)
player
- The playerpublic boolean isInParty(OnlinePAFPlayer pPlayer)
pPlayer
- The playerprotected abstract boolean isAMember(OnlinePAFPlayer pPlayer)
protected abstract java.util.List<java.util.UUID> getInvited()
public boolean isNobodyInvited()
public abstract OnlinePAFPlayer getLeader()
public abstract void setLeader(OnlinePAFPlayer player)
player
- The playerpublic java.util.List<OnlinePAFPlayer> getAllPlayers()
protected abstract void removePlayerSilent(OnlinePAFPlayer pPlayer)
public abstract java.util.List<OnlinePAFPlayer> getPlayers()
public abstract boolean addPlayer(OnlinePAFPlayer pPlayer)
pPlayer
- The playerpublic void leaveParty(OnlinePAFPlayer pPlayer)
public void kickPlayer(OnlinePAFPlayer pPlayer)
public void invite(OnlinePAFPlayer pPlayer)
pPlayer
- The playerpublic abstract void removeFromInvited(PAFPlayer pPlayer)
protected abstract void addToInvited(OnlinePAFPlayer pPlayer)
public abstract int getInviteListSize()
public abstract boolean isInvited(OnlinePAFPlayer player)
player
- The playerpublic void sendMessage(net.md_5.bungee.api.chat.TextComponent pText)
protected abstract boolean needsNewLeader(OnlinePAFPlayer pPlayer)
protected abstract void findNewLeader()