net.minecraft.world.entity.monster.hoglin

public class HoglinAi

cnh
net.minecraft.world.entity.monster.hoglin.HoglinAi
net.minecraft.class_4835
net.minecraft.unmapped.C_hddicvsw
net.minecraft.entity.mob.HoglinBrain
net.minecraft.entity.mob.HoglinBrain
net.minecraft.src.C_1098_
net.minecraft.world.entity.monster.hoglin.HoglinAI

Field summary

Modifier and TypeField
public static final int
a
REPELLENT_DETECTION_RANGE_HORIZONTAL
field_30533
f_brshwtmc
field_30533
REPELLENT_DETECTION_RANGE_HORIZONTAL
f_149902_
public static final int
b
REPELLENT_DETECTION_RANGE_VERTICAL
field_30534
f_skwqlnwc
field_30534
REPELLENT_DETECTION_RANGE_VERTICAL
f_149903_
private static final UniformInt
c
RETREAT_DURATION
field_22369
f_uaytnqol
AVOID_MEMORY_DURATION
AVOID_MEMORY_DURATION
f_34568_
private static final int
d
ATTACK_DURATION
field_30535
f_abhubnmo
field_30535
ATTACK_DURATION
f_149904_
private static final int
e
DESIRED_DISTANCE_FROM_PIGLIN_WHEN_IDLING
field_30536
f_imulgzfi
field_30536
IDLING_DESIRED_DISTANCE_FROM_PIGLIN
f_149905_
private static final int
f
DESIRED_DISTANCE_FROM_PIGLIN_WHEN_RETREATING
field_30537
f_kxyezpvj
field_30537
RETIRING_DESIRED_DISTANCE_FROM_PIGLIN
f_149906_
private static final int
g
ATTACK_INTERVAL
field_30538
f_fzdphbqr
ADULT_MELEE_ATTACK_COOLDOWN
ATTACK_INTERVAL
f_149907_
private static final int
h
BABY_ATTACK_INTERVAL
field_30539
f_gpfyxxoe
BABY_MELEE_ATTACK_COOLDOWN
BABY_ATTACK_INTERVAL
f_149908_
private static final int
i
REPELLENT_PACIFY_TIME
field_30540
f_cdczbdtc
field_30540
REPELLENT_PACIFY_TIME
f_149909_
private static final UniformInt
j
ADULT_FOLLOW_RANGE
field_25383
f_lpsdgyaw
WALK_TOWARD_CLOSEST_ADULT_RANGE
WALK_TOWARD_CLOSEST_ADULT_RANGE
f_34569_
private static final float
k
SPEED_MULTIPLIER_WHEN_AVOIDING_REPELLENT
field_30541
f_gsdoniak
field_30541
AVOIDING_REPELLENT_SPEED
f_149910_
private static final float
l
SPEED_MULTIPLIER_WHEN_RETREATING
field_30542
f_dbuhuxvh
AVOID_TARGET_SPEED
RETREATING_SPEED
f_149911_
private static final float
m
SPEED_MULTIPLIER_WHEN_MAKING_LOVE
field_30543
f_jlebypzb
field_30543
BREEDING_SPEED
f_149912_
private static final float
n
SPEED_MULTIPLIER_WHEN_IDLING
field_30544
f_fenowlan
field_30544
IDLING_SPEED
f_149913_
private static final float
o
SPEED_MULTIPLIER_WHEN_FOLLOWING_ADULT
field_30545
f_gsrdxmhn
field_30545
FOLLOWING_ADULT_SPEED
f_149914_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected static Brain<?>
a(bwk<cng> arg0)
makeBrain(Brain<Hoglin> arg0)
method_24668(class_4095<class_4760> arg0)
m_ezizisnp(C_rjqjaxef<C_fnzykddk> arg0)
create(Brain<HoglinEntity> brain)
create(Brain<HoglinEntity> brain)
m_34575_(C_548_<C_1097_> p_34576_)
private static void
b(bwk<cng> arg0)
initCoreActivity(Brain<Hoglin> arg0)
method_24666(class_4095<class_4760> arg0)
m_pnegeuit(C_rjqjaxef<C_fnzykddk> arg0)
addCoreTasks(Brain<HoglinEntity> brain)
addCoreTasks(Brain<HoglinEntity> brain)
m_34591_(C_548_<C_1097_> p_34592_)
private static void
c(bwk<cng> arg0)
initIdleActivity(Brain<Hoglin> arg0)
method_24673(class_4095<class_4760> arg0)
m_mthihmit(C_rjqjaxef<C_fnzykddk> arg0)
addIdleTasks(Brain<HoglinEntity> brain)
addIdleTasks(Brain<HoglinEntity> brain)
m_34601_(C_548_<C_1097_> p_34602_)
private static void
d(bwk<cng> arg0)
initFightActivity(Brain<Hoglin> arg0)
method_24676(class_4095<class_4760> arg0)
m_vuzkmmsl(C_rjqjaxef<C_fnzykddk> arg0)
addFightTasks(Brain<HoglinEntity> brain)
addFightTasks(Brain<HoglinEntity> brain)
m_34608_(C_548_<C_1097_> p_34609_)
private static void
e(bwk<cng> arg0)
initRetreatActivity(Brain<Hoglin> arg0)
method_24679(class_4095<class_4760> arg0)
m_lcbfttnu(C_rjqjaxef<C_fnzykddk> arg0)
addAvoidTasks(Brain<HoglinEntity> brain)
addAvoidTasks(Brain<HoglinEntity> brain)
m_34615_(C_548_<C_1097_> p_34616_)
private static RunOne<Hoglin>
a()
createIdleMovementBehaviors()
method_24662()
m_wlvgbjiu()
makeRandomWalkTask()
makeRandomWalkTask()
m_34571_()
protected static void
a(cng arg0)
updateActivity(Hoglin arg0)
method_24664(class_4760 arg0)
m_frheotbl(C_fnzykddk arg0)
refreshActivities(HoglinEntity hoglin)
refreshActivities(HoglinEntity hoglin)
m_34577_(C_1097_ p_34578_)
protected static void
a(cng arg0, bvi arg1)
onHitTarget(Hoglin arg0, LivingEntity arg1)
method_24665(class_4760 arg0, class_1309 arg1)
m_ihgmfrdt(C_fnzykddk arg0, C_usxaxydn arg1)
onAttacking(HoglinEntity hoglin, LivingEntity target)
onAttacking(HoglinEntity hoglin, LivingEntity target)
m_34579_(C_1097_ p_34580_, C_524_ p_34581_)
private static void
b(cng arg0, bvi arg1)
broadcastRetreat(Hoglin arg0, LivingEntity arg1)
method_24675(class_4760 arg0, class_1309 arg1)
m_sdhiaqrx(C_fnzykddk arg0, C_usxaxydn arg1)
askAdultsToAvoid(HoglinEntity hoglin, LivingEntity target)
askAdultsToAvoid(HoglinEntity hoglin, LivingEntity target)
m_34605_(C_1097_ p_34606_, C_524_ p_34607_)
private static void
c(cng arg0, bvi arg1)
retreatFromNearestTarget(Hoglin arg0, LivingEntity arg1)
method_24678(class_4760 arg0, class_1309 arg1)
m_ihdzlscz(C_fnzykddk arg0, C_usxaxydn arg1)
avoidEnemy(HoglinEntity hoglin, LivingEntity target)
avoidEnemy(HoglinEntity hoglin, LivingEntity target)
m_34612_(C_1097_ p_34613_, C_524_ p_34614_)
private static void
d(cng arg0, bvi arg1)
setAvoidTarget(Hoglin arg0, LivingEntity arg1)
method_24681(class_4760 arg0, class_1309 arg1)
m_qxboaxxc(C_fnzykddk arg0, C_usxaxydn arg1)
avoid(HoglinEntity hoglin, LivingEntity target)
avoid(HoglinEntity hoglin, LivingEntity target)
m_34619_(C_1097_ p_34620_, C_524_ p_34621_)
private static Optional<? extends LivingEntity>
a(ard arg0, cng arg1)
findNearestValidAttackTarget(ServerLevel arg0, Hoglin arg1)
method_24684(class_3218 arg0, class_4760 arg1)
m_bbqnkojq(C_bdwnwhiu arg0, C_fnzykddk arg1)
getNearestVisibleTargetablePlayer(ServerWorld world, HoglinEntity hoglin)
getNearestVisibleTargetablePlayer(ServerWorld world, HoglinEntity hoglin)
m_34610_(C_12_ p_362473_, C_1097_ p_34611_)
static boolean
a(cng arg0, ji arg1)
isPosNearNearestRepellent(Hoglin arg0, BlockPos arg1)
method_24669(class_4760 arg0, class_2338 arg1)
m_yglxuaik(C_fnzykddk arg0, C_hynzadkk arg1)
isWarpedFungusAround(HoglinEntity hoglin, BlockPos pos)
isRepellentNearby(HoglinEntity hoglin, BlockPos pos)
m_34585_(C_1097_ p_34586_, C_4675_ p_34587_)
private static boolean
d(cng arg0)
wantsToStopFleeing(Hoglin arg0)
method_25947(class_4760 arg0)
m_rumfkcjj(C_fnzykddk arg0)
isLoneAdult(HoglinEntity hoglin)
isLoneAdult(HoglinEntity hoglin)
m_34617_(C_1097_ p_34618_)
private static boolean
e(cng arg0)
piglinsOutnumberHoglins(Hoglin arg0)
method_24686(class_4760 arg0)
m_mzksrchg(C_fnzykddk arg0)
hasMoreHoglinsAround(HoglinEntity hoglin)
hasMoreHoglinsAround(HoglinEntity hoglin)
m_34622_(C_1097_ p_34623_)
protected static void
a(ard arg0, cng arg1, bvi arg2)
wasHurtBy(ServerLevel arg0, Hoglin arg1, LivingEntity arg2)
method_24672(class_3218 arg0, class_4760 arg1, class_1309 arg2)
m_rinypxon(C_bdwnwhiu arg0, C_fnzykddk arg1, C_usxaxydn arg2)
onAttacked(ServerWorld world, HoglinEntity hoglin, LivingEntity attacker)
onAttacked(ServerWorld world, HoglinEntity hoglin, LivingEntity attacker)
m_34595_(C_12_ p_362834_, C_1097_ p_34596_, C_524_ p_34597_)
private static void
b(ard arg0, cng arg1, bvi arg2)
maybeRetaliate(ServerLevel arg0, Hoglin arg1, LivingEntity arg2)
method_24683(class_3218 arg0, class_4760 arg1, class_1309 arg2)
m_ngaavviz(C_bdwnwhiu arg0, C_fnzykddk arg1, C_usxaxydn arg2)
targetEnemy(ServerWorld world, HoglinEntity hoglin, LivingEntity target)
targetEnemy(ServerWorld world, HoglinEntity hoglin, LivingEntity target)
m_34624_(C_12_ p_362858_, C_1097_ p_34625_, C_524_ p_34626_)
private static void
e(cng arg0, bvi arg1)
setAttackTarget(Hoglin arg0, LivingEntity arg1)
method_24685(class_4760 arg0, class_1309 arg1)
m_snfmwnai(C_fnzykddk arg0, C_usxaxydn arg1)
setAttackTarget(HoglinEntity hoglin, LivingEntity target)
setAttackTarget(HoglinEntity hoglin, LivingEntity target)
m_34629_(C_1097_ p_34630_, C_524_ p_34631_)
private static void
f(cng arg0, bvi arg1)
broadcastAttackTarget(Hoglin arg0, LivingEntity arg1)
method_24687(class_4760 arg0, class_1309 arg1)
m_htccihys(C_fnzykddk arg0, C_usxaxydn arg1)
askAdultsForHelp(HoglinEntity hoglin, LivingEntity target)
askAdultsForHelp(HoglinEntity hoglin, LivingEntity target)
m_34634_(C_1097_ p_34635_, C_524_ p_34636_)
private static void
g(cng arg0, bvi arg1)
setAttackTargetIfCloserThanCurrent(Hoglin arg0, LivingEntity arg1)
method_24689(class_4760 arg0, class_1309 arg1)
m_pcvmiynf(C_fnzykddk arg0, C_usxaxydn arg1)
setAttackTargetIfCloser(HoglinEntity hoglin, LivingEntity targetCandidate)
setAttackTargetIfCloser(HoglinEntity hoglin, LivingEntity targetCandidate)
m_34639_(C_1097_ p_34640_, C_524_ p_34641_)
public static Optional<SoundEvent>
b(cng arg0)
getSoundForCurrentActivity(Hoglin arg0)
method_30083(class_4760 arg0)
m_fmovaocc(C_fnzykddk arg0)
getSoundEvent(HoglinEntity hoglin)
getSoundEvent(HoglinEntity hoglin)
m_34593_(C_1097_ p_34594_)
private static SoundEvent
a(cng arg0, cqp arg1)
getSoundForActivity(Hoglin arg0, Activity arg1)
method_30082(class_4760 arg0, class_4168 arg1)
m_dhqzvylh(C_fnzykddk arg0, C_gqmpgxlw arg1)
getSoundEvent(HoglinEntity hoglin, Activity activity)
getSoundEvent(HoglinEntity hoglin, Activity activity)
m_34582_(C_1097_ p_34583_, C_1195_ p_34584_)
private static List<Hoglin>
f(cng arg0)
getVisibleAdultHoglins(Hoglin arg0)
method_24690(class_4760 arg0)
m_tbavagxl(C_fnzykddk arg0)
getAdultHoglinsAround(HoglinEntity hoglin)
getAdultHoglinsAround(HoglinEntity hoglin)
m_34627_(C_1097_ p_34628_)
private static boolean
g(cng arg0)
isNearRepellent(Hoglin arg0)
method_30085(class_4760 arg0)
m_sthvemlp(C_fnzykddk arg0)
hasNearestRepellent(HoglinEntity hoglin)
hasNearestRepellent(HoglinEntity hoglin)
m_34632_(C_1097_ p_34633_)
private static boolean
h(cng arg0)
isBreeding(Hoglin arg0)
method_24691(class_4760 arg0)
m_vzopmavw(C_fnzykddk arg0)
hasBreedTarget(HoglinEntity hoglin)
hasBreedTarget(HoglinEntity hoglin)
m_34637_(C_1097_ p_34638_)
protected static boolean
c(cng arg0)
isPacified(Hoglin arg0)
method_24677(class_4760 arg0)
m_njejahxm(C_fnzykddk arg0)
isNearPlayer(HoglinEntity hoglin)
isNearPlayer(HoglinEntity hoglin)
m_34603_(C_1097_ p_34604_)