Class MetaIndex<Y>
java.lang.Object
me.libraryaddict.disguise.disguisetypes.MetaIndex<Y>
-
Field Summary
FieldsModifier and TypeFieldDescriptionTrue if entity is a babystatic MetaIndex
<org.bukkit.Color> The color of the Area Effect Cloud as RGB integerIgnore radius and show effect as single point, not areastatic MetaIndex
<com.github.retrooper.packetevents.protocol.particle.Particle<?>> The type of particle to displayThe size of the areastatic MetaIndex
<com.github.retrooper.packetevents.protocol.entity.armadillo.ArmadilloState> static MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> Armorstand body eular vectorstatic MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> Armorstand head eular vectorstatic MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> Armorstand left arm eular vectorstatic MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> Armorstand left leg eular vectorArmorstand metadatastatic MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> Armorstand right arm eular vectorstatic MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> Armorstand right leg eular vectorIf the arrow is a critical strikeThe shooter of the arrow, no visible effect if setstatic MetaIndex
<org.bukkit.entity.Axolotl.Variant> If the bat is hanging, false/true stateIf the blaze is ignited, false/true statestatic MetaIndex
<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> How damaged the boat isstatic MetaIndex
<org.bukkit.entity.Boat.Type> static MetaIndex
<org.bukkit.TreeSpecies> The type of the boat, birch, pine, oak, etc.static MetaIndex
<AnimalColor> static MetaIndex
<org.bukkit.entity.Cat.Type> static MetaIndex
<org.bukkit.entity.Chicken.Variant> static MetaIndex
<org.bukkit.entity.Cow.Variant> If creeper is ignited, about to blow upIf creeper has glowing aura, struck by lightningNo visible effectstatic MetaIndex
<com.github.retrooper.packetevents.util.Quaternion4f> static MetaIndex
<com.github.retrooper.packetevents.util.Quaternion4f> static MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> static MetaIndex
<com.github.retrooper.packetevents.util.Vector3f> No visible effectNo visible effectstatic MetaIndex
<com.github.retrooper.packetevents.util.Vector3i> No visible effectstatic MetaIndex
<org.bukkit.inventory.ItemStack> The itemstack of the dropped item, must be setIf the ender crystal has a platestatic MetaIndex
<org.bukkit.inventory.ItemStack> If the enderman is screamingstatic MetaIndex
<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> What block the enderman is holding, uses internal nms int mappingsThe custom name of the entity, empty if not setThe custom name of the entity, empty if not setIf custom name should always be visible even when not looked atA bit shifted byte indicating several flags on the entity, sprinting, burning, sneaking, etcIf entity is effected by gravity, some visial effectsstatic MetaIndex
<com.github.retrooper.packetevents.protocol.entity.pose.EntityPose> If entity can make sounds, no noticable effectsIf entity can make sounds, no noticable effectsstatic MetaIndex
<com.github.retrooper.packetevents.util.Vector3i> static MetaIndex
<org.bukkit.inventory.ItemStack> static MetaIndex
<org.bukkit.inventory.ItemStack> static MetaIndex
<org.bukkit.entity.Fox.Type> The type of fox, its coloringstatic MetaIndex
<org.bukkit.entity.Frog.Variant> Changes the face of the ghastSwitch between the guardian spikes enabled/disabledPlay a guardian beam between guardian and target entity idIf horse has chest, set for donkeyColor of the horse, uses enum not RGBSets several bit shifted flags, grazing, rearing, etcOwner of the horse, no visual effectstatic MetaIndex
<org.bukkit.inventory.ItemStack> static MetaIndex
<org.bukkit.entity.ItemDisplay.ItemDisplayTransform> static MetaIndex
<org.bukkit.inventory.ItemStack> The itemstack inside the itemframeThe itemstack rotation inside the itemframeHow many arrows sticking out of the living entity, currently used on playerHow much health the living entity has, generally only visible on bosses due to their health barThe main hand of the living entityIf the potion effect particles should be fadedThe RGB color of the potion particles, 0 if not setHow many bee stings does the entity haveIf there is no carpet, -1.static MetaIndex
<org.bukkit.entity.Llama.Color> The color of the llama, color enum valueThe block id:data combined id, 0 if no blockstatic MetaIndex
<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> If there is a block inside the minecartHow much gap there should be between minecart and block, 6 by defaultstatic MetaIndex
<net.kyori.adventure.text.Component> The command run if the minecraft is a command minecart blockIf the minecart furnace is fueled and burningstatic MetaIndex
<org.bukkit.entity.MushroomCow.Variant> static MetaIndex
<org.bukkit.entity.Ocelot.Type> static MetaIndex
<org.bukkit.inventory.ItemStack> static MetaIndex
<org.bukkit.Art> static MetaIndex
<org.bukkit.entity.Panda.Gene> static MetaIndex
<org.bukkit.entity.Panda.Gene> static MetaIndex
<org.bukkit.entity.Parrot.Variant> If pig runs faster, no visible effectstatic MetaIndex
<org.bukkit.entity.Pig.Variant> static MetaIndex
<com.github.retrooper.packetevents.protocol.nbt.NBTCompound> static MetaIndex
<com.github.retrooper.packetevents.protocol.nbt.NBTCompound> static MetaIndex
<org.bukkit.entity.Rabbit.Type> static MetaIndex
<org.bukkit.entity.Salmon.Variant> Also has 'is sheared' metastatic MetaIndex
<com.github.retrooper.packetevents.protocol.world.BlockFace> static MetaIndex
<com.github.retrooper.packetevents.protocol.entity.sniffer.SnifferState> static MetaIndex
<org.bukkit.inventory.ItemStack> static MetaIndex
<net.kyori.adventure.text.Component> static MetaIndex
<org.bukkit.inventory.ItemStack> static MetaIndex
<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> static MetaIndex
<com.github.retrooper.packetevents.util.Vector3i> static MetaIndex
<com.github.retrooper.packetevents.util.Vector3i> static MetaIndex
<com.github.retrooper.packetevents.protocol.entity.villager.VillagerData> static MetaIndex
<AnimalColor> static MetaIndex
<com.github.retrooper.packetevents.protocol.entity.wolfvariant.WolfSoundVariant> Uses WolfSoundVariant as Wolf.SoundVariant is paper only, and spigot does not seem to have an implemention at casual glancestatic MetaIndex
<org.bukkit.entity.Wolf.Variant> static MetaIndex
<com.github.retrooper.packetevents.protocol.entity.villager.VillagerData> Shown for villager conversion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMetaIndexes
(MetaIndex... metaIndexes) Add @metaIndexes to the existing MetaIndexes, was intended for backwards supportClass
<? extends FlagWatcher> int
getIndex()
static MetaIndex
getMetaIndex
(Class<? extends FlagWatcher> watcherClass, int flagNo) static MetaIndex
getMetaIndex
(FlagWatcher watcher, int flagNo) static MetaIndex
getMetaIndexByName
(String name) getMetaIndexes
(Class<? extends FlagWatcher> watcherClass) static String
Get the field name of a registered MetaIndexboolean
isBlock()
boolean
boolean
boolean
boolean
isUsed()
static void
Used for debugging purposes, prints off the registered MetaIndexesstatic boolean
setMetaIndex
(String name, MetaIndex metaIndex) Returns true if field was replaced, false if the field doesn't exist or exception occuredstatic void
Resets the metaindex array and regenerates it from the fieldstoString()
static void
Simple verification for the dev that they're setting up the FlagType's properly.static MetaIndex[]
values()
Get all the MetaIndex's registered
-
Field Details
-
ALLAY_DANCING
-
ALLAY_CAN_DUPLICATE
-
AGEABLE_BABY
True if entity is a baby -
AREA_EFFECT_RADIUS
The size of the area -
AREA_EFFECT_CLOUD_COLOR
The color of the Area Effect Cloud as RGB integer -
AREA_EFFECT_IGNORE_RADIUS
Ignore radius and show effect as single point, not area -
AREA_EFFECT_PARTICLE
public static MetaIndex<com.github.retrooper.packetevents.protocol.particle.Particle<?>> AREA_EFFECT_PARTICLEThe type of particle to display -
AREA_EFFECT_PARTICLE_OLD
-
AREA_EFFECT_PARTICLE_PARAM_1_OLD
-
AREA_EFFECT_PARTICLE_PARAM_2_OLD
-
ARMADILLO_STATE
public static MetaIndex<com.github.retrooper.packetevents.protocol.entity.armadillo.ArmadilloState> ARMADILLO_STATE -
ARMORSTAND_BODY
Armorstand body eular vector -
ARMORSTAND_HEAD
Armorstand head eular vector -
ARMORSTAND_LEFT_ARM
Armorstand left arm eular vector -
ARMORSTAND_LEFT_LEG
Armorstand left leg eular vector -
ARMORSTAND_META
Armorstand metadata -
ARMORSTAND_RIGHT_ARM
Armorstand right arm eular vector -
ARMORSTAND_RIGHT_LEG
Armorstand right leg eular vector -
ARROW_CRITICAL
If the arrow is a critical strike -
ARROW_UUID
The shooter of the arrow, no visible effect if set -
ARROW_PIERCE_LEVEL
-
ARROW_IN_GROUND
-
AXOLOTL_VARIANT
-
AXOLOTL_PLAYING_DEAD
-
AXOLOTL_FROM_BUCKET
-
BAT_HANGING
If the bat is hanging, false/true state -
BEE_META
-
BEE_ANGER
-
BLAZE_BLAZING
If the blaze is ignited, false/true state -
BLOCK_DISPLAY_BLOCK_STATE
public static MetaIndex<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> BLOCK_DISPLAY_BLOCK_STATE -
BOAT_LAST_HIT
-
BOAT_DIRECTION
-
BOAT_DAMAGE
How damaged the boat is -
BOAT_LEFT_PADDLING
-
BOAT_RIGHT_PADDLING
-
BOAT_TYPE_OLD
The type of the boat, birch, pine, oak, etc. -
BOAT_TYPE_NEW
-
BOAT_SHAKE
-
BOGGED_SHEARED
-
CAMEL_DASHING
-
CAMEL_LAST_POSE_CHANGED
-
CAT_TYPE
-
CAT_LYING_DOWN
-
CAT_LOOKING_UP
-
CAT_COLLAR
-
CHICKEN_VARIANT
-
COW_VARIANT
-
CREAKING_CAN_MOVE
-
CREAKING_IS_ACTIVE
-
CREAKING_IS_TEARING_DOWN
-
CREAKING_HOME_POS
-
CREEPER_IGNITED
If creeper is ignited, about to blow up -
CREEPER_POWERED
If creeper has glowing aura, struck by lightning -
CREEPER_STATE
No visible effect -
DISPLAY_INTERPOLATION_START_DELTA_TICKS
-
DISPLAY_INTERPOLATION_DURATION
-
DISPLAY_POS_ROT_INTERPOLATION_DURATION
-
DISPLAY_TRANSLATION
-
DISPLAY_SCALE
-
DISPLAY_LEFT_ROTATION
-
DISPLAY_RIGHT_ROTATION
-
DISPLAY_BILLBOARD_RENDER_CONSTRAINTS
-
DISPLAY_BRIGHTNESS_OVERRIDE
-
DISPLAY_VIEW_RANGE
-
DISPLAY_SHADOW_RADIUS
-
DISPLAY_SHADOW_STRENGTH
-
DISPLAY_WIDTH
-
DISPLAY_HEIGHT
-
DISPLAY_GLOW_COLOR_OVERRIDE
-
DOLPHIN_TREASURE_POS
No visible effect -
DOLPHIN_HAS_FISH
No visible effect -
DOLPHIN_BREATH
No visible effect -
DROPPED_ITEM
The itemstack of the dropped item, must be set -
ENDER_CRYSTAL_BEAM
-
ENDER_CRYSTAL_PLATE
If the ender crystal has a plate -
ENDER_DRAGON_PHASE
-
ENDER_SIGNAL_ITEM
-
ENDERMAN_AGRESSIVE
If the enderman is screaming -
ENDERMAN_UNKNOWN
-
ENDERMAN_ITEM
public static MetaIndex<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> ENDERMAN_ITEMWhat block the enderman is holding, uses internal nms int mappings -
ENTITY_META
A bit shifted byte indicating several flags on the entity, sprinting, burning, sneaking, etc -
ENTITY_AIR_TICKS
-
ENTITY_CUSTOM_NAME
The custom name of the entity, empty if not set -
ENTITY_CUSTOM_NAME_OLD
The custom name of the entity, empty if not set -
ENTITY_CUSTOM_NAME_VISIBLE
If custom name should always be visible even when not looked at -
ENTITY_SILENT
If entity can make sounds, no noticable effects -
ENTITY_NO_GRAVITY
If entity is effected by gravity, some visial effects -
ENTITY_POSE
public static MetaIndex<com.github.retrooper.packetevents.protocol.entity.pose.EntityPose> ENTITY_POSEIf entity can make sounds, no noticable effects -
ENTITY_TICKS_FROZEN
-
EXPERIENCE_ORB_VALUE
-
FALLING_BLOCK_POSITION
-
FIREBALL_ITEM
-
FIREWORK_ITEM
-
FISH_FROM_BUCKET
-
FIREWORK_ATTACHED_ENTITY_OLD
-
FIREWORK_ATTACHED_ENTITY
-
FIREWORK_SHOT_AT_ANGLE
-
FISHING_HOOK_HOOKED_ID
-
FISHING_HOOK_HOOKED
-
FOX_TYPE
The type of fox, its coloring -
FOX_META
-
FOX_TRUSTED_1
-
FOX_TRUSTED_2
-
FROG_VARIANT
-
FROG_TONGUE_TARGET
-
GHAST_AGRESSIVE
Changes the face of the ghast -
GLOW_SQUID_DARK_TICKS_REMAINING
-
GOAT_SCREAMING
-
GOAT_HAS_LEFT_HORN
-
GOAT_HAS_RIGHT_HORN
-
GUARDIAN_RETRACT_SPIKES
Switch between the guardian spikes enabled/disabled -
GUARDIAN_TARGET
Play a guardian beam between guardian and target entity id -
HOGLIN_SHAKING
-
HORSE_CHESTED_CARRYING_CHEST
If horse has chest, set for donkey -
HORSE_ARMOR
-
HORSE_COLOR_STYLE
Color of the horse, uses enum not RGB -
HORSE_META
Sets several bit shifted flags, grazing, rearing, etc -
HORSE_OWNER
Owner of the horse, no visual effect -
ILLAGER_SPELL
-
ILLAGER_META
-
ILLAGER_SPELL_TICKS
-
INSENTIENT_META
-
IRON_GOLEM_PLAYER_CREATED
-
ITEM_DISPLAY_ITEMSTACK
-
ITEM_DISPLAY_TRANSFORM
-
ITEMFRAME_ITEM
The itemstack inside the itemframe -
ITEMFRAME_ROTATION
The itemstack rotation inside the itemframe -
INTERACTION_WIDTH
-
INTERACTION_HEIGHT
-
INTERACTION_RESPONSIVE
-
LIVING_META
The main hand of the living entity -
LIVING_HEALTH
How much health the living entity has, generally only visible on bosses due to their health bar -
LIVING_PARTICLES
-
LIVING_POTIONS
The RGB color of the potion particles, 0 if not set -
LIVING_POTION_AMBIENT
If the potion effect particles should be faded -
LIVING_ARROWS
How many arrows sticking out of the living entity, currently used on player -
LIVING_STINGS
How many bee stings does the entity have -
LIVING_BED_POSITION
-
LLAMA_STRENGTH
-
LLAMA_CARPET
If there is no carpet, -1. Otherwise it's a color enum value -
LLAMA_COLOR
The color of the llama, color enum value -
MINECART_SHAKING_POWER
-
MINECART_SHAKING_DIRECTION
-
MINECART_SHAKING_MULITPLIER
-
MINECART_BLOCK
The block id:data combined id, 0 if no block -
MINECART_BLOCK_NEW
public static MetaIndex<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> MINECART_BLOCK_NEW -
MINECART_BLOCK_Y
How much gap there should be between minecart and block, 6 by default -
MINECART_BLOCK_VISIBLE
If there is a block inside the minecart -
MINECART_COMMAND_STRING
The command run if the minecraft is a command minecart block -
MINECART_COMMAND_LAST_OUTPUT
-
MINECART_FURANCE_FUELED
If the minecart furnace is fueled and burning -
MUSHROOM_COW_TYPE
-
OCELOT_TYPE
-
OCELOT_TRUST
-
OMINOUS_ITEM_SPAWNER_ITEM
-
PAINTING
-
PANDA_HEAD_SHAKING
-
PANDA_UNKNOWN_1
-
PANDA_UNKNOWN_2
-
PANDA_MAIN_GENE
-
PANDA_HIDDEN_GENE
-
PANDA_META
-
PARROT_VARIANT
-
PHANTOM_SIZE
-
PIG_SADDLED
-
PIG_BOOST
If pig runs faster, no visible effect -
PIG_VARIANT
-
PIGLIN_ABSTRACT_SHAKING
-
PIGLIN_BABY
-
PIGLIN_CROSSBOW
-
PIGLIN_DANCING
-
PILLAGER_AIMING_BOW
-
PLAYER_ABSORPTION
-
PLAYER_HAND
-
PLAYER_SCORE
-
PLAYER_SKIN
-
PLAYER_LEFT_SHOULDER_ENTITY
public static MetaIndex<com.github.retrooper.packetevents.protocol.nbt.NBTCompound> PLAYER_LEFT_SHOULDER_ENTITY -
PLAYER_RIGHT_SHOULDER_ENTITY
public static MetaIndex<com.github.retrooper.packetevents.protocol.nbt.NBTCompound> PLAYER_RIGHT_SHOULDER_ENTITY -
POLAR_BEAR_STANDING
-
PUFFERFISH_PUFF_STATE
-
RABBIT_TYPE
-
RAIDER_CASTING_SPELL
-
SALMON_VARIANT
-
SHEEP_WOOL
Also has 'is sheared' meta -
SHULKER_ATTACHED
-
SHULKER_COLOR
-
SHULKER_FACING
-
SHULKER_PEEKING
-
SKELETON_SWING_ARMS
-
SKELETON_CONVERTING_STRAY
-
SLIME_SIZE
-
SNOWMAN_DERP
-
SNIFFER_STATE
public static MetaIndex<com.github.retrooper.packetevents.protocol.entity.sniffer.SnifferState> SNIFFER_STATE -
SNIFFER_DROP_SEED_AT_TICK
-
STRIDER_BOOST_TIME
-
STRIDER_SUFFOCATING
-
STRIDER_SADDLED
-
SPIDER_CLIMB
-
SPLASH_POTION_ITEM
-
TAMEABLE_META
-
TAMEABLE_OWNER
-
TEXT_DISPLAY_TEXT
-
TEXT_DISPLAY_LINE_WIDTH
-
TEXT_DISPLAY_BACKGROUND_COLOR
-
TEXT_DISPLAY_TEXT_OPACITY
-
TEXT_DISPLAY_FLAGS
-
THROWABLE_ITEM
-
TIPPED_ARROW_COLOR
-
TNT_FUSE_TICKS
-
TNT_BLOCK_TYPE
public static MetaIndex<com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState> TNT_BLOCK_TYPE -
TRIDENT_ENCHANTS
-
TRIDENT_ENCHANTED
-
TROPICAL_FISH_VARIANT
-
TURTLE_HOME_POSITION
-
TURTLE_HAS_EGG
-
TURTLE_LAYING_EGG
-
TURTLE_TRAVEL_POSITION
-
TURTLE_GOING_HOME
-
TURTLE_TRAVELLING
-
VEX_ANGRY
-
VILLAGER_PROFESSION
-
ABSTRACT_VILLAGER_ANGRY
-
VILLAGER_DATA
public static MetaIndex<com.github.retrooper.packetevents.protocol.entity.villager.VillagerData> VILLAGER_DATA -
WARDEN_ANGER
-
WITCH_AGGRESSIVE
-
WITHER_INVUL
-
WITHER_TARGET_1
-
WITHER_TARGET_2
-
WITHER_TARGET_3
-
WITHER_SKULL_BLUE
-
WOLF_DAMAGE
-
WOLF_BEGGING
-
WOLF_COLLAR
-
WOLF_ANGER
-
WOLF_VARIANT
-
WOLF_SOUND_VARIANT
public static MetaIndex<com.github.retrooper.packetevents.protocol.entity.wolfvariant.WolfSoundVariant> WOLF_SOUND_VARIANTUses WolfSoundVariant as Wolf.SoundVariant is paper only, and spigot does not seem to have an implemention at casual glance -
ZOGLIN_BABY
-
ZOMBIE_BABY
-
ZOMBIE_PLACEHOLDER
-
ZOMBIE_AGGRESSIVE
-
ZOMBIE_CONVERTING_DROWNED
-
ZOMBIE_VILLAGER_SHAKING
Shown for villager conversion -
ZOMBIE_VILLAGER_PROFESSION_OLD
-
ZOMBIE_VILLAGER_PROFESSION
public static MetaIndex<com.github.retrooper.packetevents.protocol.entity.villager.VillagerData> ZOMBIE_VILLAGER_PROFESSION
-
-
Constructor Details
-
MetaIndex
-
-
Method Details
-
validateMetadata
public static void validateMetadata()Simple verification for the dev that they're setting up the FlagType's properly. All flag types should be from 0 toMax Number
with no empty numbers. All flag types should never occur twice. -
toString
-
printMetadata
public static void printMetadata()Used for debugging purposes, prints off the registered MetaIndexes -
getMetaIndex
- Parameters:
watcher
- - A FlagWatcher classflagNo
- - The meta index number- Returns:
- The MetaIndex which corresponds to that FlagWatcher at that index
-
getMetaIndex
- Parameters:
watcherClass
- - A FlagWatcher classflagNo
- - The meta index number- Returns:
- The MetaIndex which corresponds to that FlagWatcher at that index
-
getMetaIndexes
- Parameters:
watcherClass
- - A flagwatcher class- Returns:
- MetaIndexes registered to that FlagWatcher
-
values
Get all the MetaIndex's registered- Returns:
- MetaIndex[]
-
getMetaIndexByName
-
getName
Get the field name of a registered MetaIndex -
addMetaIndexes
Add @metaIndexes to the existing MetaIndexes, was intended for backwards support- Parameters:
metaIndexes
-
-
setValues
public static void setValues()Resets the metaindex array and regenerates it from the fields -
setMetaIndex
Returns true if field was replaced, false if the field doesn't exist or exception occured -
getDefault
-
getFlagWatcher
-
getIndex
public int getIndex() -
isItemStack
public boolean isItemStack() -
isBlock
public boolean isBlock() -
isBlockOpt
public boolean isBlockOpt() -
isRotation
public boolean isRotation() -
isUsed
public boolean isUsed()
-