Class PiglinBruteAi
java.lang.Object
net.minecraft.world.entity.monster.piglin.PiglinBruteAi
-
Field Summary
Modifier and TypeFieldDescriptionprivate static double
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static float
private static 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:
- Constant Field Values
-
MELEE_ATTACK_COOLDOWN
private static final int MELEE_ATTACK_COOLDOWN- See Also:
- Constant Field Values
-
ACTIVITY_SOUND_LIKELIHOOD_PER_TICK
private static final double ACTIVITY_SOUND_LIKELIHOOD_PER_TICK- See Also:
- Constant Field Values
-
MAX_LOOK_DIST
private static final int MAX_LOOK_DIST- See Also:
- Constant Field Values
-
INTERACTION_RANGE
private static final int INTERACTION_RANGE- See Also:
- Constant Field Values
-
TARGETING_RANGE
private static final double TARGETING_RANGE- See Also:
- Constant Field Values
-
SPEED_MULTIPLIER_WHEN_IDLING
private static final float SPEED_MULTIPLIER_WHEN_IDLING- See Also:
- Constant Field Values
-
HOME_CLOSE_ENOUGH_DISTANCE
private static final int HOME_CLOSE_ENOUGH_DISTANCE- See Also:
- Constant Field Values
-
HOME_TOO_FAR_DISTANCE
private static final int HOME_TOO_FAR_DISTANCE- See Also:
- Constant Field Values
-
HOME_STROLL_AROUND_DISTANCE
private static final int HOME_STROLL_AROUND_DISTANCE- See Also:
- Constant Field Values
-
-
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
-