CorePlayerHandler
public interface PlayerHandler
Modifier and Type | Method | Description |
---|---|---|
GamePlayer |
getPlayer(org.bukkit.entity.Player player) |
Obtains the GamePlayer object for the specified Bukkit entity.
|
GamePlayer |
loadPlayer(org.bukkit.entity.Player player) |
Loads a GamePlayer object for the specified Bukkit entity.
|
void |
setPlayerClass(java.lang.Class<? extends GamePlayer> playerClass) |
Alters the Java class to be used for players, in case a game wishes to use a custom player class.
|
void |
unloadPlayer(org.bukkit.entity.Player player) |
Unloads the GamePlayer object for the specified Bukkit entity.
|
GamePlayer loadPlayer(org.bukkit.entity.Player player)
player
- the Bukkit entity to load a GamePlayer object forvoid unloadPlayer(org.bukkit.entity.Player player)
player
- the Bukkit entity to unload the GamePlayer object forGamePlayer getPlayer(org.bukkit.entity.Player player)
player
- the Bukkit entity to obtain the GamePlayer object forvoid setPlayerClass(java.lang.Class<? extends GamePlayer> playerClass)
playerClass
- the new Java class to use for playersCoreGamePlayer