Enum Class EntityUtil

java.lang.Object
java.lang.Enum<EntityUtil>
us.talabrek.ultimateskyblock.util.EntityUtil
All Implemented Interfaces:
Serializable, Comparable<EntityUtil>, Constable

public enum EntityUtil extends Enum<EntityUtil>
Handles various entity operations.
  • Method Details

    • values

      public static EntityUtil[] 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 EntityUtil 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
    • getAnimals

      public static List<org.bukkit.entity.Animals> getAnimals(List<? extends org.bukkit.entity.Entity> creatures)
    • getMonsters

      public static List<org.bukkit.entity.Monster> getMonsters(List<? extends org.bukkit.entity.Entity> creatures)
    • getNPCs

      public static List<org.bukkit.entity.NPC> getNPCs(List<? extends org.bukkit.entity.Entity> creatures)
    • getEntity

      public static <T> List<T> getEntity(List<? extends org.bukkit.entity.Entity> creatures, Class<T> typeClass)
    • getEntityDisplayName

      public static String getEntityDisplayName(org.bukkit.entity.EntityType entityType)