Class PlayWithVillagerBabiesTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.PlayWithVillagerBabiesTask

public class PlayWithVillagerBabiesTask
extends Task<PathAwareEntity>
Mappings:
Namespace Name
official aty
intermediary net/minecraft/class_4218
named net/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask
  • Constructor Details

    • PlayWithVillagerBabiesTask

      public PlayWithVillagerBabiesTask()
  • Method Details

    • shouldRun

      protected boolean shouldRun​(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
      Overrides:
      shouldRun in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laty;a(Laav;Larq;)Z
      intermediary method_19583 Lnet/minecraft/class_4218;method_19583(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
    • run

      protected void run​(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laty;a(Laav;Larq;J)V
      intermediary method_19584 Lnet/minecraft/class_4218;method_19584(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • setGroundTarget

      private void setGroundTarget​(ServerWorld world, PathAwareEntity entity, LivingEntity unusedBaby)
      Mappings:
      Namespace Name Mixin selector
      official a Laty;a(Laav;Larq;Lari;)V
      intermediary method_19585 Lnet/minecraft/class_4218;method_19585(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;Lnet/minecraft/class_1309;)V
      named setGroundTarget Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;setGroundTarget(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/entity/LivingEntity;)V
    • setPlayTarget

      private static void setPlayTarget​(PathAwareEntity entity, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Laty;a(Larq;Lari;)V
      intermediary method_19580 Lnet/minecraft/class_4218;method_19580(Lnet/minecraft/class_1314;Lnet/minecraft/class_1309;)V
      named setPlayTarget Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;setPlayTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/entity/LivingEntity;)V
    • getVisibleMob

      private Optional<LivingEntity> getVisibleMob​(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Laty;a(Larq;)Ljava/util/Optional;
      intermediary method_19579 Lnet/minecraft/class_4218;method_19579(Lnet/minecraft/class_1314;)Ljava/util/Optional;
      named getVisibleMob Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getVisibleMob(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Optional;
    • getLeastPopularBabyInteractionTarget

      private Optional<LivingEntity> getLeastPopularBabyInteractionTarget​(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Laty;b(Larq;)Ljava/util/Optional;
      intermediary method_19588 Lnet/minecraft/class_4218;method_19588(Lnet/minecraft/class_1314;)Ljava/util/Optional;
      named getLeastPopularBabyInteractionTarget Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getLeastPopularBabyInteractionTarget(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Optional;
    • getBabyInteractionTargetCounts

      private Map<LivingEntity,​Integer> getBabyInteractionTargetCounts​(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Laty;c(Larq;)Ljava/util/Map;
      intermediary method_19592 Lnet/minecraft/class_4218;method_19592(Lnet/minecraft/class_1314;)Ljava/util/Map;
      named getBabyInteractionTargetCounts Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getBabyInteractionTargetCounts(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Map;
    • getVisibleVillagerBabies

      private List<LivingEntity> getVisibleVillagerBabies​(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official d Laty;d(Larq;)Ljava/util/List;
      intermediary method_19594 Lnet/minecraft/class_4218;method_19594(Lnet/minecraft/class_1314;)Ljava/util/List;
      named getVisibleVillagerBabies Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getVisibleVillagerBabies(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/List;
    • getInteractionTarget

      private LivingEntity getInteractionTarget​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Laty;a(Lari;)Lari;
      intermediary method_19576 Lnet/minecraft/class_4218;method_19576(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
      named getInteractionTarget Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getInteractionTarget(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
    • findVisibleVillagerBaby

      @Nullable private LivingEntity findVisibleVillagerBaby​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Laty;b(Lari;)Lari;
      intermediary method_19586 Lnet/minecraft/class_4218;method_19586(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
      named findVisibleVillagerBaby Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;findVisibleVillagerBaby(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
    • hasInteractionTarget

      private boolean hasInteractionTarget​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Laty;c(Lari;)Z
      intermediary method_19593 Lnet/minecraft/class_4218;method_19593(Lnet/minecraft/class_1309;)Z
      named hasInteractionTarget Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;hasInteractionTarget(Lnet/minecraft/entity/LivingEntity;)Z
    • isInteractionTargetOf

      private boolean isInteractionTargetOf​(LivingEntity entity, LivingEntity other)
      Mappings:
      Namespace Name Mixin selector
      official a Laty;a(Lari;Lari;)Z
      intermediary method_19577 Lnet/minecraft/class_4218;method_19577(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      named isInteractionTargetOf Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;isInteractionTargetOf(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
    • hasVisibleVillagerBabies

      private boolean hasVisibleVillagerBabies​(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official e Laty;e(Larq;)Z
      intermediary method_19590 Lnet/minecraft/class_4218;method_19590(Lnet/minecraft/class_1314;)Z
      named hasVisibleVillagerBabies Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;hasVisibleVillagerBabies(Lnet/minecraft/entity/mob/PathAwareEntity;)Z