public class PlayWithVillagerBabiesTask extends Task<MobEntityWithAi>
Task.Status
requiredMemoryStates
Constructor and Description |
---|
PlayWithVillagerBabiesTask() |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
protected boolean shouldRun(ServerWorld serverWorld, MobEntityWithAi mobEntityWithAi)
shouldRun
in class Task<MobEntityWithAi>
protected void run(ServerWorld serverWorld, MobEntityWithAi mobEntityWithAi, long long2)
run
in class Task<MobEntityWithAi>
private void setGroundTarget(ServerWorld world, MobEntityWithAi entity, LivingEntity unusedBaby)
private static void setPlayTarget(MobEntityWithAi entity, LivingEntity target)
private Optional<LivingEntity> getVisibleMob(MobEntityWithAi entity)
private Optional<LivingEntity> getLeastPopularBabyInteractionTarget(MobEntityWithAi entity)
private Map<LivingEntity,Integer> getBabyInteractionTargetCounts(MobEntityWithAi entity)
private List<LivingEntity> getVisibleVillagerBabies(MobEntityWithAi entity)
private LivingEntity getInteractionTarget(LivingEntity entity)
@Nullable private LivingEntity findVisibleVillagerBaby(LivingEntity entity)
private boolean hasInteractionTarget(LivingEntity entity)
private boolean isInteractionTargetOf(LivingEntity entity, LivingEntity other)
private boolean hasVisibleVillagerBabies(MobEntityWithAi entity)