Class PlayTagWithOtherKids
java.lang.Object
net.minecraft.world.entity.ai.behavior.PlayTagWithOtherKids
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
chaseKid
(MemoryAccessor<?, LivingEntity> p_259811_, MemoryAccessor<?, PositionTracker> p_259299_, MemoryAccessor<?, WalkTarget> p_260056_, LivingEntity p_259463_) private static Map<LivingEntity,
Integer> checkHowManyChasersEachFriendHas
(List<LivingEntity> p_259989_) static BehaviorControl<PathfinderMob>
create()
private static Optional<LivingEntity>
findSomeoneBeingChased
(List<LivingEntity> p_259655_) private static boolean
isChasingSomeone
(LivingEntity p_23668_) private static boolean
isFriendChasingMe
(LivingEntity p_23642_, LivingEntity p_23643_) private static LivingEntity
whoAreYouChasing
(LivingEntity p_23640_)
-
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
-
create
-
chaseKid
private static void chaseKid(MemoryAccessor<?, LivingEntity> p_259811_, MemoryAccessor<?, PositionTracker> p_259299_, MemoryAccessor<?, WalkTarget> p_260056_, LivingEntity p_259463_) -
findSomeoneBeingChased
-
checkHowManyChasersEachFriendHas
private static Map<LivingEntity,Integer> checkHowManyChasersEachFriendHas(List<LivingEntity> p_259989_) -
whoAreYouChasing
-
isChasingSomeone
-
isFriendChasingMe
-