net.minecraft.world.entity.monster.hoglin

public class HoglinAi

cog
net.minecraft.world.entity.monster.hoglin.HoglinAi
net.minecraft.class_4835
net.minecraft.entity.mob.HoglinBrain
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
public static final int
b
REPELLENT_DETECTION_RANGE_VERTICAL
field_30534
field_30534
private static final UniformInt
c
RETREAT_DURATION
field_22369
AVOID_MEMORY_DURATION
private static final int
d
ATTACK_DURATION
field_30535
field_30535
private static final int
e
DESIRED_DISTANCE_FROM_PIGLIN_WHEN_IDLING
field_30536
field_30536
private static final int
f
DESIRED_DISTANCE_FROM_PIGLIN_WHEN_RETREATING
field_30537
field_30537
private static final int
g
ATTACK_INTERVAL
field_30538
ADULT_MELEE_ATTACK_COOLDOWN
private static final int
h
BABY_ATTACK_INTERVAL
field_30539
BABY_MELEE_ATTACK_COOLDOWN
private static final int
i
REPELLENT_PACIFY_TIME
field_30540
field_30540
private static final UniformInt
j
ADULT_FOLLOW_RANGE
field_25383
WALK_TOWARD_CLOSEST_ADULT_RANGE
private static final float
k
SPEED_MULTIPLIER_WHEN_AVOIDING_REPELLENT
field_30541
field_30541
private static final float
l
SPEED_MULTIPLIER_WHEN_RETREATING
field_30542
AVOID_TARGET_SPEED
private static final float
m
SPEED_MULTIPLIER_WHEN_MAKING_LOVE
field_30543
field_30543
private static final float
n
SPEED_MULTIPLIER_WHEN_IDLING
field_30544
field_30544
private static final float
o
SPEED_MULTIPLIER_WHEN_FOLLOWING_ADULT
field_30545
field_30545

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected static Brain<?>
a(bxi<cof> arg0)
makeBrain(Brain<Hoglin> arg0)
method_24668(class_4095<class_4760> arg0)
create(Brain<HoglinEntity> brain)
private static void
b(bxi<cof> arg0)
initCoreActivity(Brain<Hoglin> arg0)
method_24666(class_4095<class_4760> arg0)
addCoreTasks(Brain<HoglinEntity> brain)
private static void
c(bxi<cof> arg0)
initIdleActivity(Brain<Hoglin> arg0)
method_24673(class_4095<class_4760> arg0)
addIdleTasks(Brain<HoglinEntity> brain)
private static void
d(bxi<cof> arg0)
initFightActivity(Brain<Hoglin> arg0)
method_24676(class_4095<class_4760> arg0)
addFightTasks(Brain<HoglinEntity> brain)
private static void
e(bxi<cof> arg0)
initRetreatActivity(Brain<Hoglin> arg0)
method_24679(class_4095<class_4760> arg0)
addAvoidTasks(Brain<HoglinEntity> brain)
private static RunOne<Hoglin>
a()
createIdleMovementBehaviors()
method_24662()
makeRandomWalkTask()
protected static void
a(cof arg0)
updateActivity(Hoglin arg0)
method_24664(class_4760 arg0)
refreshActivities(HoglinEntity hoglin)
protected static void
a(cof arg0, bwg arg1)
onHitTarget(Hoglin arg0, LivingEntity arg1)
method_24665(class_4760 arg0, class_1309 arg1)
onAttacking(HoglinEntity hoglin, LivingEntity target)
private static void
b(cof arg0, bwg arg1)
broadcastRetreat(Hoglin arg0, LivingEntity arg1)
method_24675(class_4760 arg0, class_1309 arg1)
askAdultsToAvoid(HoglinEntity hoglin, LivingEntity target)
private static void
c(cof arg0, bwg arg1)
retreatFromNearestTarget(Hoglin arg0, LivingEntity arg1)
method_24678(class_4760 arg0, class_1309 arg1)
avoidEnemy(HoglinEntity hoglin, LivingEntity target)
private static void
d(cof arg0, bwg arg1)
setAvoidTarget(Hoglin arg0, LivingEntity arg1)
method_24681(class_4760 arg0, class_1309 arg1)
avoid(HoglinEntity hoglin, LivingEntity target)
private static Optional<? extends LivingEntity>
a(ash arg0, cof arg1)
findNearestValidAttackTarget(ServerLevel arg0, Hoglin arg1)
method_24684(class_3218 arg0, class_4760 arg1)
getNearestVisibleTargetablePlayer(ServerWorld world, HoglinEntity hoglin)
static boolean
a(cof arg0, jh arg1)
isPosNearNearestRepellent(Hoglin arg0, BlockPos arg1)
method_24669(class_4760 arg0, class_2338 arg1)
isWarpedFungusAround(HoglinEntity hoglin, BlockPos pos)
private static boolean
d(cof arg0)
wantsToStopFleeing(Hoglin arg0)
method_25947(class_4760 arg0)
isLoneAdult(HoglinEntity hoglin)
private static boolean
e(cof arg0)
piglinsOutnumberHoglins(Hoglin arg0)
method_24686(class_4760 arg0)
hasMoreHoglinsAround(HoglinEntity hoglin)
protected static void
a(ash arg0, cof arg1, bwg arg2)
wasHurtBy(ServerLevel arg0, Hoglin arg1, LivingEntity arg2)
method_24672(class_3218 arg0, class_4760 arg1, class_1309 arg2)
onAttacked(ServerWorld world, HoglinEntity hoglin, LivingEntity attacker)
private static void
b(ash arg0, cof arg1, bwg arg2)
maybeRetaliate(ServerLevel arg0, Hoglin arg1, LivingEntity arg2)
method_24683(class_3218 arg0, class_4760 arg1, class_1309 arg2)
targetEnemy(ServerWorld world, HoglinEntity hoglin, LivingEntity target)
private static void
e(cof arg0, bwg arg1)
setAttackTarget(Hoglin arg0, LivingEntity arg1)
method_24685(class_4760 arg0, class_1309 arg1)
setAttackTarget(HoglinEntity hoglin, LivingEntity target)
private static void
f(cof arg0, bwg arg1)
broadcastAttackTarget(Hoglin arg0, LivingEntity arg1)
method_24687(class_4760 arg0, class_1309 arg1)
askAdultsForHelp(HoglinEntity hoglin, LivingEntity target)
private static void
g(cof arg0, bwg arg1)
setAttackTargetIfCloserThanCurrent(Hoglin arg0, LivingEntity arg1)
method_24689(class_4760 arg0, class_1309 arg1)
setAttackTargetIfCloser(HoglinEntity hoglin, LivingEntity targetCandidate)
public static Optional<SoundEvent>
b(cof arg0)
getSoundForCurrentActivity(Hoglin arg0)
method_30083(class_4760 arg0)
getSoundEvent(HoglinEntity hoglin)
private static SoundEvent
a(cof arg0, cro arg1)
getSoundForActivity(Hoglin arg0, Activity arg1)
method_30082(class_4760 arg0, class_4168 arg1)
getSoundEvent(HoglinEntity hoglin, Activity activity)
private static List<Hoglin>
f(cof arg0)
getVisibleAdultHoglins(Hoglin arg0)
method_24690(class_4760 arg0)
getAdultHoglinsAround(HoglinEntity hoglin)
private static boolean
g(cof arg0)
isNearRepellent(Hoglin arg0)
method_30085(class_4760 arg0)
hasNearestRepellent(HoglinEntity hoglin)
private static boolean
h(cof arg0)
isBreeding(Hoglin arg0)
method_24691(class_4760 arg0)
hasBreedTarget(HoglinEntity hoglin)
protected static boolean
c(cof arg0)
isPacified(Hoglin arg0)
method_24677(class_4760 arg0)
isNearPlayer(HoglinEntity hoglin)