Class HoglinBrain

java.lang.Object
net.minecraft.entity.mob.HoglinBrain

public class HoglinBrain
extends Object
Mappings:
Namespace Name
official bgc
intermediary net/minecraft/class_4835
named net/minecraft/entity/mob/HoglinBrain
  • Field Details

    • AVOID_MEMORY_DURATION

      private static final IntRange AVOID_MEMORY_DURATION
      Mappings:
      Namespace Name Mixin selector
      official a Lbgc;a:Lafy;
      intermediary field_22369 Lnet/minecraft/class_4835;field_22369:Lnet/minecraft/class_4801;
      named AVOID_MEMORY_DURATION Lnet/minecraft/entity/mob/HoglinBrain;AVOID_MEMORY_DURATION:Lnet/minecraft/util/math/IntRange;
    • WALK_TOWARD_CLOSEST_ADULT_RANGE

      private static final IntRange WALK_TOWARD_CLOSEST_ADULT_RANGE
      Mappings:
      Namespace Name Mixin selector
      official b Lbgc;b:Lafy;
      intermediary field_25383 Lnet/minecraft/class_4835;field_25383:Lnet/minecraft/class_4801;
      named WALK_TOWARD_CLOSEST_ADULT_RANGE Lnet/minecraft/entity/mob/HoglinBrain;WALK_TOWARD_CLOSEST_ADULT_RANGE:Lnet/minecraft/util/math/IntRange;
  • Constructor Details

    • HoglinBrain

      public HoglinBrain()
  • Method Details

    • create

      protected static Brain<?> create​(Brain<HoglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgc;a(Lasc;)Lasc;
      intermediary method_24668 Lnet/minecraft/class_4835;method_24668(Lnet/minecraft/class_4095;)Lnet/minecraft/class_4095;
      named create Lnet/minecraft/entity/mob/HoglinBrain;create(Lnet/minecraft/entity/ai/brain/Brain;)Lnet/minecraft/entity/ai/brain/Brain;
    • addCoreTasks

      private static void addCoreTasks​(Brain<HoglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgc;b(Lasc;)V
      intermediary method_24666 Lnet/minecraft/class_4835;method_24666(Lnet/minecraft/class_4095;)V
      named addCoreTasks Lnet/minecraft/entity/mob/HoglinBrain;addCoreTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addIdleTasks

      private static void addIdleTasks​(Brain<HoglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgc;c(Lasc;)V
      intermediary method_24673 Lnet/minecraft/class_4835;method_24673(Lnet/minecraft/class_4095;)V
      named addIdleTasks Lnet/minecraft/entity/mob/HoglinBrain;addIdleTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addFightTasks

      private static void addFightTasks​(Brain<HoglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgc;d(Lasc;)V
      intermediary method_24676 Lnet/minecraft/class_4835;method_24676(Lnet/minecraft/class_4095;)V
      named addFightTasks Lnet/minecraft/entity/mob/HoglinBrain;addFightTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addAvoidTasks

      private static void addAvoidTasks​(Brain<HoglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgc;e(Lasc;)V
      intermediary method_24679 Lnet/minecraft/class_4835;method_24679(Lnet/minecraft/class_4095;)V
      named addAvoidTasks Lnet/minecraft/entity/mob/HoglinBrain;addAvoidTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
    • makeRandomWalkTask

      private static RandomTask<HoglinEntity> makeRandomWalkTask()
      Mappings:
      Namespace Name Mixin selector
      official a Lbgc;a()Laui;
      intermediary method_24662 Lnet/minecraft/class_4835;method_24662()Lnet/minecraft/class_4118;
      named makeRandomWalkTask Lnet/minecraft/entity/mob/HoglinBrain;makeRandomWalkTask()Lnet/minecraft/entity/ai/brain/task/RandomTask;
    • refreshActivities

      protected static void refreshActivities​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgc;a(Lbgb;)V
      intermediary method_24664 Lnet/minecraft/class_4835;method_24664(Lnet/minecraft/class_4760;)V
      named refreshActivities Lnet/minecraft/entity/mob/HoglinBrain;refreshActivities(Lnet/minecraft/entity/mob/HoglinEntity;)V
    • onAttacking

      protected static void onAttacking​(HoglinEntity hoglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgc;a(Lbgb;Lari;)V
      intermediary method_24665 Lnet/minecraft/class_4835;method_24665(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named onAttacking Lnet/minecraft/entity/mob/HoglinBrain;onAttacking(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • askAdultsToAvoid

      private static void askAdultsToAvoid​(HoglinEntity hoglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgc;c(Lbgb;Lari;)V
      intermediary method_24675 Lnet/minecraft/class_4835;method_24675(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named askAdultsToAvoid Lnet/minecraft/entity/mob/HoglinBrain;askAdultsToAvoid(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • avoidEnemy

      private static void avoidEnemy​(HoglinEntity hoglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgc;d(Lbgb;Lari;)V
      intermediary method_24678 Lnet/minecraft/class_4835;method_24678(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named avoidEnemy Lnet/minecraft/entity/mob/HoglinBrain;avoidEnemy(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • avoid

      private static void avoid​(HoglinEntity hoglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgc;e(Lbgb;Lari;)V
      intermediary method_24681 Lnet/minecraft/class_4835;method_24681(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named avoid Lnet/minecraft/entity/mob/HoglinBrain;avoid(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • getNearestVisibleTargetablePlayer

      private static Optional<? extends LivingEntity> getNearestVisibleTargetablePlayer​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgc;d(Lbgb;)Ljava/util/Optional;
      intermediary method_24684 Lnet/minecraft/class_4835;method_24684(Lnet/minecraft/class_4760;)Ljava/util/Optional;
      named getNearestVisibleTargetablePlayer Lnet/minecraft/entity/mob/HoglinBrain;getNearestVisibleTargetablePlayer(Lnet/minecraft/entity/mob/HoglinEntity;)Ljava/util/Optional;
    • isWarpedFungusAround

      static boolean isWarpedFungusAround​(HoglinEntity hoglin, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgc;a(Lbgb;Lfx;)Z
      intermediary method_24669 Lnet/minecraft/class_4835;method_24669(Lnet/minecraft/class_4760;Lnet/minecraft/class_2338;)Z
      named isWarpedFungusAround Lnet/minecraft/entity/mob/HoglinBrain;isWarpedFungusAround(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/util/math/BlockPos;)Z
    • isLoneAdult

      private static boolean isLoneAdult​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgc;e(Lbgb;)Z
      intermediary method_25947 Lnet/minecraft/class_4835;method_25947(Lnet/minecraft/class_4760;)Z
      named isLoneAdult Lnet/minecraft/entity/mob/HoglinBrain;isLoneAdult(Lnet/minecraft/entity/mob/HoglinEntity;)Z
    • hasMoreHoglinsAround

      private static boolean hasMoreHoglinsAround​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official f Lbgc;f(Lbgb;)Z
      intermediary method_24686 Lnet/minecraft/class_4835;method_24686(Lnet/minecraft/class_4760;)Z
      named hasMoreHoglinsAround Lnet/minecraft/entity/mob/HoglinBrain;hasMoreHoglinsAround(Lnet/minecraft/entity/mob/HoglinEntity;)Z
    • onAttacked

      protected static void onAttacked​(HoglinEntity hoglin, LivingEntity attacker)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgc;b(Lbgb;Lari;)V
      intermediary method_24672 Lnet/minecraft/class_4835;method_24672(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named onAttacked Lnet/minecraft/entity/mob/HoglinBrain;onAttacked(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • targetEnemy

      private static void targetEnemy​(HoglinEntity hoglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official f Lbgc;f(Lbgb;Lari;)V
      intermediary method_24683 Lnet/minecraft/class_4835;method_24683(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named targetEnemy Lnet/minecraft/entity/mob/HoglinBrain;targetEnemy(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • setAttackTarget

      private static void setAttackTarget​(HoglinEntity hoglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official g Lbgc;g(Lbgb;Lari;)V
      intermediary method_24685 Lnet/minecraft/class_4835;method_24685(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named setAttackTarget Lnet/minecraft/entity/mob/HoglinBrain;setAttackTarget(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • askAdultsForHelp

      private static void askAdultsForHelp​(HoglinEntity hoglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official h Lbgc;h(Lbgb;Lari;)V
      intermediary method_24687 Lnet/minecraft/class_4835;method_24687(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named askAdultsForHelp Lnet/minecraft/entity/mob/HoglinBrain;askAdultsForHelp(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • setAttackTargetIfCloser

      private static void setAttackTargetIfCloser​(HoglinEntity hoglin, LivingEntity targetCandidate)
      Mappings:
      Namespace Name Mixin selector
      official i Lbgc;i(Lbgb;Lari;)V
      intermediary method_24689 Lnet/minecraft/class_4835;method_24689(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
      named setAttackTargetIfCloser Lnet/minecraft/entity/mob/HoglinBrain;setAttackTargetIfCloser(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • getSoundEvent

      public static Optional<SoundEvent> getSoundEvent​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgc;b(Lbgb;)Ljava/util/Optional;
      intermediary method_30083 Lnet/minecraft/class_4835;method_30083(Lnet/minecraft/class_4760;)Ljava/util/Optional;
      named getSoundEvent Lnet/minecraft/entity/mob/HoglinBrain;getSoundEvent(Lnet/minecraft/entity/mob/HoglinEntity;)Ljava/util/Optional;
    • getSoundEvent

      private static SoundEvent getSoundEvent​(HoglinEntity hoglin, Activity activity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgc;a(Lbgb;Lbiu;)Laef;
      intermediary method_30082 Lnet/minecraft/class_4835;method_30082(Lnet/minecraft/class_4760;Lnet/minecraft/class_4168;)Lnet/minecraft/class_3414;
      named getSoundEvent Lnet/minecraft/entity/mob/HoglinBrain;getSoundEvent(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/ai/brain/Activity;)Lnet/minecraft/sound/SoundEvent;
    • getAdultHoglinsAround

      private static List<HoglinEntity> getAdultHoglinsAround​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official g Lbgc;g(Lbgb;)Ljava/util/List;
      intermediary method_24690 Lnet/minecraft/class_4835;method_24690(Lnet/minecraft/class_4760;)Ljava/util/List;
      named getAdultHoglinsAround Lnet/minecraft/entity/mob/HoglinBrain;getAdultHoglinsAround(Lnet/minecraft/entity/mob/HoglinEntity;)Ljava/util/List;
    • hasNearestRepellent

      private static boolean hasNearestRepellent​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official h Lbgc;h(Lbgb;)Z
      intermediary method_30085 Lnet/minecraft/class_4835;method_30085(Lnet/minecraft/class_4760;)Z
      named hasNearestRepellent Lnet/minecraft/entity/mob/HoglinBrain;hasNearestRepellent(Lnet/minecraft/entity/mob/HoglinEntity;)Z
    • hasBreedTarget

      private static boolean hasBreedTarget​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official i Lbgc;i(Lbgb;)Z
      intermediary method_24691 Lnet/minecraft/class_4835;method_24691(Lnet/minecraft/class_4760;)Z
      named hasBreedTarget Lnet/minecraft/entity/mob/HoglinBrain;hasBreedTarget(Lnet/minecraft/entity/mob/HoglinEntity;)Z
    • isNearPlayer

      protected static boolean isNearPlayer​(HoglinEntity hoglin)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgc;c(Lbgb;)Z
      intermediary method_24677 Lnet/minecraft/class_4835;method_24677(Lnet/minecraft/class_4760;)Z
      named isNearPlayer Lnet/minecraft/entity/mob/HoglinBrain;isNearPlayer(Lnet/minecraft/entity/mob/HoglinEntity;)Z