Class PiglinBruteBrain
- java.lang.Object
-
- net.minecraft.entity.monster.piglin.PiglinBruteBrain
-
public class PiglinBruteBrain extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PiglinBruteBrain()
-
Method Summary
-
-
-
Method Detail
-
makeBrain
protected static Brain<?> makeBrain(PiglinBruteEntity p_242354_0_, Brain<PiglinBruteEntity> p_242354_1_)
-
initMemories
protected static void initMemories(PiglinBruteEntity p_242352_0_)
-
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
private static FirstShuffledTask<PiglinBruteEntity> createIdleLookBehaviors()
-
createIdleMovementBehaviors
private static FirstShuffledTask<PiglinBruteEntity> createIdleMovementBehaviors()
-
updateActivity
protected static void updateActivity(PiglinBruteEntity p_242358_0_)
-
isNearestValidAttackTarget
private static boolean isNearestValidAttackTarget(AbstractPiglinEntity p_242350_0_, LivingEntity p_242350_1_)
-
findNearestValidAttackTarget
private static java.util.Optional<? extends LivingEntity> findNearestValidAttackTarget(AbstractPiglinEntity p_242349_0_)
-
isAttackAllowed
private static boolean isAttackAllowed(LivingEntity p_242347_0_)
-
getTargetIfWithinRange
private static java.util.Optional<? extends LivingEntity> getTargetIfWithinRange(AbstractPiglinEntity p_242351_0_, MemoryModuleType<? extends LivingEntity> p_242351_1_)
-
wasHurtBy
protected static void wasHurtBy(PiglinBruteEntity p_242353_0_, LivingEntity p_242353_1_)
-
maybePlayActivitySound
protected static void maybePlayActivitySound(PiglinBruteEntity p_242360_0_)
-
playActivitySound
private static void playActivitySound(PiglinBruteEntity p_242363_0_)
-
-