Enum Class EntityTypes1_12.EntityType
java.lang.Object
java.lang.Enum<EntityTypes1_12.EntityType>
com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_12.EntityType
- All Implemented Interfaces:
EntityType
,Serializable
,Comparable<EntityTypes1_12.EntityType>
,Constable
- Enclosing class:
- EntityTypes1_12
public static enum EntityTypes1_12.EntityType
extends Enum<EntityTypes1_12.EntityType>
implements EntityType
-
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 TypeMethodDescriptionstatic EntityTypes1_12.EntityType
findById
(int id) int
getId()
Returns the entity id.Returns the parent entity type if present.Returns the entity's Vanilla identifier.boolean
Returns whether the type does not represent an actual entity, e.g.static EntityTypes1_12.EntityType
Returns the enum constant of this class with the specified name.static EntityTypes1_12.EntityType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.viaversion.viaversion.api.minecraft.entities.EntityType
is, isOrHasParent, name
-
Enum Constant Details
-
ENTITY
-
AREA_EFFECT_CLOUD
-
END_CRYSTAL
-
EVOKER_FANGS
-
EXPERIENCE_ORB
-
EYE_OF_ENDER
-
FALLING_BLOCK
-
ITEM
-
TNT
-
LIGHTNING_BOLT
-
HANGING_ENTITY
-
LEASH_KNOT
-
ITEM_FRAME
-
PAINTING
-
PROJECTILE
-
FIREWORK_ROCKET
-
LLAMA_SPIT
-
SHULKER_BULLET
-
SNOWBALL
-
ENDER_PEARL
-
EGG
-
EXPERIENCE_BOTTLE
-
POTION
-
FISHING_HOOK
-
ABSTRACT_ARROW
-
ARROW
-
SPECTRAL_ARROW
-
HURTING_PROJECTILE
-
DRAGON_FIREBALL
-
FIREBALL
-
SMALL_FIREBALL
-
WITHER_SKULL
-
BOAT
-
ABSTRACT_MINECART
-
MINECART
-
FURNACE_MINECART
-
COMMAND_BLOCK_MINECART
-
TNT_MINECART
-
SPAWNER_MINECART
-
ABSTRACT_MINECART_CONTAINER
-
CHEST_MINECART
-
HOPPER_MINECART
-
LIVING_ENTITY_BASE
-
ARMOR_STAND
-
PLAYER
-
LIVING_ENTITY
-
ENDER_DRAGON
-
ABSTRACT_CREATURE
-
SLIME
-
MAGMA_CUBE
-
FLYING_MOB
-
GHAST
-
AMBIENT_CREATURE
-
BAT
-
ABSTRACT_GOLEM
-
SNOW_GOLEM
-
IRON_GOLEM
-
SHULKER
-
WATER_ANIMAL
-
SQUID
-
ABSTRACT_AGEABLE
-
VILLAGER
-
ABSTRACT_ANIMAL
-
CHICKEN
-
COW
-
MOOSHROOM
-
PIG
-
POLAR_BEAR
-
RABBIT
-
SHEEP
-
TAMABLE_ANIMAL
-
OCELOT
-
WOLF
-
ABSTRACT_SHOULDER_RIDING
-
PARROT
-
ABSTRACT_HORSE
-
HORSE
-
SKELETON_HORSE
-
ZOMBIE_HORSE
-
CHESTED_HORSE
-
DONKEY
-
MULE
-
LLAMA
-
ABSTRACT_MONSTER
-
BLAZE
-
CREEPER
-
ENDERMITE
-
ENDERMAN
-
GIANT
-
SILVERFISH
-
VEX
-
WITCH
-
WITHER
-
ABSTRACT_SKELETON
-
SKELETON
-
STRAY
-
WITHER_SKELETON
-
ZOMBIE
-
HUSK
-
ZOMBIE_PIGMEN
-
ZOMBIE_VILLAGER
-
GUARDIAN
-
ELDER_GUARDIAN
-
SPIDER
-
CAVE_SPIDER
-
ABSTRACT_ILLAGER
-
SPELLCASTER_ILLAGER
-
VINDICATOR
-
EVOKER
-
ILLUSIONER
-
-
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
-
getId
public int getId()Description copied from interface:EntityType
Returns the entity id.- Specified by:
getId
in interfaceEntityType
- Returns:
- entity id
-
getParent
Description copied from interface:EntityType
Returns the parent entity type if present.- Specified by:
getParent
in interfaceEntityType
- Returns:
- parent entity type if present
-
identifier
Description copied from interface:EntityType
Returns the entity's Vanilla identifier.- Specified by:
identifier
in interfaceEntityType
- Returns:
- entity identifier
-
isAbstractType
public boolean isAbstractType()Description copied from interface:EntityType
Returns whether the type does not represent an actual entity, e.g. animal or monster.- Specified by:
isAbstractType
in interfaceEntityType
- Returns:
- whether the type does not represent an actual entity
-
findById
-