Enum Class EntityState

java.lang.Object
java.lang.Enum<EntityState>
be.seeseemelk.mockbukkit.entity.data.EntityState
All Implemented Interfaces:
Serializable, Comparable<EntityState>, Constable

public enum EntityState extends Enum<EntityState>
A state a entity is in
  • Enum Constant Details

    • DEFAULT

      public static final EntityState DEFAULT
      Default state
    • SLEEPING

      public static final EntityState SLEEPING
      Entity is sleeping
    • SNEAKING

      public static final EntityState SNEAKING
      Entity is sneaking
    • SEMI_PUFFED

      public static final EntityState SEMI_PUFFED
      Entity is semi-puffed (PufferFish)
    • PUFFED

      public static final EntityState PUFFED
      Entity is fully puffed (PufferFish)
    • GLIDING

      public static final EntityState GLIDING
      Entity is gliding, for example a player using elytra
    • SWIMMING

      public static final EntityState SWIMMING
      Entity is swimming
    • ANGRY

      public static final EntityState ANGRY
      Entity is angry (Enderman)
    • PEEKING

      public static final EntityState PEEKING
      Entity is peeking (Shulker)
    • OPEN

      public static final EntityState OPEN
      Entity is open (Shulker)
  • Method Details

    • values

      public static EntityState[] 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 EntityState 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
    • getName

      @NotNull public @NotNull String getName()
      Returns:
      The key this property is assigned to