Enum Class StructureActionCause

java.lang.Object
java.lang.Enum<StructureActionCause>
nl.pim16aap2.animatedarchitecture.core.events.StructureActionCause
All Implemented Interfaces:
Serializable, Comparable<StructureActionCause>, Constable

public enum StructureActionCause extends Enum<StructureActionCause>
Represents the different kind of causes that can be the reason of a Structure action.
  • Enum Constant Details

    • PLAYER

      public static final StructureActionCause PLAYER
      The action was initiated by a player.
    • REDSTONE

      public static final StructureActionCause REDSTONE
      The action was initiated by a redstone signal.
    • SERVER

      public static final StructureActionCause SERVER
      The Structure was toggled from the console or by a command block.
    • PLUGIN

      public static final StructureActionCause PLUGIN
      The Structure was toggled by another plugin.
    • PERPETUAL_MOVEMENT

      public static final StructureActionCause PERPETUAL_MOVEMENT
      The action was initiated because this type is always moving (e.g. clocks, flags, windmills).
  • Method Details

    • values

      public static StructureActionCause[] 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

      public static StructureActionCause valueOf(String name)
      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 name
      NullPointerException - if the argument is null