Package net.okocraft.box.api.player
Interface BoxPlayer
public interface BoxPlayer
An interface of the online user.
-
Method Summary
Modifier and TypeMethodDescription@NotNull BoxUser
asUser()
@NotNull StockHolder
Gets the currentStockHolder
to deposit or withdraw.@NotNull String
getName()
Gets the name of this user.@NotNull PersonalStockHolder
Gets the personalStockHolder
of this player.@NotNull org.bukkit.entity.Player
Gets thePlayer
instance.@NotNull UUID
getUUID()
Gets theUUID
of this user.void
setCurrentStockHolder
(@NotNull StockHolder stockHolder) Sets theStockHolder
to deposit or withdraw.
-
Method Details
-
getUUID
Gets theUUID
of this user.- Returns:
- the
UUID
of this user
-
getName
Gets the name of this user.- Returns:
- the name of this user
-
asUser
-
getPlayer
@NotNull @NotNull org.bukkit.entity.Player getPlayer()Gets thePlayer
instance.- Returns:
- the
Player
-
getPersonalStockHolder
Gets the personalStockHolder
of this player.- Returns:
- the personal
StockHolder
of this player
-
getCurrentStockHolder
Gets the currentStockHolder
to deposit or withdraw.- Returns:
- the current
StockHolder
-
setCurrentStockHolder
Sets theStockHolder
to deposit or withdraw.- Parameters:
stockHolder
- theStockHolder
-