History - net.minecraft.world.entity.monster.piglin.PiglinAi
1.21.4
Names
com
cnn
Fields
Constructors
Methods
1.21.3
Names
com
net.minecraft.world.entity.monster.piglin.PiglinAi
net.minecraft.class_4838
net.minecraft.unmapped.C_mxpeolkc
net.minecraft.entity.mob.PiglinBrain
net.minecraft.entity.mob.PiglinBrain
net.minecraft.src.C_1102_
net.minecraft.world.entity.monster.piglin.PiglinAI
Fields
int: a, REPELLENT_DETECTION_RANGE_HORIZONTAL, field_30565, f_uxlhijnp, field_30565, REPELLENT_DETECTION_RANGE_HORIZONTAL, f_149940_
int: b, REPELLENT_DETECTION_RANGE_VERTICAL, field_30566, f_zqscaoqj, field_30566, REPELLENT_DETECTION_RANGE_VERTICAL, f_149941_
Item: c, BARTERING_ITEM, field_23826, f_sedefqof, BARTERING_ITEM, BARTERING_ITEM, f_34794_
int: e, PLAYER_ANGER_RANGE, field_30567, f_bjmauhwh, field_30567, PLAYER_ANGER_RANGE, f_149942_
int: f, ANGER_DURATION, field_30568, f_hzwxxubd, field_30568, ANGER_DURATION, f_149943_
int: g, ADMIRE_DURATION, field_30569, f_phtwibeq, field_30569, ADMIRE_DURATION, f_149944_
int: h, MAX_DISTANCE_TO_WALK_TO_ITEM, field_30570, f_rukeoquj, field_30570, WALK_TO_ITEM_MAX_DISTANCE, f_149945_
int: i, MAX_TIME_TO_WALK_TO_ITEM, field_30571, f_cayjpuhi, field_30571, WALK_TO_ITEM_MAX_TIME, f_149946_
int: j, HOW_LONG_TIME_TO_DISABLE_ADMIRE_WALKING_IF_CANT_REACH_ITEM, field_30572, f_jptvhcwc, field_30572, UNREACHABLE_ITEM_DISABLE_ADMIRE_TIME, f_149947_
int: k, CELEBRATION_TIME, field_30573, f_vikzdyzb, field_30573, CELEBRATION_TIME, f_149948_
UniformInt: d, TIME_BETWEEN_HUNTS, field_22388, f_otqpyrsm, HUNT_MEMORY_DURATION, HUNT_MEMORY_DURATION, f_34795_
int: l, BABY_FLEE_DURATION_AFTER_GETTING_HIT, field_30574, f_vefqinpi, AVOID_TARGET_EXPIRY, BABY_FLEE_DURATION_AFTER_GETTING_HIT, f_149949_
int: m, HIT_BY_PLAYER_MEMORY_TIMEOUT, field_30575, f_ixqjwyyn, ADMIRING_DISABLED_EXPIRY, HIT_BY_PLAYER_MEMORY_TIMEOUT, f_149950_
int: n, MAX_WALK_DISTANCE_TO_START_RIDING, field_30576, f_zubkzhkz, field_30576, START_RIDING_MAX_WALK_DISTANCE, f_149951_
UniformInt: o, RIDE_START_INTERVAL, field_22389, f_fiwgjmps, MEMORY_TRANSFER_TASK_DURATION, MEMORY_TRANSFER_TASK_DURATION, f_34796_
UniformInt: p, RIDE_DURATION, field_22390, f_emvgrlxc, RIDE_TARGET_MEMORY_DURATION, RIDE_TARGET_MEMORY_DURATION, f_34797_
UniformInt: q, RETREAT_DURATION, field_22391, f_kmshkchr, AVOID_MEMORY_DURATION, AVOID_MEMORY_DURATION, f_34798_
int: r, MELEE_ATTACK_COOLDOWN, field_30577, f_yczpmhwr, field_30577, MELEE_ATTACK_COOLDOWN, f_149952_
int: s, EAT_COOLDOWN, field_30578, f_yqopamxc, field_30578, EAT_COOLDOWN, f_149953_
int: t, DESIRED_DISTANCE_FROM_ENTITY_WHEN_AVOIDING, field_30579, f_srhqewhu, field_30579, AVOID_DESIRED_DISTANCE_FROM_ENTITY, f_149954_
int: u, MAX_LOOK_DIST, field_30580, f_srknbwkm, field_30580, MAX_LOOK_DISTANCE, f_149955_
int: v, MAX_LOOK_DIST_FOR_PLAYER_HOLDING_LOVED_ITEM, field_30581, f_pjfnnzxc, field_30581, PLAYER_HOLDING_LIKED_ITEM_MAX_LOOK_DISTANCE, f_149956_
int: w, INTERACTION_RANGE, field_30582, f_cduqgjph, field_30582, INTERACTION_RANGE, f_149957_
int: x, MIN_DESIRED_DIST_FROM_TARGET_WHEN_HOLDING_CROSSBOW, field_30583, f_ieglibfx, field_30583, HOLDING_CROSSBOW_MIN_DISTANCE_FROM_TARGET, f_149958_
float: y, SPEED_WHEN_STRAFING_BACK_FROM_TARGET, field_30584, f_czvzwmfn, CROSSBOW_ATTACK_FORWARD_MOVEMENT, STRAFING_BACK_FROM_TARGET_SPEED, f_149959_
int: z, DESIRED_DISTANCE_FROM_ZOMBIFIED, field_30585, f_syevmelo, field_30585, ZOMBIFIED_PIGLINS_DESIRED_DISTANCE, f_149960_
UniformInt: A, AVOID_ZOMBIFIED_DURATION, field_25384, f_isrftifw, GO_TO_ZOMBIFIED_MEMORY_DURATION, GO_TO_ZOMBIFIED_MEMORY_DURATION, f_34799_
UniformInt: B, BABY_AVOID_NEMESIS_DURATION, field_25698, f_ctmyacjj, GO_TO_NEMESIS_MEMORY_DURATION, GO_TO_NEMESIS_MEMORY_DURATION, f_34800_
float: C, PROBABILITY_OF_CELEBRATION_DANCE, field_30557, f_uvjzrzin, field_30557, CELEBRATION_DANCE_PROBABILITY, f_149932_
float: D, SPEED_MULTIPLIER_WHEN_AVOIDING, field_30558, f_kdwocnlc, field_30558, AVOIDING_SPEED, f_149933_
float: E, SPEED_MULTIPLIER_WHEN_RETREATING, field_30559, f_iskwdiyb, field_30559, RETREATING_SPEED, f_149934_
float: F, SPEED_MULTIPLIER_WHEN_MOUNTING, field_30560, f_wflmfruv, START_RIDING_SPEED, MOUNTING_SPEED, f_149935_
float: G, SPEED_MULTIPLIER_WHEN_GOING_TO_WANTED_ITEM, field_30561, f_kmftlzic, field_30561, GOING_TO_WANTED_ITEM_SPEED, f_149936_
float: H, SPEED_MULTIPLIER_WHEN_GOING_TO_CELEBRATE_LOCATION, field_30562, f_nndtpsiw, field_30562, GOING_TO_CELEBRATE_LOCATION_SPEED, f_149937_
float: I, SPEED_MULTIPLIER_WHEN_DANCING, field_30563, f_pghapdxv, field_30563, DANCING_SPEED, f_149938_
float: J, SPEED_MULTIPLIER_WHEN_IDLING, field_30564, f_gikaxjvu, field_30564, IDLING_SPEED, f_149939_
Constructors
()
Methods
Brain<?> (Piglin, Brain<Piglin>): a, makeBrain, method_24732, m_jighuprm, create, create, m_34840_
void (Piglin, RandomSource): a, initMemories, method_24736, m_aeqbdwgd, setHuntedRecently, setHuntedRecently, m_219205_
void (Brain<Piglin>): a, initCoreActivity, method_24725, m_zzvyjghc, addCoreActivities, addCoreActivities, m_34820_
void (Brain<Piglin>): b, initIdleActivity, method_24743, m_wuohqgic, addIdleActivities, addIdleActivities, m_34891_
void (Piglin, Brain<Piglin>): b, initFightActivity, method_24751, m_soclpmiz, addFightActivities, addFightActivities, m_34903_
void (Brain<Piglin>): c, initCelebrateActivity, method_24756, m_zudbmwtt, addCelebrateActivities, addCelebrateActivities, m_34920_
void (Brain<Piglin>): d, initAdmireItemActivity, method_24760, m_iqzgamlf, addAdmireItemActivities, addAdmireItemActivities, m_34940_
void (Brain<Piglin>): e, initRetreatActivity, method_24764, m_jfdxonuw, addAvoidActivities, addAvoidActivities, m_34958_
void (Brain<Piglin>): f, initRideHoglinActivity, method_24768, m_vzlqkynd, addRideActivities, addRideActivities, m_34973_
com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<OneShot<LivingEntity>, Integer>> (): a, createLookBehaviors, method_47272, m_ezdpkqwt, makeFollowTasks, createLookTasks, m_257792_
RunOne<LivingEntity> (): b, createIdleLookBehaviors, method_24717, m_acnqmmln, makeRandomFollowTask, makeRandomFollowTask, m_34805_
RunOne<Piglin> (): c, createIdleMovementBehaviors, method_24718, m_evwahudb, makeRandomWanderTask, makeRandomWanderTask, m_34882_
BehaviorControl<PathfinderMob> (): d, avoidRepellent, method_24738, m_ijhdgyhq, makeGoToSoulFireTask, makeGoToSoulFireTask, m_257691_
BehaviorControl<Piglin> (): e, babyAvoidNemesis, method_30090, m_yjbboooc, goToNemesisTask, goToNemesisTask, m_257417_
BehaviorControl<Piglin> (): f, avoidZombified, method_24747, m_fjookgdt, makeFleeFromZombifiedPiglinTask, makeGoToZombifiedPiglinTask, m_257731_
void (Piglin): a, updateActivity, method_24722, m_zsnuljbm, tickActivities, tickActivities, m_34898_
boolean (Piglin): e, isBabyRidingBaby, method_29277, m_wsfnykkq, canRideHoglin, canRideHoglin, m_34992_
void (ServerLevel, Piglin, ItemEntity): a, pickUpItem, method_24726, m_qioedzrh, loot, loot, m_34843_
void (ServerLevel, Piglin, ItemStack): a, holdInOffhand, method_30089, m_eueiflmq, swapItemWithOffHand, swapItemWithOffHand, m_34932_
ItemStack (ItemEntity): a, removeOneItemFromItemEntity, method_24848, m_vdrrslys, getItemFromStack, getItemFromStack, m_34822_
void (ServerLevel, Piglin, boolean): a, stopHoldingOffHandItem, method_24741, m_prracpoq, consumeOffHandItem, consumeOffHandItem, m_34867_
void (ServerLevel, Piglin): a, cancelAdmiring, method_25948, m_btpltubf, pickupItemWithOffHand, pickupItemWithOffHand, m_34927_
void (Piglin, ItemStack): c, putInInventory, method_24849, m_luovsbnc, barterItem, barterItem, m_34952_
void (Piglin, List<ItemStack>): a, throwItems, method_24772, m_diaoekjn, doBarter, doBarter, m_34860_
void (Piglin, List<ItemStack>): b, throwItemsTowardRandomPos, method_24774, m_ycxrbeay, dropBarteredItem, dropBarteredItem, m_34912_
void (Piglin, Player, List<ItemStack>): a, throwItemsTowardPlayer, method_24727, m_lyasgkwj, dropBarteredItem, dropBarteredItem, m_34850_
void (Piglin, List<ItemStack>, Vec3): a, throwItemsTowardPos, method_24731, m_kmcguhbn, drop, drop, m_34863_
List<ItemStack> (Piglin): f, getBarterResponseItems, method_24776, m_accbozmb, getBarteredItem, getBarteredItem, m_34996_
boolean (LivingEntity, LivingEntity): a, wantsToDance, method_29276, m_dudjutol, isHuntingTarget, isHuntingTarget, m_34810_
boolean (Piglin, ItemStack): a, wantsToPickup, method_24730, m_wuzxlluu, canGather, canGather, m_34857_
boolean (ItemStack): a, isLovedItem, method_24735, m_xxtnjqpf, isGoldenItem, isGoldenItem, m_149965_
boolean (Piglin, Entity): a, wantsToStopRiding, method_24723, m_yycmwgzj, canRide, canRide, m_34834_
boolean (ServerLevel, Piglin, LivingEntity): b, isNearestValidAttackTarget, method_24755, m_ucxtolcs, isPreferredAttackTarget, isPreferredAttackTarget, m_34900_
boolean (Piglin): g, isNearZombified, method_29537, m_fejufdix, getNearestZombifiedPiglin, getNearestZombifiedPiglin, m_34998_
Optional<? extends LivingEntity> (ServerLevel, Piglin): b, findNearestValidAttackTarget, method_24777, m_yagsymgj, getPreferredTarget, getPreferredTarget, m_35000_
void (ServerLevel, Player, boolean): a, angerNearbyPiglins, method_24733, m_qhorxdpx, onGuardedBlockInteracted, onGuardedBlockInteracted, m_34873_
InteractionResult (ServerLevel, Piglin, Player, InteractionHand): a, mobInteract, method_24728, m_fftynzbf, playerInteract, playerInteract, m_34846_
boolean (Piglin, ItemStack): b, canAdmire, method_27086, m_zjjlloty, isWillingToTrade, isWillingToTrade, m_34909_
void (ServerLevel, Piglin, LivingEntity): a, wasHurtBy, method_24724, m_aalhkbsy, onAttacked, onAttacked, m_34837_
void (ServerLevel, AbstractPiglin, LivingEntity): a, maybeRetaliate, method_24759, m_pzmiregk, tryRevenge, tryRevenge, m_34826_
Optional<SoundEvent> (Piglin): b, getSoundForCurrentActivity, method_30091, m_wwzwjgwr, getCurrentActivitySound, getCurrentActivitySound, m_34947_
SoundEvent (Piglin, Activity): a, getSoundForActivity, method_30087, m_yeknsnhi, getSound, getSound, m_34854_
boolean (Piglin): h, isNearAvoidTarget, method_29538, m_yhpcttwu, hasTargetToAvoid, hasTargetToAvoid, m_35002_
List<AbstractPiglin> (Piglin): c, getVisibleAdultPiglins, method_24780, m_lxtfwyka, getNearbyVisiblePiglins, getNearbyVisiblePiglins, m_35004_
List<AbstractPiglin> (AbstractPiglin): d, getAdultPiglins, method_26350, m_kpixhyib, getNearbyPiglins, getNearbyPiglins, m_34960_
boolean (LivingEntity): a, isWearingSafeArmor, method_63665, m_klnzftun, isWearingPiglinSafeArmor, hasPiglinSafeArmor, m_352975_
void (Piglin): i, stopWalking, method_24781, m_pthdrbkr, stopWalking, stopWalking, m_35006_
BehaviorControl<LivingEntity> (): g, babySometimesRideBabyHoglin, method_24737, m_qcrdxsmf, makeRememberRideableHoglinTask, makeRememberRideableHoglinTask, m_257528_
void (ServerLevel, AbstractPiglin, LivingEntity): b, broadcastAngerTarget, method_24742, m_psnwnmxs, angerAtCloserTargets, angerAtCloserTargets, m_353874_
void (ServerLevel, AbstractPiglin): a, broadcastUniversalAnger, method_29945, m_eshikqca, angerNearbyPiglins, angerNearbyPiglins, m_34895_
void (ServerLevel, AbstractPiglin, LivingEntity): c, setAngerTarget, method_24750, m_bcngwcno, becomeAngryWith, becomeAngryWith, m_34924_
void (ServerLevel, AbstractPiglin, LivingEntity): d, setAngerTargetToNearestTargetablePlayerIfFound, method_29946, m_cakrqgkc, becomeAngryWithPlayer, becomeAngryWithPlayer, m_34944_
void (ServerLevel, AbstractPiglin, LivingEntity): e, setAngerTargetIfCloserThanCurrent, method_24763, m_zdktjbec, angerAtIfCloser, angerAtIfCloser, m_34962_
Optional<LivingEntity> (AbstractPiglin): e, getAngerTarget, method_24782, m_kwqeqesm, getAngryAt, getAngryAt, m_34975_
Optional<LivingEntity> (Piglin): d, getAvoidTarget, method_29536, m_qyhfwheq, getAvoiding, getAvoiding, m_34986_
Optional<Player> (AbstractPiglin): a, getNearestVisibleTargetablePlayer, method_29947, m_yguixodz, getNearestDetectedPlayer, getNearestDetectedPlayer, m_34893_
void (Piglin, LivingEntity): a, broadcastRetreat, method_24767, m_llzphprg, groupRunAwayFrom, groupRunAwayFrom, m_34929_
void (Piglin, LivingEntity): b, retreatFromNearestTarget, method_24771, m_qxpxmdbl, runAwayFromClosestTarget, runAwayFromClosestTarget, m_34949_
boolean (Piglin): j, wantsToStopFleeing, method_24783, m_jqalumps, shouldRunAwayFromHoglins, shouldRunAwayFromHoglins, m_35008_
boolean (Piglin): k, piglinsEqualOrOutnumberHoglins, method_24784, m_xxqvjflp, hasNoAdvantageAgainstHoglins, hasNoAdvantageAgainstHoglins, m_35010_
boolean (Piglin): l, hoglinsOutnumberPiglins, method_24785, m_tokamduy, hasOutnumberedHoglins, hasOutnumberedHoglins, m_35012_
void (Piglin, LivingEntity): c, setAvoidTargetAndDontHuntForAWhile, method_24773, m_iifpvgji, runAwayFrom, runAwayFrom, m_34967_
void (AbstractPiglin): b, dontKillAnyMoreHoglinsForAWhile, method_24762, m_bpziocjo, rememberHunting, rememberHunting, m_34922_
void (Piglin): m, eat, method_24787, m_drvkppan, setEatenRecently, setEatenRecently, m_35014_
Vec3 (Piglin): n, getRandomNearbyPos, method_24788, m_rwgnndpm, findGround, findGround, m_35016_
boolean (Piglin): o, hasEatenRecently, method_24789, m_pzytfnhk, hasAteRecently, hasAteRecently, m_35018_
boolean (AbstractPiglin): c, isIdle, method_24766, m_nqwyquia, hasIdleActivity, hasIdleActivity, m_34942_
boolean (LivingEntity): c, hasCrossbow, method_24748, m_czrhsupq, isHoldingCrossbow, isHoldingCrossbow, m_34918_
void (LivingEntity): d, admireGoldItem, method_24753, m_fedafloi, setAdmiringItem, setAdmiringItem, m_34938_
boolean (Piglin): p, isAdmiringItem, method_24790, m_uofyogtq, isAdmiringItem, isAdmiringItem, m_35020_
boolean (ItemStack): b, isBarterCurrency, method_24746, m_svzuyond, acceptsForBarter, acceptsForBarter, m_149967_
boolean (ItemStack): c, isFood, method_24752, m_zdorzvrm, isFood, isFood, m_149969_
boolean (Piglin): q, isNearRepellent, method_24791, m_ousipwvq, hasSoulFireNearby, hasSoulFireNearby, m_35022_
boolean (LivingEntity): e, seesPlayerHoldingLovedItem, method_24761, m_ohidzpjx, hasPlayerHoldingWantedItemNearby, hasPlayerHoldingWantedItemNearby, m_34971_
boolean (LivingEntity): f, doesntSeeAnyPlayerHoldingLovedItem, method_24765, m_uvhqnlfi, canWander, canWander, m_34982_
boolean (LivingEntity): b, isPlayerHoldingLovedItem, method_24739, m_zdsmkoog, isGoldHoldingPlayer, isGoldHoldingPlayer, m_34883_
boolean (Piglin): r, isAdmiringDisabled, method_24714, m_abssmnvg, hasBeenHitByPlayer, hasBeenHitByPlayer, m_35024_
boolean (LivingEntity): g, wasHurtRecently, method_24769, m_akjfbcgw, hasBeenHurt, hasBeenHurt, m_34988_
boolean (Piglin): s, isHoldingItemInOffHand, method_24917, m_ehxqnoly, hasItemInOffHand, hasItemInOffHand, m_35026_
boolean (Piglin): t, isNotHoldingLovedItemInOffHand, method_24850, m_pvckfwhw, doesNotHaveGoldInOffHand, doesNotHaveGoldInOffHand, m_35028_
boolean (EntityType<?>): a, isZombified, method_29534, m_nvtlgvyc, isZombified, isZombified, m_34806_