Class PlayerListElement
java.lang.Object
de.simonsator.partyandfriends.utilities.PlayerListElement
- All Implemented Interfaces:
Comparable<PlayerListElement>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(PlayerListElement pCompare) static List<PlayerListElement>
getFriendsAsPlayerListElement
(OnlinePAFPlayer pCaller, int pSortType) getName()
net.md_5.bungee.api.config.ServerInfo
boolean
isOnline()
-
Constructor Details
-
PlayerListElement
-
-
Method Details
-
getFriendsAsPlayerListElement
public static List<PlayerListElement> getFriendsAsPlayerListElement(OnlinePAFPlayer pCaller, int pSortType) - Parameters:
pCaller
- The person for whom this list should be createdpSortType
- The sorting type. 0 is by last online, 1 is alphabetically, 2 is reverse alphabetic and 3 is by friendship duration- Returns:
- A list of PlayerListElements
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PlayerListElement>
-
getDisplayName
-
getName
-
getUniqueId
-
isOnline
public boolean isOnline() -
getLastOnline
-
getServer
public net.md_5.bungee.api.config.ServerInfo getServer() -
getPlayer
-