Enum Class AddReason

java.lang.Object
java.lang.Enum<AddReason>
com.hypixel.hytale.component.AddReason
All Implemented Interfaces:
Serializable, Comparable<AddReason>, Constable

public enum AddReason extends Enum<AddReason>
Determines the reason why an entity was added to the world.
  • Enum Constant Details

    • SPAWN

      public static final AddReason SPAWN
      The entity was spawned naturally or through a spawn mechanism.
    • LOAD

      public static final AddReason LOAD
      The entity was loaded from persistent storage.
  • Method Details

    • values

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