Package net.glowstone.entity.meta
Enum Class MetadataIndex
- All Implemented Interfaces:
Serializable
,Comparable<MetadataIndex>
,Constable
Index constants for entity metadata.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHooked entity id + 1, or 0 if there is no hooked entity. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Class<? extends org.bukkit.entity.Entity>
int
getIndex()
static MetadataIndex
getIndex
(int index, MetadataType type) Returns the firstMetadataIndex
with a given index andMetadataType
.getType()
static MetadataIndex
Returns the enum constant of this class with the specified name.static MetadataIndex[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATUS
-
AIR_TIME
-
NAME_TAG
-
SHOW_NAME_TAG
-
SILENT
-
NOGRAVITY
-
AREAEFFECTCLOUD_RADIUS
-
AREAEFFECTCLOUD_COLOR
-
AREAEFFECTCLOUD_POINT
-
AREAEFFECTCLOUD_PARTICLE
-
ARROW_CRITICAL
-
ARROW_SHOOTER_ID
-
TIPPEDARROW_COLOR
-
TRIDENT_LOYALTY
-
BOAT_HIT_TIME
-
BOAT_DIRECTION
-
BOAT_DAMAGE_TAKEN
-
BOAT_TYPE
-
BOAT_RIGHT_PADDLE_TURNING
-
BOAT_LEFT_PADDLE_TURNING
-
BOAT_SPLASH_TIMER
-
ENDERCRYSTAL_BEAM_TARGET
-
ENDERCRYSTAL_SHOW_BOTTOM
-
WITHERSKULL_INVULNERABLE
-
FIREWORK_INFO
-
FIREWORK_ENTITY
-
ITEM_FRAME_ITEM
-
ITEM_FRAME_ROTATION
-
ITEM_ITEM
-
HAND_USED
-
HEALTH
-
POTION_COLOR
-
POTION_AMBIENT
-
ARROW_COUNT
-
PLAYER_EXTRA_HEARTS
-
PLAYER_SCORE
-
PLAYER_SKIN_PARTS
-
PLAYER_MAIN_HAND
-
PLAYER_LEFT_SHOULDER
-
PLAYER_RIGHT_SHOULDER
-
ARMORSTAND_FLAGS
-
ARMORSTAND_HEAD_POSITION
-
ARMORSTAND_BODY_POSITION
-
ARMORSTAND_LEFT_ARM_POSITION
-
ARMORSTAND_RIGHT_ARM_POSITION
-
ARMORSTAND_LEFT_LEG_POSITION
-
ARMORSTAND_RIGHT_LEG_POSITION
-
BAT_FLAGS
-
AGE_ISBABY
-
ABSTRACT_HORSE_FLAGS
-
ABSTRACT_HORSE_OWNER
-
HORSE_STYLE
-
HORSE_ARMOR
-
CHESTED_HORSE_HAS_CHEST
-
LLAMA_STRENGTH
-
LLAMA_CARPET
-
LLAMA_VARIANT
-
PIG_SADDLE
-
PIG_BOOST
-
RABBIT_TYPE
-
SHEEP_DATA
-
TAMEABLEAANIMAL_STATUS
-
TAMEABLEANIMAL_OWNER
-
OCELOT_TYPE
-
WOLF_HEALTH
-
WOLF_BEGGING
-
WOLF_COLOR
-
VILLAGER_PROFESSION
-
GOLEM_PLAYER_BUILT
-
SNOWMAN_NOHAT
-
SHULKER_FACING_DIRECTION
-
SHULKER_ATTACHMENT_POSITION
-
SHULKER_SHIELD_HEIGHT
-
SHULKER_COLOR
-
BLAZE_ON_FIRE
-
CREEPER_STATE
-
CREEPER_POWERED
-
CREEPER_IGNITED
-
GUARDIAN_SPIKES
-
GUARDIAN_TARGET
-
SKELETON_HANDS_RISEN_UP
-
SPIDER_CLIMBING
-
WITCH_AGGRESSIVE
-
WITHER_TARGET_1
-
WITHER_TARGET_2
-
WITHER_TARGET_3
-
WITHER_INVULN_TIME
-
ZOMBIE_IS_CHILD
-
ZOMBIE_PROFESSION
-
ZOMBIE_HANDS_RISED_UP
-
ZOMBIE_BECOMING_DROWNED
-
ZOMBIE_VILLAGER_IS_CONVERTING
-
ZOMBIE_VILLAGER_PROFESSION
-
ENDERMAN_BLOCK
-
ENDERMAN_SCREAMING
-
ENDERDRAGON_PHASE
-
GHAST_ATTACKING
-
SLIME_SIZE
-
POLARBEAR_STANDING
-
MINECART_SHAKE_POWER
-
MINECART_SHAKE_DIRECTION
-
MINECART_DAMAGE_TAKEN
-
MINECART_BLOCK
-
MINECART_BLOCK_OFFSET
-
MINECART_BLOCK_SHOWN
-
EVOKER_SPELL
-
VEX_STATE
-
VINDICATOR_STATE
-
PHANTOM_SIZE
-
DOLPHIN_TREASURE_POSITION
-
DOLPHIN_CAN_FIND_TREASURE
-
DOLPHIN_HAS_FISH
-
FISH_FROM_BUCKET
-
PUFFER_FISH_STATE
-
TROPICAL_FISH_VARIANT
-
TURTLE_HOME_POSITION
-
TURTLE_HAS_EGG
-
TURTLE_LAYING_EGG
-
TURTLE_TRAVEL_POS
-
TURTLE_GOING_HOME
-
TURTLE_TRAVELLING
-
DROWNED_HAS_TARGET
-
PARROT_VARIANT
-
MINECARTCOMMANDBLOCK_COMMAND
-
MINECARTCOMMANDBLOCK_LAST_OUTPUT
-
FURNACE_MINECART_POWERED
-
TNT_PRIMED
-
FISHING_HOOK_HOOKED_ENTITY
Hooked entity id + 1, or 0 if there is no hooked entity.
-
-
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
-
getIndex
Returns the firstMetadataIndex
with a given index andMetadataType
.- Parameters:
index
- the index to look uptype
- the type to look up- Returns:
- a
MetadataIndex
with that index and type, or null if none match
-
appliesTo
-
getIndex
public int getIndex() -
getType
-
getAppliesTo
-