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