public enum NPCType extends Enum<NPCType>
Enum Constant and Description |
---|
ARMOR_STAND |
CAVE_SPIDER |
CHICKEN |
COW |
CREEPER |
DROPPED_ITEM |
ENDER_DRAGON |
ENDERMAN |
ENDERMITE |
EXPERIENCE_ORB |
GHAST |
GIANT |
GUARDIAN |
HORSE |
HUSK |
IRON_GOLEM |
LLAMA |
MUSHROOM_COW |
OCELOT |
PIG |
PIG_ZOMBIE |
PLAYER |
POLAR_BEAR |
RABBIT |
SHEEP |
SHULKER |
SKELETON |
SLIME |
SNOWMAN |
SPIDER |
SQUID |
VILLAGER |
WITCH |
WITHER |
WOLF |
ZOMBIE |
Modifier and Type | Method and Description |
---|---|
static NPCType |
forEntityType(org.bukkit.entity.EntityType entityType) |
static NPCType |
forNpcClass(Class<? extends NPCAbstract<?,?>> clazz) |
static NPCType |
fromString(String string) |
boolean |
isAvailable()
Check if this NPC type is available for the current server version
|
static NPCType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NPCType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NPCType DROPPED_ITEM
public static final NPCType EXPERIENCE_ORB
public static final NPCType HUSK
public static final NPCType ARMOR_STAND
public static final NPCType CREEPER
public static final NPCType SKELETON
public static final NPCType SPIDER
public static final NPCType GIANT
public static final NPCType ZOMBIE
public static final NPCType SLIME
public static final NPCType GHAST
public static final NPCType PIG_ZOMBIE
public static final NPCType ENDERMAN
public static final NPCType CAVE_SPIDER
public static final NPCType ENDER_DRAGON
public static final NPCType WITHER
public static final NPCType WITCH
public static final NPCType ENDERMITE
public static final NPCType GUARDIAN
public static final NPCType SHULKER
public static final NPCType PIG
public static final NPCType SHEEP
public static final NPCType COW
public static final NPCType CHICKEN
public static final NPCType SQUID
public static final NPCType WOLF
public static final NPCType MUSHROOM_COW
public static final NPCType SNOWMAN
public static final NPCType OCELOT
public static final NPCType IRON_GOLEM
public static final NPCType HORSE
public static final NPCType RABBIT
public static final NPCType POLAR_BEAR
public static final NPCType LLAMA
public static final NPCType VILLAGER
public static final NPCType PLAYER
public static NPCType[] values()
for (NPCType c : NPCType.values()) System.out.println(c);
public static NPCType 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 nullpublic static NPCType forEntityType(org.bukkit.entity.EntityType entityType)
public static NPCType forNpcClass(Class<? extends NPCAbstract<?,?>> clazz)
public boolean isAvailable()
Copyright © 2018. All rights reserved.