Package org.bukkit.entity
Enum Class EntityCategory
- All Implemented Interfaces:
- Serializable,- Comparable<EntityCategory>,- Constable
A classification of entities which may behave differently than others or be
 affected uniquely by enchantments and potion effects among other things.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic EntityCategoryReturns 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- 
NONEAny uncategorized entity. No additional effects are applied to these entities relating to a categorization.
- 
UNDEADUndead creatures. These creatures:- Are damaged by potions of healing.
- Are healed by potions of harming.
- Are immune to drowning and poison.
- Are subject to burning in daylight (though not all).
- Sink in water (except Drowned,PhantomsandWithers).
- Take additional damage from Enchantment.DAMAGE_UNDEAD.
- Are ignored by Withers.
 
- 
ARTHROPODEntities of the arthropod family. These creatures:- Take additional damage and receive PotionEffectType.SLOWfromEnchantment.DAMAGE_ARTHROPODS.
- Are immune to PotionEffectType.POISONif they are spiders.
 
- Take additional damage and receive 
- 
ILLAGEREntities that participate in raids. These creatures:- Are immune to damage from EvokerFangs.
- Are ignored by vindicatorsnamed "Johnny".
- Are hostile to villagers,wandering traders,iron golemsandplayers.
 
- Are immune to damage from 
- 
WATEREntities that reside primarily underwater (excludingDrowned). These creatures:- Take additional damage from Enchantment.IMPALING.
- Are immune to drowning (excluding dolphins).
- Take suffocation damage when out of water for extended periods of
   time (excluding guardiansandturtles).
- Are capable of swimming in water rather than floating or sinking.
 
- Take additional damage from 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-