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 final int
private static final float
private static final float
private static final int
private static final int
private static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, 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> 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:
-
MAX_FLEE_Y_DIST
private static final int MAX_FLEE_Y_DIST- See Also:
-
FLEE_SPEED_MODIFIER
private static final float FLEE_SPEED_MODIFIER- See Also:
-
CHASE_SPEED_MODIFIER
private static final float CHASE_SPEED_MODIFIER- See Also:
-
MAX_CHASERS_PER_TARGET
private static final int MAX_CHASERS_PER_TARGET- See Also:
-
AVERAGE_WAIT_TIME_BETWEEN_RUNS
private static final int AVERAGE_WAIT_TIME_BETWEEN_RUNS- See Also:
-
-
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
-