Class WalkToVillagerBabiesTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
-
- net.minecraft.entity.ai.brain.task.WalkToVillagerBabiesTask
-
public class WalkToVillagerBabiesTask extends Task<CreatureEntity>
-
-
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 Constructor Description WalkToVillagerBabiesTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
chaseKid(CreatureEntity p_220498_0_, LivingEntity p_220498_1_)
protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, CreatureEntity p_212832_2_)
private java.util.Map<LivingEntity,java.lang.Integer>
checkHowManyChasersEachFriendHas(CreatureEntity p_220505_1_)
private java.util.Optional<LivingEntity>
findSomeoneBeingChased(CreatureEntity p_220497_1_)
private java.util.Optional<LivingEntity>
findSomeoneToChase(CreatureEntity p_220510_1_)
private void
fleeFromChaser(ServerWorld p_220508_1_, CreatureEntity p_220508_2_, LivingEntity p_220508_3_)
private java.util.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
-
-
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, CreatureEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<CreatureEntity>
-
start
protected void start(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<CreatureEntity>
-
fleeFromChaser
private void fleeFromChaser(ServerWorld p_220508_1_, CreatureEntity p_220508_2_, LivingEntity p_220508_3_)
-
chaseKid
private static void chaseKid(CreatureEntity p_220498_0_, LivingEntity p_220498_1_)
-
findSomeoneToChase
private java.util.Optional<LivingEntity> findSomeoneToChase(CreatureEntity p_220510_1_)
-
findSomeoneBeingChased
private java.util.Optional<LivingEntity> findSomeoneBeingChased(CreatureEntity p_220497_1_)
-
checkHowManyChasersEachFriendHas
private java.util.Map<LivingEntity,java.lang.Integer> checkHowManyChasersEachFriendHas(CreatureEntity p_220505_1_)
-
getFriendsNearby
private java.util.List<LivingEntity> getFriendsNearby(CreatureEntity p_220503_1_)
-
whoAreYouChasing
private LivingEntity whoAreYouChasing(LivingEntity p_220495_1_)
-
seeIfSomeoneIsChasingMe
@Nullable private LivingEntity seeIfSomeoneIsChasingMe(LivingEntity p_220500_1_)
-
isChasingSomeone
private boolean isChasingSomeone(LivingEntity p_220502_1_)
-
isFriendChasingMe
private boolean isFriendChasingMe(LivingEntity p_220499_1_, LivingEntity p_220499_2_)
-
hasFriendsNearby
private boolean hasFriendsNearby(CreatureEntity p_220501_1_)
-
-