Class PiglinBruteBrain
java.lang.Object
net.minecraft.entity.monster.piglin.PiglinBruteBrain
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static FirstShuffledTask<PiglinBruteEntity>
private static FirstShuffledTask<PiglinBruteEntity>
private static Optional<? extends LivingEntity>
findNearestValidAttackTarget
(AbstractPiglinEntity p_242349_0_) private static Optional<? extends LivingEntity>
getTargetIfWithinRange
(AbstractPiglinEntity p_242351_0_, MemoryModuleType<? extends LivingEntity> p_242351_1_) private static void
initCoreActivity
(PiglinBruteEntity p_242359_0_, Brain<PiglinBruteEntity> p_242359_1_) private static void
initFightActivity
(PiglinBruteEntity p_242364_0_, Brain<PiglinBruteEntity> p_242364_1_) private static void
initIdleActivity
(PiglinBruteEntity p_242362_0_, Brain<PiglinBruteEntity> p_242362_1_) protected static void
initMemories
(PiglinBruteEntity p_242352_0_) private static boolean
isAttackAllowed
(LivingEntity p_242347_0_) private static boolean
isNearestValidAttackTarget
(AbstractPiglinEntity p_242350_0_, LivingEntity p_242350_1_) protected static Brain<?>
makeBrain
(PiglinBruteEntity p_242354_0_, Brain<PiglinBruteEntity> p_242354_1_) protected static void
maybePlayActivitySound
(PiglinBruteEntity p_242360_0_) private static void
playActivitySound
(PiglinBruteEntity p_242363_0_) protected static void
updateActivity
(PiglinBruteEntity p_242358_0_) protected static void
wasHurtBy
(PiglinBruteEntity p_242353_0_, LivingEntity p_242353_1_)
-
Constructor Details
-
PiglinBruteBrain
public PiglinBruteBrain()
-
-
Method Details
-
makeBrain
protected static Brain<?> makeBrain(PiglinBruteEntity p_242354_0_, Brain<PiglinBruteEntity> p_242354_1_) -
initMemories
-
initCoreActivity
private static void initCoreActivity(PiglinBruteEntity p_242359_0_, Brain<PiglinBruteEntity> p_242359_1_) -
initIdleActivity
private static void initIdleActivity(PiglinBruteEntity p_242362_0_, Brain<PiglinBruteEntity> p_242362_1_) -
initFightActivity
private static void initFightActivity(PiglinBruteEntity p_242364_0_, Brain<PiglinBruteEntity> p_242364_1_) -
createIdleLookBehaviors
-
createIdleMovementBehaviors
-
updateActivity
-
isNearestValidAttackTarget
private static boolean isNearestValidAttackTarget(AbstractPiglinEntity p_242350_0_, LivingEntity p_242350_1_) -
findNearestValidAttackTarget
private static Optional<? extends LivingEntity> findNearestValidAttackTarget(AbstractPiglinEntity p_242349_0_) -
isAttackAllowed
-
getTargetIfWithinRange
private static Optional<? extends LivingEntity> getTargetIfWithinRange(AbstractPiglinEntity p_242351_0_, MemoryModuleType<? extends LivingEntity> p_242351_1_) -
wasHurtBy
-
maybePlayActivitySound
-
playActivitySound
-