Package ch.njol.skript.bukkitutil
Enum Class EntityCategory
- All Implemented Interfaces:
Serializable
,Comparable<EntityCategory>
,Constable
Categories for different types of
Entities
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionGet the Entity class of this CategorygetName()
boolean
Check if anEntity
is an instance of this Categoryboolean
isOfType
(EntityType entityType) Check if anEntityType
is an instance of this Categorystatic EntityCategory
Returns the enum constant of this class with the specified name.static EntityCategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABSTRACT_ARROW
-
AGEABLE
-
AMBIENT
-
ANIMAL
-
BOAT
-
BOSS
-
BUCKETABLE
-
BREEDABLE
-
CHEST_BOAT
-
CREATURE
-
DAMAGEABLE
-
DISPLAY
-
ENEMY
-
ENTITY
-
EXPLOSIVE
-
FISH
-
FLYING
-
GOLEM
-
HANGING
-
ILLAGER
-
MINECART
-
MOB
-
MONSTER
-
PROJECTILE
-
RAIDER
-
SCHOOLABLE_FISH
-
SHEARABLE
-
SPELLCASTER
-
TAMEABLE
-
THROWABLE_PROJECTILE
-
VEHICLE
-
WATER_MOB
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getEntityClass
Get the Entity class of this Category- Returns:
- Entity class of this category
-
isOfType
Check if anEntity
is an instance of this Category- Parameters:
entity
- Entity to check- Returns:
- True if entity is instance of this category
-
isOfType
Check if anEntityType
is an instance of this Category- Parameters:
entityType
- EntityType to check- Returns:
- True if entity is instance of this category
-
getName
-