Class PiglinBruteAi
java.lang.Object
net.minecraft.world.entity.monster.piglin.PiglinBruteAi
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final double
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final float
private static final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static RunOne
<PiglinBrute> private static RunOne
<PiglinBrute> private static Optional
<? extends LivingEntity> findNearestValidAttackTarget
(AbstractPiglin p_35087_) private static Optional
<? extends LivingEntity> getTargetIfWithinRange
(AbstractPiglin p_35092_, MemoryModuleType<? extends LivingEntity> p_35093_) private static void
initCoreActivity
(PiglinBrute p_35112_, Brain<PiglinBrute> p_35113_) private static void
initFightActivity
(PiglinBrute p_35125_, Brain<PiglinBrute> p_35126_) private static void
initIdleActivity
(PiglinBrute p_35120_, Brain<PiglinBrute> p_35121_) protected static void
initMemories
(PiglinBrute p_35095_) private static boolean
isNearestValidAttackTarget
(AbstractPiglin p_35089_, LivingEntity p_35090_) protected static Brain
<?> makeBrain
(PiglinBrute p_35100_, Brain<PiglinBrute> p_35101_) protected static void
maybePlayActivitySound
(PiglinBrute p_35115_) private static void
playActivitySound
(PiglinBrute p_35123_) protected static void
setAngerTarget
(PiglinBrute p_149989_, LivingEntity p_149990_) protected static void
updateActivity
(PiglinBrute p_35110_) protected static void
wasHurtBy
(PiglinBrute p_35097_, LivingEntity p_35098_)
-
Field Details
-
ANGER_DURATION
private static final int ANGER_DURATION- See Also:
-
MELEE_ATTACK_COOLDOWN
private static final int MELEE_ATTACK_COOLDOWN- See Also:
-
ACTIVITY_SOUND_LIKELIHOOD_PER_TICK
private static final double ACTIVITY_SOUND_LIKELIHOOD_PER_TICK- See Also:
-
MAX_LOOK_DIST
private static final int MAX_LOOK_DIST- See Also:
-
INTERACTION_RANGE
private static final int INTERACTION_RANGE- See Also:
-
TARGETING_RANGE
private static final double TARGETING_RANGE- See Also:
-
SPEED_MULTIPLIER_WHEN_IDLING
private static final float SPEED_MULTIPLIER_WHEN_IDLING- See Also:
-
HOME_CLOSE_ENOUGH_DISTANCE
private static final int HOME_CLOSE_ENOUGH_DISTANCE- See Also:
-
HOME_TOO_FAR_DISTANCE
private static final int HOME_TOO_FAR_DISTANCE- See Also:
-
HOME_STROLL_AROUND_DISTANCE
private static final int HOME_STROLL_AROUND_DISTANCE- See Also:
-
-
Constructor Details
-
PiglinBruteAi
public PiglinBruteAi()
-
-
Method Details
-
makeBrain
-
initMemories
-
initCoreActivity
-
initIdleActivity
-
initFightActivity
-
createIdleLookBehaviors
-
createIdleMovementBehaviors
-
updateActivity
-
isNearestValidAttackTarget
-
findNearestValidAttackTarget
private static Optional<? extends LivingEntity> findNearestValidAttackTarget(AbstractPiglin p_35087_) -
getTargetIfWithinRange
private static Optional<? extends LivingEntity> getTargetIfWithinRange(AbstractPiglin p_35092_, MemoryModuleType<? extends LivingEntity> p_35093_) -
wasHurtBy
-
setAngerTarget
-
maybePlayActivitySound
-
playActivitySound
-