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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidchaseKid(CreatureEntity p_220498_0_, LivingEntity p_220498_1_) protected booleancheckExtraStartConditions(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 voidfleeFromChaser(ServerWorld p_220508_1_, CreatureEntity p_220508_2_, LivingEntity p_220508_3_) private List<LivingEntity>getFriendsNearby(CreatureEntity p_220503_1_) private booleanhasFriendsNearby(CreatureEntity p_220501_1_) private booleanisChasingSomeone(LivingEntity p_220502_1_) private booleanisFriendChasingMe(LivingEntity p_220499_1_, LivingEntity p_220499_2_) private LivingEntityseeIfSomeoneIsChasingMe(LivingEntity p_220500_1_) protected voidstart(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_) private LivingEntitywhoAreYouChasing(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:
checkExtraStartConditionsin classTask<CreatureEntity>
-
start
- Overrides:
startin 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
-