net.minecraft.world.entity.monster.hoglin

public class HoglinAi

cdt
net.minecraft.world.entity.monster.hoglin.HoglinAi
net.minecraft.class_4835
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
field_30533
f_149902_
public static final int
b
REPELLENT_DETECTION_RANGE_VERTICAL
field_30534
field_30534
f_149903_
private static final UniformInt
c
RETREAT_DURATION
field_22369
AVOID_MEMORY_DURATION
f_34568_
private static final int
d
ATTACK_DURATION
field_30535
field_30535
f_149904_
private static final int
e
DESIRED_DISTANCE_FROM_PIGLIN_WHEN_IDLING
field_30536
field_30536
f_149905_
private static final int
f
DESIRED_DISTANCE_FROM_PIGLIN_WHEN_RETREATING
field_30537
field_30537
f_149906_
private static final int
g
ATTACK_INTERVAL
field_30538
ADULT_MELEE_ATTACK_COOLDOWN
f_149907_
private static final int
h
BABY_ATTACK_INTERVAL
field_30539
BABY_MELEE_ATTACK_COOLDOWN
f_149908_
private static final int
i
REPELLENT_PACIFY_TIME
field_30540
field_30540
f_149909_
private static final UniformInt
j
ADULT_FOLLOW_RANGE
field_25383
WALK_TOWARD_CLOSEST_ADULT_RANGE
f_34569_
private static final float
k
SPEED_MULTIPLIER_WHEN_AVOIDING_REPELLENT
field_30541
field_30541
f_149910_
private static final float
l
SPEED_MULTIPLIER_WHEN_RETREATING
field_30542
AVOID_TARGET_SPEED
f_149911_
private static final float
m
SPEED_MULTIPLIER_WHEN_MAKING_LOVE
field_30543
field_30543
f_149912_
private static final float
n
SPEED_MULTIPLIER_WHEN_IDLING
field_30544
field_30544
f_149913_
private static final float
o
SPEED_MULTIPLIER_WHEN_FOLLOWING_ADULT
field_30545
field_30545
f_149914_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected static Brain<?>
a(bnl<cds> arg0)
makeBrain(Brain<Hoglin> arg0)
method_24668(class_4095<class_4760> arg0)
create(Brain<HoglinEntity> brain)
m_34575_(C_548_<C_1097_> p_34576_)
private static void
b(bnl<cds> arg0)
initCoreActivity(Brain<Hoglin> arg0)
method_24666(class_4095<class_4760> arg0)
addCoreTasks(Brain<HoglinEntity> brain)
m_34591_(C_548_<C_1097_> p_34592_)
private static void
c(bnl<cds> arg0)
initIdleActivity(Brain<Hoglin> arg0)
method_24673(class_4095<class_4760> arg0)
addIdleTasks(Brain<HoglinEntity> brain)
m_34601_(C_548_<C_1097_> p_34602_)
private static void
d(bnl<cds> arg0)
initFightActivity(Brain<Hoglin> arg0)
method_24676(class_4095<class_4760> arg0)
addFightTasks(Brain<HoglinEntity> brain)
m_34608_(C_548_<C_1097_> p_34609_)
private static void
e(bnl<cds> arg0)
initRetreatActivity(Brain<Hoglin> arg0)
method_24679(class_4095<class_4760> arg0)
addAvoidTasks(Brain<HoglinEntity> brain)
m_34615_(C_548_<C_1097_> p_34616_)
private static RunOne<Hoglin>
a()
createIdleMovementBehaviors()
method_24662()
makeRandomWalkTask()
m_34571_()
protected static void
a(cds arg0)
updateActivity(Hoglin arg0)
method_24664(class_4760 arg0)
refreshActivities(HoglinEntity hoglin)
m_34577_(C_1097_ p_34578_)
protected static void
a(cds arg0, bml arg1)
onHitTarget(Hoglin arg0, LivingEntity arg1)
method_24665(class_4760 arg0, class_1309 arg1)
onAttacking(HoglinEntity hoglin, LivingEntity target)
m_34579_(C_1097_ p_34580_, C_524_ p_34581_)
private static void
c(cds arg0, bml arg1)
broadcastRetreat(Hoglin arg0, LivingEntity arg1)
method_24675(class_4760 arg0, class_1309 arg1)
askAdultsToAvoid(HoglinEntity hoglin, LivingEntity target)
m_34605_(C_1097_ p_34606_, C_524_ p_34607_)
private static void
d(cds arg0, bml arg1)
retreatFromNearestTarget(Hoglin arg0, LivingEntity arg1)
method_24678(class_4760 arg0, class_1309 arg1)
avoidEnemy(HoglinEntity hoglin, LivingEntity target)
m_34612_(C_1097_ p_34613_, C_524_ p_34614_)
private static void
e(cds arg0, bml arg1)
setAvoidTarget(Hoglin arg0, LivingEntity arg1)
method_24681(class_4760 arg0, class_1309 arg1)
avoid(HoglinEntity hoglin, LivingEntity target)
m_34619_(C_1097_ p_34620_, C_524_ p_34621_)
private static Optional<? extends LivingEntity>
d(cds arg0)
findNearestValidAttackTarget(Hoglin arg0)
method_24684(class_4760 arg0)
getNearestVisibleTargetablePlayer(HoglinEntity hoglin)
m_34610_(C_1097_ p_34611_)
static boolean
a(cds arg0, hx arg1)
isPosNearNearestRepellent(Hoglin arg0, BlockPos arg1)
method_24669(class_4760 arg0, class_2338 arg1)
isWarpedFungusAround(HoglinEntity hoglin, BlockPos pos)
m_34585_(C_1097_ p_34586_, C_4675_ p_34587_)
private static boolean
e(cds arg0)
wantsToStopFleeing(Hoglin arg0)
method_25947(class_4760 arg0)
isLoneAdult(HoglinEntity hoglin)
m_34617_(C_1097_ p_34618_)
private static boolean
f(cds arg0)
piglinsOutnumberHoglins(Hoglin arg0)
method_24686(class_4760 arg0)
hasMoreHoglinsAround(HoglinEntity hoglin)
m_34622_(C_1097_ p_34623_)
protected static void
b(cds arg0, bml arg1)
wasHurtBy(Hoglin arg0, LivingEntity arg1)
method_24672(class_4760 arg0, class_1309 arg1)
onAttacked(HoglinEntity hoglin, LivingEntity attacker)
m_34595_(C_1097_ p_34596_, C_524_ p_34597_)
private static void
f(cds arg0, bml arg1)
maybeRetaliate(Hoglin arg0, LivingEntity arg1)
method_24683(class_4760 arg0, class_1309 arg1)
targetEnemy(HoglinEntity hoglin, LivingEntity target)
m_34624_(C_1097_ p_34625_, C_524_ p_34626_)
private static void
g(cds arg0, bml arg1)
setAttackTarget(Hoglin arg0, LivingEntity arg1)
method_24685(class_4760 arg0, class_1309 arg1)
setAttackTarget(HoglinEntity hoglin, LivingEntity target)
m_34629_(C_1097_ p_34630_, C_524_ p_34631_)
private static void
h(cds arg0, bml arg1)
broadcastAttackTarget(Hoglin arg0, LivingEntity arg1)
method_24687(class_4760 arg0, class_1309 arg1)
askAdultsForHelp(HoglinEntity hoglin, LivingEntity target)
m_34634_(C_1097_ p_34635_, C_524_ p_34636_)
private static void
i(cds arg0, bml arg1)
setAttackTargetIfCloserThanCurrent(Hoglin arg0, LivingEntity arg1)
method_24689(class_4760 arg0, class_1309 arg1)
setAttackTargetIfCloser(HoglinEntity hoglin, LivingEntity targetCandidate)
m_34639_(C_1097_ p_34640_, C_524_ p_34641_)
public static Optional<SoundEvent>
b(cds arg0)
getSoundForCurrentActivity(Hoglin arg0)
method_30083(class_4760 arg0)
getSoundEvent(HoglinEntity hoglin)
m_34593_(C_1097_ p_34594_)
private static SoundEvent
a(cds arg0, cgu arg1)
getSoundForActivity(Hoglin arg0, Activity arg1)
method_30082(class_4760 arg0, class_4168 arg1)
getSoundEvent(HoglinEntity hoglin, Activity activity)
m_34582_(C_1097_ p_34583_, C_1195_ p_34584_)
private static List<Hoglin>
g(cds arg0)
getVisibleAdultHoglins(Hoglin arg0)
method_24690(class_4760 arg0)
getAdultHoglinsAround(HoglinEntity hoglin)
m_34627_(C_1097_ p_34628_)
private static boolean
h(cds arg0)
isNearRepellent(Hoglin arg0)
method_30085(class_4760 arg0)
hasNearestRepellent(HoglinEntity hoglin)
m_34632_(C_1097_ p_34633_)
private static boolean
i(cds arg0)
isBreeding(Hoglin arg0)
method_24691(class_4760 arg0)
hasBreedTarget(HoglinEntity hoglin)
m_34637_(C_1097_ p_34638_)
protected static boolean
c(cds arg0)
isPacified(Hoglin arg0)
method_24677(class_4760 arg0)
isNearPlayer(HoglinEntity hoglin)
m_34603_(C_1097_ p_34604_)