Package net.minecraft.entity.mob
Class HoglinBrain
java.lang.Object
net.minecraft.entity.mob.HoglinBrain
public class HoglinBrain extends Object
-
Field Summary
Fields Modifier and Type Field Description private static IntRangeAVOID_MEMORY_DURATIONprivate static IntRangeWALK_TOWARD_CLOSEST_ADULT_RANGE -
Constructor Summary
Constructors Constructor Description HoglinBrain() -
Method Summary
Modifier and Type Method Description private static voidaddAvoidTasks(Brain<HoglinEntity> brain)private static voidaddCoreTasks(Brain<HoglinEntity> brain)private static voidaddFightTasks(Brain<HoglinEntity> brain)private static voidaddIdleTasks(Brain<HoglinEntity> brain)private static voidaskAdultsForHelp(HoglinEntity hoglin, LivingEntity target)private static voidaskAdultsToAvoid(HoglinEntity hoglin, LivingEntity target)private static voidavoid(HoglinEntity hoglin, LivingEntity target)private static voidavoidEnemy(HoglinEntity hoglin, LivingEntity target)protected static Brain<?>create(Brain<HoglinEntity> brain)private static List<HoglinEntity>getAdultHoglinsAround(HoglinEntity hoglin)private static Optional<? extends LivingEntity>getNearestVisibleTargetablePlayer(HoglinEntity hoglin)private static booleanhasBreedTarget(HoglinEntity hoglin)private static booleanhasMoreHoglinsAround(HoglinEntity hoglin)protected static booleanisNearPlayer(HoglinEntity hoglin)(package private) static booleanisWarpedFungusAround(HoglinEntity hoglin, BlockPos pos)private static RandomTask<HoglinEntity>makeRandomWalkTask()private static booleanmethod_25947(HoglinEntity hoglinEntity)private static SoundEventmethod_30082(HoglinEntity hoglinEntity, Activity activity)static Optional<SoundEvent>method_30083(HoglinEntity hoglinEntity)private static booleanmethod_30085(HoglinEntity hoglinEntity)protected static voidonAttacked(HoglinEntity hoglin, LivingEntity attacker)protected static voidonAttacking(HoglinEntity hoglin, LivingEntity target)protected static voidrefreshActivities(HoglinEntity hoglin)private static voidsetAttackTarget(HoglinEntity hoglin, LivingEntity target)private static voidsetAttackTargetIfCloser(HoglinEntity hoglin, LivingEntity targetCandidate)private static voidtargetEnemy(HoglinEntity hoglin, LivingEntity target)
-
Field Details
-
AVOID_MEMORY_DURATION
-
WALK_TOWARD_CLOSEST_ADULT_RANGE
-
-
Constructor Details
-
HoglinBrain
public HoglinBrain()
-
-
Method Details
-
create
-
addCoreTasks
-
addIdleTasks
-
addFightTasks
-
addAvoidTasks
-
makeRandomWalkTask
-
refreshActivities
-
onAttacking
-
askAdultsToAvoid
-
avoidEnemy
-
avoid
-
getNearestVisibleTargetablePlayer
private static Optional<? extends LivingEntity> getNearestVisibleTargetablePlayer(HoglinEntity hoglin) -
isWarpedFungusAround
-
method_25947
-
hasMoreHoglinsAround
-
onAttacked
-
targetEnemy
-
setAttackTarget
-
askAdultsForHelp
-
setAttackTargetIfCloser
-
method_30083
-
method_30082
-
getAdultHoglinsAround
-
method_30085
-
hasBreedTarget
-
isNearPlayer
-