Enum Class ClaimingAction
- All Implemented Interfaces:
Serializable,Comparable<ClaimingAction>,Constable
All possible types of claiming actions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdding a claiming anchorClaiming a chunkMarking a claim for forceloadingRemoving a claiming anchorUnclaiming a chunkUnclaiming a chunk if it's not anchoredUnmarking a claim for forceloading -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether this action can be used to affect an area larger than 1 chunk.booleanGets whether this action always checks anchor ranges, even when used forcefully.Gets the result type that is used when this type of action succeeds.booleanGets whether this claiming action is uninterruptible with the interrupt command.static ClaimingActionReturns the enum constant of this class with the specified name.static ClaimingAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLAIM
Claiming a chunk -
UNCLAIM
Unclaiming a chunk -
FORCELOAD
Marking a claim for forceloading -
UNFORCELOAD
Unmarking a claim for forceloading -
UNCLAIM_UNANCHORED
Unclaiming a chunk if it's not anchored -
ANCHOR
Adding a claiming anchor -
UNANCHOR
Removing a claiming anchor
-
-
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
-
getSuccessType
Gets the result type that is used when this type of action succeeds.- Returns:
- the success result type, not null
-
isUninterruptible
public boolean isUninterruptible()Gets whether this claiming action is uninterruptible with the interrupt command.- Returns:
- true if it's uninterruptible, otherwise false
-
getAlwaysChecksAnchors
public boolean getAlwaysChecksAnchors()Gets whether this action always checks anchor ranges, even when used forcefully.- Returns:
- true if this action always checks anchor ranges, otherwise false
-
canAffectArea
public boolean canAffectArea()Gets whether this action can be used to affect an area larger than 1 chunk.- Returns:
- true if this action can be used to affect an area, otherwise false
-