Class PlayTagWithOtherKids
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.PlayTagWithOtherKids
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static float
private static float
private static int
private static int
private static int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
chaseKid(PathfinderMob p_23650_, LivingEntity p_23651_)
protected boolean
checkExtraStartConditions(ServerLevel p_23629_, PathfinderMob p_23630_)
private Map<LivingEntity,Integer>
checkHowManyChasersEachFriendHas(PathfinderMob p_23673_)
private Optional<LivingEntity>
findSomeoneBeingChased(PathfinderMob p_23663_)
private Optional<LivingEntity>
findSomeoneToChase(PathfinderMob p_23648_)
private void
fleeFromChaser(ServerLevel p_23636_, PathfinderMob p_23637_, LivingEntity p_23638_)
private List<LivingEntity>
getFriendsNearby(PathfinderMob p_23675_)
private boolean
hasFriendsNearby(PathfinderMob p_23677_)
private boolean
isChasingSomeone(LivingEntity p_23668_)
private boolean
isFriendChasingMe(LivingEntity p_23642_, LivingEntity p_23643_)
private LivingEntity
seeIfSomeoneIsChasingMe(LivingEntity p_23658_)
protected void
start(ServerLevel p_23632_, PathfinderMob p_23633_, long p_23634_)
private LivingEntity
whoAreYouChasing(LivingEntity p_23640_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
MAX_FLEE_XZ_DIST
private static final int MAX_FLEE_XZ_DIST- See Also:
- Constant Field Values
-
MAX_FLEE_Y_DIST
private static final int MAX_FLEE_Y_DIST- See Also:
- Constant Field Values
-
FLEE_SPEED_MODIFIER
private static final float FLEE_SPEED_MODIFIER- See Also:
- Constant Field Values
-
CHASE_SPEED_MODIFIER
private static final float CHASE_SPEED_MODIFIER- See Also:
- Constant Field Values
-
MAX_CHASERS_PER_TARGET
private static final int MAX_CHASERS_PER_TARGET- See Also:
- Constant Field Values
-
AVERAGE_WAIT_TIME_BETWEEN_RUNS
private static final int AVERAGE_WAIT_TIME_BETWEEN_RUNS- See Also:
- Constant Field Values
-
-
Constructor Details
-
PlayTagWithOtherKids
public PlayTagWithOtherKids()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<PathfinderMob>
-
start
- Overrides:
start
in classBehavior<PathfinderMob>
-
fleeFromChaser
-
chaseKid
-
findSomeoneToChase
-
findSomeoneBeingChased
-
checkHowManyChasersEachFriendHas
-
getFriendsNearby
-
whoAreYouChasing
-
seeIfSomeoneIsChasingMe
-
isChasingSomeone
-
isFriendChasingMe
-
hasFriendsNearby
-