public enum EntityCategory extends Enum<EntityCategory>
| Enum Constant and Description |
|---|
ARTHROPOD
Entities of the arthropod family.
|
ILLAGER
Entities that participate in raids.
|
NONE
Any uncategorized entity.
|
UNDEAD
Undead creatures.
|
WATER
Entities that reside primarily underwater (excluding
Drowned). |
| Modifier and Type | Method and Description |
|---|---|
static EntityCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityCategory NONE
public static final EntityCategory UNDEAD
Drowned, Phantoms
and Withers).
Enchantment.DAMAGE_UNDEAD.
Withers.
public static final EntityCategory ARTHROPOD
PotionEffectType.SLOW
from Enchantment.DAMAGE_ARTHROPODS.
PotionEffectType.POISON if they are spiders.
public static final EntityCategory ILLAGER
EvokerFangs.
vindicators named "Johnny".
villagers,
wandering traders, iron golems
and players.
public static final EntityCategory WATER
Drowned).
These creatures:
Enchantment.IMPALING.
dolphins).
guardians and turtles).
public static EntityCategory[] values()
for (EntityCategory c : EntityCategory.values()) System.out.println(c);
public static EntityCategory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.