public enum ZombieType extends java.lang.Enum<ZombieType>
Enum Constant and Description |
---|
HUSK |
NORMAL |
VILLAGER_BUTCHER |
VILLAGER_FARMER |
VILLAGER_LIBRARIAN |
VILLAGER_PRIEST |
VILLAGER_SMITH |
Modifier and Type | Method and Description |
---|---|
SoundEvent |
getAmbientSound() |
static ZombieType |
getByOrdinal(int ordinal) |
SoundEvent |
getDeathSound() |
SoundEvent |
getHurtSound() |
int |
getId() |
TextComponentTranslation |
getName() |
SoundEvent |
getStepSound() |
static ZombieType |
getVillagerByOrdinal(int ordinal) |
int |
getVillagerId() |
boolean |
isSunSensitive() |
boolean |
isVillager() |
static ZombieType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZombieType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZombieType NORMAL
public static final ZombieType VILLAGER_FARMER
public static final ZombieType VILLAGER_LIBRARIAN
public static final ZombieType VILLAGER_PRIEST
public static final ZombieType VILLAGER_SMITH
public static final ZombieType VILLAGER_BUTCHER
public static final ZombieType HUSK
public static ZombieType[] values()
for (ZombieType c : ZombieType.values()) System.out.println(c);
public static ZombieType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public boolean isVillager()
public int getVillagerId()
@Nullable public static ZombieType getByOrdinal(int ordinal)
public static ZombieType getVillagerByOrdinal(int ordinal)
public TextComponentTranslation getName()
public boolean isSunSensitive()
public SoundEvent getAmbientSound()
public SoundEvent getHurtSound()
public SoundEvent getDeathSound()
public SoundEvent getStepSound()