Package net.minecraft.entity.monster
Class HoglinTasks
java.lang.Object
net.minecraft.entity.monster.HoglinTasks
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final RangedInteger
private static final RangedInteger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
broadcastAttackTarget
(HoglinEntity p_234399_0_, LivingEntity p_234399_1_) private static void
broadcastRetreat
(HoglinEntity p_234387_0_, LivingEntity p_234387_1_) private static FirstShuffledTask<HoglinEntity>
private static Optional<? extends LivingEntity>
findNearestValidAttackTarget
(HoglinEntity p_234392_0_) private static SoundEvent
getSoundForActivity
(HoglinEntity p_241413_0_, Activity p_241413_1_) static Optional<SoundEvent>
getSoundForCurrentActivity
(HoglinEntity p_234398_0_) private static List<HoglinEntity>
getVisibleAdultHoglins
(HoglinEntity p_234400_0_) private static void
initCoreActivity
(Brain<HoglinEntity> p_234382_0_) private static void
initFightActivity
(Brain<HoglinEntity> p_234388_0_) private static void
initIdleActivity
(Brain<HoglinEntity> p_234385_0_) private static void
initRetreatActivity
(Brain<HoglinEntity> p_234391_0_) private static boolean
isBreeding
(HoglinEntity p_234402_0_) private static boolean
isNearRepellent
(HoglinEntity p_241416_0_) protected static boolean
isPacified
(HoglinEntity p_234386_0_) (package private) static boolean
isPosNearNearestRepellent
(HoglinEntity p_234380_0_, BlockPos p_234380_1_) protected static Brain<?>
makeBrain
(Brain<HoglinEntity> p_234376_0_) private static void
maybeRetaliate
(HoglinEntity p_234395_0_, LivingEntity p_234395_1_) protected static void
onHitTarget
(HoglinEntity p_234378_0_, LivingEntity p_234378_1_) private static boolean
piglinsOutnumberHoglins
(HoglinEntity p_234396_0_) private static void
retreatFromNearestTarget
(HoglinEntity p_234390_0_, LivingEntity p_234390_1_) private static void
setAttackTarget
(HoglinEntity p_234397_0_, LivingEntity p_234397_1_) private static void
setAttackTargetIfCloserThanCurrent
(HoglinEntity p_234401_0_, LivingEntity p_234401_1_) private static void
setAvoidTarget
(HoglinEntity p_234393_0_, LivingEntity p_234393_1_) protected static void
updateActivity
(HoglinEntity p_234377_0_) private static boolean
wantsToStopFleeing
(HoglinEntity p_234394_0_) protected static void
wasHurtBy
(HoglinEntity p_234384_0_, LivingEntity p_234384_1_)
-
Field Details
-
RETREAT_DURATION
-
ADULT_FOLLOW_RANGE
-
-
Constructor Details
-
HoglinTasks
public HoglinTasks()
-
-
Method Details
-
makeBrain
-
initCoreActivity
-
initIdleActivity
-
initFightActivity
-
initRetreatActivity
-
createIdleMovementBehaviors
-
updateActivity
-
onHitTarget
-
broadcastRetreat
-
retreatFromNearestTarget
-
setAvoidTarget
-
findNearestValidAttackTarget
private static Optional<? extends LivingEntity> findNearestValidAttackTarget(HoglinEntity p_234392_0_) -
isPosNearNearestRepellent
-
wantsToStopFleeing
-
piglinsOutnumberHoglins
-
wasHurtBy
-
maybeRetaliate
-
setAttackTarget
-
broadcastAttackTarget
-
setAttackTargetIfCloserThanCurrent
private static void setAttackTargetIfCloserThanCurrent(HoglinEntity p_234401_0_, LivingEntity p_234401_1_) -
getSoundForCurrentActivity
-
getSoundForActivity
-
getVisibleAdultHoglins
-
isNearRepellent
-
isBreeding
-
isPacified
-