Class PlayTagWithOtherKids
java.lang.Object
net.minecraft.world.entity.ai.behavior.PlayTagWithOtherKids
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate static final floatprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidchaseKid(MemoryAccessor<?, LivingEntity> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kid) private static Map<LivingEntity, Integer> static BehaviorControl<PathfinderMob> create()private static Optional<LivingEntity> private static booleanprivate static booleanisFriendChasingMe(LivingEntity entity, LivingEntity kid) private static LivingEntity
-
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> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kid) -
findSomeoneBeingChased
-
checkHowManyChasersEachFriendHas
-
whoAreYouChasing
-
isChasingSomeone
-
isFriendChasingMe
-