Enum Class StructureActionCause
java.lang.Object
java.lang.Enum<StructureActionCause>
nl.pim16aap2.animatedarchitecture.core.events.StructureActionCause
- All Implemented Interfaces:
Serializable,Comparable<StructureActionCause>,Constable
Represents the different kind of causes that can be the reason of a
Structure action.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe action was initiated because this type is always moving (e.g. clocks, flags, windmills).The action was initiated by a player.TheStructurewas toggled by another plugin.The action was initiated by a redstone signal.TheStructurewas toggled from the console or by a command block. -
Method Summary
Modifier and TypeMethodDescriptionstatic StructureActionCauseReturns the enum constant of this class with the specified name.static StructureActionCause[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
The action was initiated by a player. -
REDSTONE
The action was initiated by a redstone signal. -
SERVER
TheStructurewas toggled from the console or by a command block. -
PLUGIN
TheStructurewas toggled by another plugin. -
PERPETUAL_MOVEMENT
The action was initiated because this type is always moving (e.g. clocks, flags, windmills).
-
-
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
-