Package net.okocraft.box.api.player
Interface BoxPlayerMap
public interface BoxPlayerMap
An interface to get the
BoxPlayer
from Player
.-
Method Summary
Modifier and TypeMethodDescription@NotNull BoxPlayer
get
(@NotNull org.bukkit.entity.Player player) Gets theBoxPlayer
.boolean
isLoaded
(@NotNull org.bukkit.entity.Player player) Checks if theBoxPlayer
of specified player is loaded.boolean
isScheduledLoading
(@NotNull org.bukkit.entity.Player player) Checks if loading of data for the specified player is scheduled.
-
Method Details
-
isLoaded
boolean isLoaded(@NotNull @NotNull org.bukkit.entity.Player player) Checks if theBoxPlayer
of specified player is loaded.- Parameters:
player
- thePlayer
to check- Returns:
true
if loaded,false
otherwise
-
isScheduledLoading
boolean isScheduledLoading(@NotNull @NotNull org.bukkit.entity.Player player) Checks if loading of data for the specified player is scheduled.- Parameters:
player
- thePlayer
to check- Returns:
true
indicates that it will be loaded a little later,false
indicates that it has already been loaded or failed.
-
get
@NotNull @NotNull BoxPlayer get(@NotNull @NotNull org.bukkit.entity.Player player) throws IllegalStateException Gets theBoxPlayer
.- Parameters:
player
- thePlayer
- Returns:
- the
BoxPlayer
- Throws:
IllegalStateException
- if the player is not online or not loaded
-