Class WalkToVillagerBabiesTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
net.minecraft.entity.ai.brain.task.WalkToVillagerBabiesTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
chaseKid
(CreatureEntity p_220498_0_, LivingEntity p_220498_1_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, CreatureEntity p_212832_2_) private Map<LivingEntity,
Integer> checkHowManyChasersEachFriendHas
(CreatureEntity p_220505_1_) private Optional<LivingEntity>
findSomeoneBeingChased
(CreatureEntity p_220497_1_) private Optional<LivingEntity>
findSomeoneToChase
(CreatureEntity p_220510_1_) private void
fleeFromChaser
(ServerWorld p_220508_1_, CreatureEntity p_220508_2_, LivingEntity p_220508_3_) private List<LivingEntity>
getFriendsNearby
(CreatureEntity p_220503_1_) private boolean
hasFriendsNearby
(CreatureEntity p_220501_1_) private boolean
isChasingSomeone
(LivingEntity p_220502_1_) private boolean
isFriendChasingMe
(LivingEntity p_220499_1_, LivingEntity p_220499_2_) private LivingEntity
seeIfSomeoneIsChasingMe
(LivingEntity p_220500_1_) protected void
start
(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_) private LivingEntity
whoAreYouChasing
(LivingEntity p_220495_1_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Constructor Details
-
WalkToVillagerBabiesTask
public WalkToVillagerBabiesTask()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<CreatureEntity>
-
start
- Overrides:
start
in classTask<CreatureEntity>
-
fleeFromChaser
private void fleeFromChaser(ServerWorld p_220508_1_, CreatureEntity p_220508_2_, LivingEntity p_220508_3_) -
chaseKid
-
findSomeoneToChase
-
findSomeoneBeingChased
-
checkHowManyChasersEachFriendHas
-
getFriendsNearby
-
whoAreYouChasing
-
seeIfSomeoneIsChasingMe
-
isChasingSomeone
-
isFriendChasingMe
-
hasFriendsNearby
-