Class ServerPlayerDataAPI
java.lang.Object
xaero.pac.common.server.player.data.api.ServerPlayerDataAPI
API for data attached to a server player
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerPlayerDataAPI
from
(net.minecraft.server.level.ServerPlayer player) Gets the player data for a specified logged in player.abstract boolean
Checks if the player is using the claims admin mode.abstract boolean
Checks if the player is using the claims non-ally mode.abstract boolean
Checks if the player is using the server claim mode.
-
Constructor Details
-
ServerPlayerDataAPI
public ServerPlayerDataAPI()
-
-
Method Details
-
isClaimsAdminMode
public abstract boolean isClaimsAdminMode()Checks if the player is using the claims admin mode.- Returns:
- true if the player is in the claims admin mode, otherwise false
-
isClaimsNonallyMode
public abstract boolean isClaimsNonallyMode()Checks if the player is using the claims non-ally mode.- Returns:
- true if the player is in the claims non-ally mode, otherwise false
-
isClaimsServerMode
public abstract boolean isClaimsServerMode()Checks if the player is using the server claim mode.- Returns:
- true if the player is in the server claim mode, otherwise false
-
from
@Nonnull public static ServerPlayerDataAPI from(@Nonnull net.minecraft.server.level.ServerPlayer player) Gets the player data for a specified logged in player.- Parameters:
player
- the player, not null- Returns:
- the parties and claims player data for the player, not null
-