Enum Class EntityCategory

java.lang.Object
java.lang.Enum<EntityCategory>
ch.njol.skript.bukkitutil.EntityCategory
All Implemented Interfaces:
Serializable, Comparable<EntityCategory>, Constable

public enum EntityCategory extends Enum<EntityCategory>
Categories for different types of Entities
  • Enum Constant Details

  • Method Details

    • values

      public static EntityCategory[] 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 EntityCategory 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
    • getEntityClass

      public Class<? extends Entity> getEntityClass()
      Get the Entity class of this Category
      Returns:
      Entity class of this category
    • isOfType

      public boolean isOfType(Entity entity)
      Check if an Entity is an instance of this Category
      Parameters:
      entity - Entity to check
      Returns:
      True if entity is instance of this category
    • isOfType

      public boolean isOfType(EntityType entityType)
      Check if an EntityType is an instance of this Category
      Parameters:
      entityType - EntityType to check
      Returns:
      True if entity is instance of this category
    • getName

      public String getName()