v2

constant bee_flags net/minecraft/entity/passive/BeeEntity NEAR_TARGET_FLAG
constant bee_flags net/minecraft/entity/passive/BeeEntity HAS_STUNG_FLAG
constant bee_flags net/minecraft/entity/passive/BeeEntity HAS_NECTAR_FLAG

target_method net/minecraft/entity/passive/BeeEntity getBeeFlag (I)Z
	param 0 bee_flags
target_method net/minecraft/entity/passive/BeeEntity setBeeFlag (IZ)V
	param 0 bee_flags


constant fox_flags net/minecraft/entity/passive/FoxEntity SITTING_FLAG
constant fox_flags net/minecraft/entity/passive/FoxEntity CROUCHING_FLAG
constant fox_flags net/minecraft/entity/passive/FoxEntity ROLLING_HEAD_FLAG
constant fox_flags net/minecraft/entity/passive/FoxEntity CHASING_FLAG
constant fox_flags net/minecraft/entity/passive/FoxEntity SLEEPING_FLAG
constant fox_flags net/minecraft/entity/passive/FoxEntity WALKING_FLAG
constant fox_flags net/minecraft/entity/passive/FoxEntity AGGRESSIVE_FLAG

target_method net/minecraft/entity/passive/FoxEntity getFoxFlag (I)Z
	param 0 fox_flags
target_method net/minecraft/entity/passive/FoxEntity setFoxFlag (IZ)V
	param 0 fox_flags


constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity TAMED_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity SADDLED_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity BRED_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity EATING_GRASS_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity ANGRY_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity EATING_FLAG

target_method net/minecraft/entity/passive/AbstractHorseEntity getHorseFlag (I)Z
	param 0 horse_flags
target_method net/minecraft/entity/passive/AbstractHorseEntity setHorseFlag (IZ)V
	param 0 horse_flags


constant living_entity_flags net/minecraft/entity/LivingEntity USING_ITEM_FLAG
constant living_entity_flags net/minecraft/entity/LivingEntity OFF_HAND_ACTIVE_FLAG
constant living_entity_flags net/minecraft/entity/LivingEntity USING_RIPTIDE_FLAG

target_method net/minecraft/entity/LivingEntity setLivingFlag (IZ)V
	param 0 living_entity_flags


constant panda_flags net/minecraft/entity/passive/PandaEntity SNEEZING_FLAG
constant panda_flags net/minecraft/entity/passive/PandaEntity PLAYING_FLAG
constant panda_flags net/minecraft/entity/passive/PandaEntity SITTING_FLAG
constant panda_flags net/minecraft/entity/passive/PandaEntity LYING_ON_BACK_FLAG

target_method net/minecraft/entity/passive/PandaEntity hasPandaFlag (I)Z
	param 0 panda_flags
target_method net/minecraft/entity/passive/PandaEntity setPandaFlag (IZ)V
	param 0 panda_flags


constant persistent_projectile_flags net/minecraft/entity/projectile/PersistentProjectileEntity CRITICAL_FLAG
constant persistent_projectile_flags net/minecraft/entity/projectile/PersistentProjectileEntity NO_CLIP_FLAG
constant persistent_projectile_flags net/minecraft/entity/projectile/PersistentProjectileEntity SHOT_FROM_CROSSBOW_FLAG

target_method net/minecraft/entity/projectile/PersistentProjectileEntity setProjectileFlag (IZ)V
	param 0 persistent_projectile_flags


constant vex_flags net/minecraft/entity/mob/VexEntity CHARGING_FLAG

target_method net/minecraft/entity/mob/VexEntity areFlagsSet (I)Z
	param 0 vex_flags
target_method net/minecraft/entity/mob/VexEntity setVexFlag (IZ)V
	param 0 vex_flags


flag armor_stand_flags net/minecraft/entity/decoration/ArmorStandEntity SMALL_FLAG
flag armor_stand_flags net/minecraft/entity/decoration/ArmorStandEntity SHOW_ARMS_FLAG
flag armor_stand_flags net/minecraft/entity/decoration/ArmorStandEntity HIDE_BASE_PLATE_FLAG
flag armor_stand_flags net/minecraft/entity/decoration/ArmorStandEntity MARKER_FLAG

target_method net/minecraft/entity/decoration/ArmorStandEntity setBitField (BIZ)B
	param 1 armor_stand_flags
# todo unpick cannot handle the read in method bodies yet


constant entity_flag_index net/minecraft/entity/Entity ON_FIRE_FLAG_INDEX
constant entity_flag_index net/minecraft/entity/Entity SNEAKING_FLAG_INDEX
constant entity_flag_index net/minecraft/entity/Entity SPRINTING_FLAG_INDEX
constant entity_flag_index net/minecraft/entity/Entity SWIMMING_FLAG_INDEX
constant entity_flag_index net/minecraft/entity/Entity INVISIBLE_FLAG_INDEX
constant entity_flag_index net/minecraft/entity/Entity GLOWING_FLAG_INDEX
constant entity_flag_index net/minecraft/entity/Entity FALL_FLYING_FLAG_INDEX

target_method net/minecraft/entity/Entity getFlag (I)Z
	param 0 entity_flag_index
target_method net/minecraft/entity/Entity setFlag (IZ)V
	param 0 entity_flag_index


# mob, bat, snow golem, flags are directly on DataTracker get/set
