Package net.okocraft.box.api.player
Interface BoxPlayer
public interface BoxPlayer
An interface of the online user.
-
Method Summary
Modifier and TypeMethodDescription@NotNull BoxUserasUser()@NotNull StockHolderGets the currentStockHolderto deposit or withdraw.@NotNull StringgetName()Gets the name of this user.@NotNull PersonalStockHolderGets the personalStockHolderof this player.@NotNull PlayerGets thePlayerinstance.@NotNull UUIDgetUUID()Gets theUUIDof this user.voidsetCurrentStockHolder(@NotNull StockHolder stockHolder) Sets theStockHolderto deposit or withdraw.
-
Method Details
-
getUUID
Gets theUUIDof this user.- Returns:
- the
UUIDof this user
-
getName
Gets the name of this user.- Returns:
- the name of this user
-
asUser
-
getPlayer
Gets thePlayerinstance.- Returns:
- the
Player
-
getPersonalStockHolder
Gets the personalStockHolderof this player.- Returns:
- the personal
StockHolderof this player
-
getCurrentStockHolder
Gets the currentStockHolderto deposit or withdraw.- Returns:
- the current
StockHolder
-
setCurrentStockHolder
Sets theStockHolderto deposit or withdraw.- Parameters:
stockHolder- theStockHolder
-