Enum Class ClaimType
- All Implemented Interfaces:
Serializable, Comparable<ClaimType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA placeholder claim that does not provide any protections.A claim owned by an individual player.A claim owned by the server.A claim owned by a team. -
Method Summary
-
Enum Constant Details
-
PLAYER
A claim owned by an individual player.The
ownerIdof the claim should correspond to the player's unique identifier (typically their UUID in string form). -
TEAM
A claim owned by a team.The
ownerIdof the claim should correspond to a team name. Teams are represented using the vanilla scoreboard team system. -
SERVER
A claim owned by the server.The
ownerIdis always set to "server". Functionally, this type behaves like a normal claim: it has protections, and users withbuildmc.adminpermission can modify it. There is no limit to the claim amount. This type is used to designate areas as being under server control. -
PLACEHOLDER
A placeholder claim that does not provide any protections.The
ownerIdis also set to "server". Unlike normal claims, this type does not restrict player actions. Its sole purpose is to reserve an area so that it cannot be claimed by players. This is useful for preventing conflicts in specific regions without modifying their existing properties or gameplay.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-