net.minecraft.entity.ai.brain.task

public class PlayWithVillagerBabiesTask

net.minecraft.world.entity.ai.behavior.PlayTagWithOtherKids
net.minecraft.world.entity.ai.behavior.PlayTagWithOtherKids
net.minecraft.class_4218
net.minecraft.entity.ai.brain.task.PlayWithVillagerBabiesTask

Field summary

Modifier and TypeField
private static final int
MAX_FLEE_XZ_DIST
MAX_FLEE_XZ_DIST
field_30151
HORIZONTAL_RANGE
private static final int
MAX_FLEE_Y_DIST
MAX_FLEE_Y_DIST
field_30152
VERTICAL_RANGE
private static final float
FLEE_SPEED_MODIFIER
FLEE_SPEED_MODIFIER
field_30153
WALK_SPEED
private static final float
CHASE_SPEED_MODIFIER
CHASE_SPEED_MODIFIER
field_30154
PLAYING_WALK_SPEED
private static final int
MAX_CHASERS_PER_TARGET
MAX_CHASERS_PER_TARGET
field_30155
MAX_BABY_INTERACTION_COUNT
private static final int
AVERAGE_WAIT_TIME_BETWEEN_RUNS
AVERAGE_WAIT_TIME_BETWEEN_RUNS
field_30156
RUN_CHANCE

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static Task<PathAwareEntity>
create()
create()
method_47000()
create()
private static void
chaseKid(MemoryAccessor<?, LivingEntity> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kidToChase)
chaseKid(MemoryAccessor<?, LivingEntity> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kidToChase)
method_19580(class_7906<?, class_1309> arg0, class_7906<?, class_4115> arg1, class_7906<?, class_4142> arg2, class_1309 arg3)
setPlayTarget(MemoryQueryResult<?, LivingEntity> interactionTarget, MemoryQueryResult<?, LookTarget> lookTarget, MemoryQueryResult<?, WalkTarget> walkTarget, LivingEntity baby)
private static Optional<LivingEntity>
findSomeoneBeingChased(List<LivingEntity> friendsNearby)
findSomeoneBeingChased(List<LivingEntity> friendsNearby)
method_19588(List<class_1309> arg0)
getLeastPopularBabyInteractionTarget(List<LivingEntity> babies)
private static Map<LivingEntity, Integer>
checkHowManyChasersEachFriendHas(List<LivingEntity> friendsNearby)
checkHowManyChasersEachFriendHas(List<LivingEntity> friendsNearby)
method_19592(List<class_1309> arg0)
getBabyInteractionTargetCounts(List<LivingEntity> babies)
private static LivingEntity
whoAreYouChasing(LivingEntity friend)
whoAreYouChasing(LivingEntity friend)
method_19576(class_1309 arg0)
getInteractionTarget(LivingEntity baby)
private static boolean
isChasingSomeone(LivingEntity friend)
isChasingSomeone(LivingEntity friend)
method_19593(class_1309 arg0)
hasInteractionTarget(LivingEntity baby)
private static boolean
isFriendChasingMe(LivingEntity me, LivingEntity friend)
isFriendChasingMe(LivingEntity me, LivingEntity friend)
method_19577(class_1309 arg0, class_1309 arg1)
isInteractionTargetOf(LivingEntity entity, LivingEntity baby)