Class PiglinBrain

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

public class PiglinBrain
extends Object
Mappings:
Namespace Name
official bgi
intermediary net/minecraft/class_4838
named net/minecraft/entity/mob/PiglinBrain
  • Field Details

    • BARTERING_ITEM

      public static final Item BARTERING_ITEM
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a:Lbnr;
      intermediary field_23826 Lnet/minecraft/class_4838;field_23826:Lnet/minecraft/class_1792;
      named BARTERING_ITEM Lnet/minecraft/entity/mob/PiglinBrain;BARTERING_ITEM:Lnet/minecraft/item/Item;
    • HUNT_MEMORY_DURATION

      private static final IntRange HUNT_MEMORY_DURATION
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b:Lafy;
      intermediary field_22388 Lnet/minecraft/class_4838;field_22388:Lnet/minecraft/class_4801;
      named HUNT_MEMORY_DURATION Lnet/minecraft/entity/mob/PiglinBrain;HUNT_MEMORY_DURATION:Lnet/minecraft/util/math/IntRange;
    • MEMORY_TRANSFER_TASK_DURATION

      private static final IntRange MEMORY_TRANSFER_TASK_DURATION
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c:Lafy;
      intermediary field_22389 Lnet/minecraft/class_4838;field_22389:Lnet/minecraft/class_4801;
      named MEMORY_TRANSFER_TASK_DURATION Lnet/minecraft/entity/mob/PiglinBrain;MEMORY_TRANSFER_TASK_DURATION:Lnet/minecraft/util/math/IntRange;
    • RIDE_TARGET_MEMORY_DURATION

      private static final IntRange RIDE_TARGET_MEMORY_DURATION
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d:Lafy;
      intermediary field_22390 Lnet/minecraft/class_4838;field_22390:Lnet/minecraft/class_4801;
      named RIDE_TARGET_MEMORY_DURATION Lnet/minecraft/entity/mob/PiglinBrain;RIDE_TARGET_MEMORY_DURATION:Lnet/minecraft/util/math/IntRange;
    • AVOID_MEMORY_DURATION

      private static final IntRange AVOID_MEMORY_DURATION
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e:Lafy;
      intermediary field_22391 Lnet/minecraft/class_4838;field_22391:Lnet/minecraft/class_4801;
      named AVOID_MEMORY_DURATION Lnet/minecraft/entity/mob/PiglinBrain;AVOID_MEMORY_DURATION:Lnet/minecraft/util/math/IntRange;
    • GO_TO_ZOMBIFIED_MEMORY_DURATION

      private static final IntRange GO_TO_ZOMBIFIED_MEMORY_DURATION
      Mappings:
      Namespace Name Mixin selector
      official f Lbgi;f:Lafy;
      intermediary field_25384 Lnet/minecraft/class_4838;field_25384:Lnet/minecraft/class_4801;
      named GO_TO_ZOMBIFIED_MEMORY_DURATION Lnet/minecraft/entity/mob/PiglinBrain;GO_TO_ZOMBIFIED_MEMORY_DURATION:Lnet/minecraft/util/math/IntRange;
    • GO_TO_NEMESIS_MEMORY_DURATION

      private static final IntRange GO_TO_NEMESIS_MEMORY_DURATION
      Mappings:
      Namespace Name Mixin selector
      official g Lbgi;g:Lafy;
      intermediary field_25698 Lnet/minecraft/class_4838;field_25698:Lnet/minecraft/class_4801;
      named GO_TO_NEMESIS_MEMORY_DURATION Lnet/minecraft/entity/mob/PiglinBrain;GO_TO_NEMESIS_MEMORY_DURATION:Lnet/minecraft/util/math/IntRange;
  • Constructor Details

    • PiglinBrain

      public PiglinBrain()
  • Method Details

    • create

      protected static Brain<?> create​(PiglinEntity piglin, Brain<PiglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Lasc;)Lasc;
      intermediary method_24732 Lnet/minecraft/class_4838;method_24732(Lnet/minecraft/class_4836;Lnet/minecraft/class_4095;)Lnet/minecraft/class_4095;
      named create Lnet/minecraft/entity/mob/PiglinBrain;create(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/ai/brain/Brain;)Lnet/minecraft/entity/ai/brain/Brain;
    • setHuntedRecently

      protected static void setHuntedRecently​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;)V
      intermediary method_24736 Lnet/minecraft/class_4838;method_24736(Lnet/minecraft/class_4836;)V
      named setHuntedRecently Lnet/minecraft/entity/mob/PiglinBrain;setHuntedRecently(Lnet/minecraft/entity/mob/PiglinEntity;)V
    • addCoreActivities

      private static void addCoreActivities​(Brain<PiglinEntity> piglin)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lasc;)V
      intermediary method_24725 Lnet/minecraft/class_4838;method_24725(Lnet/minecraft/class_4095;)V
      named addCoreActivities Lnet/minecraft/entity/mob/PiglinBrain;addCoreActivities(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addIdleActivities

      private static void addIdleActivities​(Brain<PiglinEntity> piglin)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lasc;)V
      intermediary method_24743 Lnet/minecraft/class_4838;method_24743(Lnet/minecraft/class_4095;)V
      named addIdleActivities Lnet/minecraft/entity/mob/PiglinBrain;addIdleActivities(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addFightActivities

      private static void addFightActivities​(PiglinEntity piglin, Brain<PiglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbgh;Lasc;)V
      intermediary method_24751 Lnet/minecraft/class_4838;method_24751(Lnet/minecraft/class_4836;Lnet/minecraft/class_4095;)V
      named addFightActivities Lnet/minecraft/entity/mob/PiglinBrain;addFightActivities(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/ai/brain/Brain;)V
    • addCelebrateActivities

      private static void addCelebrateActivities​(Brain<PiglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lasc;)V
      intermediary method_24756 Lnet/minecraft/class_4838;method_24756(Lnet/minecraft/class_4095;)V
      named addCelebrateActivities Lnet/minecraft/entity/mob/PiglinBrain;addCelebrateActivities(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addAdmireItemActivities

      private static void addAdmireItemActivities​(Brain<PiglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d(Lasc;)V
      intermediary method_24760 Lnet/minecraft/class_4838;method_24760(Lnet/minecraft/class_4095;)V
      named addAdmireItemActivities Lnet/minecraft/entity/mob/PiglinBrain;addAdmireItemActivities(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addAvoidActivities

      private static void addAvoidActivities​(Brain<PiglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e(Lasc;)V
      intermediary method_24764 Lnet/minecraft/class_4838;method_24764(Lnet/minecraft/class_4095;)V
      named addAvoidActivities Lnet/minecraft/entity/mob/PiglinBrain;addAvoidActivities(Lnet/minecraft/entity/ai/brain/Brain;)V
    • addRideActivities

      private static void addRideActivities​(Brain<PiglinEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      official f Lbgi;f(Lasc;)V
      intermediary method_24768 Lnet/minecraft/class_4838;method_24768(Lnet/minecraft/class_4095;)V
      named addRideActivities Lnet/minecraft/entity/mob/PiglinBrain;addRideActivities(Lnet/minecraft/entity/ai/brain/Brain;)V
    • makeRandomFollowTask

      private static RandomTask<PiglinEntity> makeRandomFollowTask()
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a()Laui;
      intermediary method_24717 Lnet/minecraft/class_4838;method_24717()Lnet/minecraft/class_4118;
      named makeRandomFollowTask Lnet/minecraft/entity/mob/PiglinBrain;makeRandomFollowTask()Lnet/minecraft/entity/ai/brain/task/RandomTask;
    • makeRandomWanderTask

      private static RandomTask<PiglinEntity> makeRandomWanderTask()
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b()Laui;
      intermediary method_24718 Lnet/minecraft/class_4838;method_24718()Lnet/minecraft/class_4118;
      named makeRandomWanderTask Lnet/minecraft/entity/mob/PiglinBrain;makeRandomWanderTask()Lnet/minecraft/entity/ai/brain/task/RandomTask;
    • makeGoToSoulFireTask

      private static GoToRememberedPositionTask<BlockPos> makeGoToSoulFireTask()
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c()Laup;
      intermediary method_24738 Lnet/minecraft/class_4838;method_24738()Lnet/minecraft/class_4121;
      named makeGoToSoulFireTask Lnet/minecraft/entity/mob/PiglinBrain;makeGoToSoulFireTask()Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;
    • goToNemesisTask

      private static MemoryTransferTask<PiglinEntity,​LivingEntity> goToNemesisTask()
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d()Lasw;
      intermediary method_30090 Lnet/minecraft/class_4838;method_30090()Lnet/minecraft/class_4809;
      named goToNemesisTask Lnet/minecraft/entity/mob/PiglinBrain;goToNemesisTask()Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;
    • makeGoToZombifiedPiglinTask

      private static MemoryTransferTask<PiglinEntity,​LivingEntity> makeGoToZombifiedPiglinTask()
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e()Lasw;
      intermediary method_24747 Lnet/minecraft/class_4838;method_24747()Lnet/minecraft/class_4809;
      named makeGoToZombifiedPiglinTask Lnet/minecraft/entity/mob/PiglinBrain;makeGoToZombifiedPiglinTask()Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;
    • tickActivities

      protected static void tickActivities​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbgh;)V
      intermediary method_24722 Lnet/minecraft/class_4838;method_24722(Lnet/minecraft/class_4836;)V
      named tickActivities Lnet/minecraft/entity/mob/PiglinBrain;tickActivities(Lnet/minecraft/entity/mob/PiglinEntity;)V
    • canRideHoglin

      private static boolean canRideHoglin​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official h Lbgi;h(Lbgh;)Z
      intermediary method_29277 Lnet/minecraft/class_4838;method_29277(Lnet/minecraft/class_4836;)Z
      named canRideHoglin Lnet/minecraft/entity/mob/PiglinBrain;canRideHoglin(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • loot

      protected static void loot​(PiglinEntity piglin, ItemEntity drop)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Lbek;)V
      intermediary method_24726 Lnet/minecraft/class_4838;method_24726(Lnet/minecraft/class_4836;Lnet/minecraft/class_1542;)V
      named loot Lnet/minecraft/entity/mob/PiglinBrain;loot(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/ItemEntity;)V
    • swapItemWithOffHand

      private static void swapItemWithOffHand​(PiglinEntity piglin, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lbgh;Lbnv;)V
      intermediary method_30089 Lnet/minecraft/class_4838;method_30089(Lnet/minecraft/class_4836;Lnet/minecraft/class_1799;)V
      named swapItemWithOffHand Lnet/minecraft/entity/mob/PiglinBrain;swapItemWithOffHand(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/item/ItemStack;)V
    • getItemFromStack

      private static ItemStack getItemFromStack​(ItemEntity stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbek;)Lbnv;
      intermediary method_24848 Lnet/minecraft/class_4838;method_24848(Lnet/minecraft/class_1542;)Lnet/minecraft/class_1799;
      named getItemFromStack Lnet/minecraft/entity/mob/PiglinBrain;getItemFromStack(Lnet/minecraft/entity/ItemEntity;)Lnet/minecraft/item/ItemStack;
    • consumeOffHandItem

      protected static void consumeOffHandItem​(PiglinEntity piglin, boolean barter)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Z)V
      intermediary method_24741 Lnet/minecraft/class_4838;method_24741(Lnet/minecraft/class_4836;Z)V
      named consumeOffHandItem Lnet/minecraft/entity/mob/PiglinBrain;consumeOffHandItem(Lnet/minecraft/entity/mob/PiglinEntity;Z)V
    • pickupItemWithOffHand

      protected static void pickupItemWithOffHand​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lbgh;)V
      intermediary method_25948 Lnet/minecraft/class_4838;method_25948(Lnet/minecraft/class_4836;)V
      named pickupItemWithOffHand Lnet/minecraft/entity/mob/PiglinBrain;pickupItemWithOffHand(Lnet/minecraft/entity/mob/PiglinEntity;)V
    • barterItem

      private static void barterItem​(PiglinEntity piglin, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d(Lbgh;Lbnv;)V
      intermediary method_24849 Lnet/minecraft/class_4838;method_24849(Lnet/minecraft/class_4836;Lnet/minecraft/class_1799;)V
      named barterItem Lnet/minecraft/entity/mob/PiglinBrain;barterItem(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/item/ItemStack;)V
    • doBarter

      private static void doBarter​(PiglinEntity piglin, List<ItemStack> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Ljava/util/List;)V
      intermediary method_24772 Lnet/minecraft/class_4838;method_24772(Lnet/minecraft/class_4836;Ljava/util/List;)V
      named doBarter Lnet/minecraft/entity/mob/PiglinBrain;doBarter(Lnet/minecraft/entity/mob/PiglinEntity;Ljava/util/List;)V
    • dropBarteredItem

      private static void dropBarteredItem​(PiglinEntity piglin, List<ItemStack> list)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbgh;Ljava/util/List;)V
      intermediary method_24774 Lnet/minecraft/class_4838;method_24774(Lnet/minecraft/class_4836;Ljava/util/List;)V
      named dropBarteredItem Lnet/minecraft/entity/mob/PiglinBrain;dropBarteredItem(Lnet/minecraft/entity/mob/PiglinEntity;Ljava/util/List;)V
    • dropBarteredItem

      private static void dropBarteredItem​(PiglinEntity piglin, PlayerEntity player, List<ItemStack> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Lbhl;Ljava/util/List;)V
      intermediary method_24727 Lnet/minecraft/class_4838;method_24727(Lnet/minecraft/class_4836;Lnet/minecraft/class_1657;Ljava/util/List;)V
      named dropBarteredItem Lnet/minecraft/entity/mob/PiglinBrain;dropBarteredItem(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;)V
    • drop

      private static void drop​(PiglinEntity piglin, List<ItemStack> list, Vec3d vec3d)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Ljava/util/List;Ldiu;)V
      intermediary method_24731 Lnet/minecraft/class_4838;method_24731(Lnet/minecraft/class_4836;Ljava/util/List;Lnet/minecraft/class_243;)V
      named drop Lnet/minecraft/entity/mob/PiglinBrain;drop(Lnet/minecraft/entity/mob/PiglinEntity;Ljava/util/List;Lnet/minecraft/util/math/Vec3d;)V
    • getBarteredItem

      private static List<ItemStack> getBarteredItem​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official i Lbgi;i(Lbgh;)Ljava/util/List;
      intermediary method_24776 Lnet/minecraft/class_4838;method_24776(Lnet/minecraft/class_4836;)Ljava/util/List;
      named getBarteredItem Lnet/minecraft/entity/mob/PiglinBrain;getBarteredItem(Lnet/minecraft/entity/mob/PiglinEntity;)Ljava/util/List;
    • isHuntingTarget

      private static boolean isHuntingTarget​(LivingEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lari;Lari;)Z
      intermediary method_29276 Lnet/minecraft/class_4838;method_29276(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      named isHuntingTarget Lnet/minecraft/entity/mob/PiglinBrain;isHuntingTarget(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
    • canGather

      protected static boolean canGather​(PiglinEntity piglin, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Lbnv;)Z
      intermediary method_24730 Lnet/minecraft/class_4838;method_24730(Lnet/minecraft/class_4836;Lnet/minecraft/class_1799;)Z
      named canGather Lnet/minecraft/entity/mob/PiglinBrain;canGather(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/item/ItemStack;)Z
    • isGoldenItem

      protected static boolean isGoldenItem​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbnv;)Z
      intermediary method_24735 Lnet/minecraft/class_4838;method_24735(Lnet/minecraft/class_1799;)Z
      named isGoldenItem Lnet/minecraft/entity/mob/PiglinBrain;isGoldenItem(Lnet/minecraft/item/ItemStack;)Z
    • canRide

      private static boolean canRide​(PiglinEntity piglin, Entity ridden)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Laqv;)Z
      intermediary method_24723 Lnet/minecraft/class_4838;method_24723(Lnet/minecraft/class_4836;Lnet/minecraft/class_1297;)Z
      named canRide Lnet/minecraft/entity/mob/PiglinBrain;canRide(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/Entity;)Z
    • isPreferredAttackTarget

      private static boolean isPreferredAttackTarget​(PiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbgh;Lari;)Z
      intermediary method_24755 Lnet/minecraft/class_4838;method_24755(Lnet/minecraft/class_4836;Lnet/minecraft/class_1309;)Z
      named isPreferredAttackTarget Lnet/minecraft/entity/mob/PiglinBrain;isPreferredAttackTarget(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/LivingEntity;)Z
    • getNearestZombifiedPiglin

      private static boolean getNearestZombifiedPiglin​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official j Lbgi;j(Lbgh;)Z
      intermediary method_29537 Lnet/minecraft/class_4838;method_29537(Lnet/minecraft/class_4836;)Z
      named getNearestZombifiedPiglin Lnet/minecraft/entity/mob/PiglinBrain;getNearestZombifiedPiglin(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • getPreferredTarget

      private static Optional<? extends LivingEntity> getPreferredTarget​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official k Lbgi;k(Lbgh;)Ljava/util/Optional;
      intermediary method_24777 Lnet/minecraft/class_4838;method_24777(Lnet/minecraft/class_4836;)Ljava/util/Optional;
      named getPreferredTarget Lnet/minecraft/entity/mob/PiglinBrain;getPreferredTarget(Lnet/minecraft/entity/mob/PiglinEntity;)Ljava/util/Optional;
    • onGuardedBlockInteracted

      public static void onGuardedBlockInteracted​(PlayerEntity player, boolean blockOpen)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbhl;Z)V
      intermediary method_24733 Lnet/minecraft/class_4838;method_24733(Lnet/minecraft/class_1657;Z)V
      named onGuardedBlockInteracted Lnet/minecraft/entity/mob/PiglinBrain;onGuardedBlockInteracted(Lnet/minecraft/entity/player/PlayerEntity;Z)V
    • playerInteract

      public static ActionResult playerInteract​(PiglinEntity piglin, PlayerEntity player, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Lbhl;Lapp;)Lapq;
      intermediary method_24728 Lnet/minecraft/class_4838;method_24728(Lnet/minecraft/class_4836;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named playerInteract Lnet/minecraft/entity/mob/PiglinBrain;playerInteract(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • isWillingToTrade

      protected static boolean isWillingToTrade​(PiglinEntity piglin, ItemStack nearbyItems)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbgh;Lbnv;)Z
      intermediary method_27086 Lnet/minecraft/class_4838;method_27086(Lnet/minecraft/class_4836;Lnet/minecraft/class_1799;)Z
      named isWillingToTrade Lnet/minecraft/entity/mob/PiglinBrain;isWillingToTrade(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/item/ItemStack;)Z
    • onAttacked

      protected static void onAttacked​(PiglinEntity piglin, LivingEntity attacker)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Lari;)V
      intermediary method_24724 Lnet/minecraft/class_4838;method_24724(Lnet/minecraft/class_4836;Lnet/minecraft/class_1309;)V
      named onAttacked Lnet/minecraft/entity/mob/PiglinBrain;onAttacked(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • tryRevenge

      protected static void tryRevenge​(AbstractPiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgg;Lari;)V
      intermediary method_24759 Lnet/minecraft/class_4838;method_24759(Lnet/minecraft/class_5418;Lnet/minecraft/class_1309;)V
      named tryRevenge Lnet/minecraft/entity/mob/PiglinBrain;tryRevenge(Lnet/minecraft/entity/mob/AbstractPiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • getCurrentActivitySound

      public static Optional<SoundEvent> getCurrentActivitySound​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d(Lbgh;)Ljava/util/Optional;
      intermediary method_30091 Lnet/minecraft/class_4838;method_30091(Lnet/minecraft/class_4836;)Ljava/util/Optional;
      named getCurrentActivitySound Lnet/minecraft/entity/mob/PiglinBrain;getCurrentActivitySound(Lnet/minecraft/entity/mob/PiglinEntity;)Ljava/util/Optional;
    • getSound

      private static SoundEvent getSound​(PiglinEntity piglin, Activity activity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgh;Lbiu;)Laef;
      intermediary method_30087 Lnet/minecraft/class_4838;method_30087(Lnet/minecraft/class_4836;Lnet/minecraft/class_4168;)Lnet/minecraft/class_3414;
      named getSound Lnet/minecraft/entity/mob/PiglinBrain;getSound(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/ai/brain/Activity;)Lnet/minecraft/sound/SoundEvent;
    • hasTargetToAvoid

      private static boolean hasTargetToAvoid​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official l Lbgi;l(Lbgh;)Z
      intermediary method_29538 Lnet/minecraft/class_4838;method_29538(Lnet/minecraft/class_4836;)Z
      named hasTargetToAvoid Lnet/minecraft/entity/mob/PiglinBrain;hasTargetToAvoid(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • haveHuntedHoglinsRecently

      protected static boolean haveHuntedHoglinsRecently​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e(Lbgh;)Z
      intermediary method_24754 Lnet/minecraft/class_4838;method_24754(Lnet/minecraft/class_4836;)Z
      named haveHuntedHoglinsRecently Lnet/minecraft/entity/mob/PiglinBrain;haveHuntedHoglinsRecently(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • getNearbyVisiblePiglins

      private static List<AbstractPiglinEntity> getNearbyVisiblePiglins​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official m Lbgi;m(Lbgh;)Ljava/util/List;
      intermediary method_24780 Lnet/minecraft/class_4838;method_24780(Lnet/minecraft/class_4836;)Ljava/util/List;
      named getNearbyVisiblePiglins Lnet/minecraft/entity/mob/PiglinBrain;getNearbyVisiblePiglins(Lnet/minecraft/entity/mob/PiglinEntity;)Ljava/util/List;
    • getNearbyPiglins

      private static List<AbstractPiglinEntity> getNearbyPiglins​(AbstractPiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e(Lbgg;)Ljava/util/List;
      intermediary method_26350 Lnet/minecraft/class_4838;method_26350(Lnet/minecraft/class_5418;)Ljava/util/List;
      named getNearbyPiglins Lnet/minecraft/entity/mob/PiglinBrain;getNearbyPiglins(Lnet/minecraft/entity/mob/AbstractPiglinEntity;)Ljava/util/List;
    • wearsGoldArmor

      public static boolean wearsGoldArmor​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lari;)Z
      intermediary method_24719 Lnet/minecraft/class_4838;method_24719(Lnet/minecraft/class_1309;)Z
      named wearsGoldArmor Lnet/minecraft/entity/mob/PiglinBrain;wearsGoldArmor(Lnet/minecraft/entity/LivingEntity;)Z
    • stopWalking

      private static void stopWalking​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official n Lbgi;n(Lbgh;)V
      intermediary method_24781 Lnet/minecraft/class_4838;method_24781(Lnet/minecraft/class_4836;)V
      named stopWalking Lnet/minecraft/entity/mob/PiglinBrain;stopWalking(Lnet/minecraft/entity/mob/PiglinEntity;)V
    • makeRememberRideableHoglinTask

      private static TimeLimitedTask<PiglinEntity> makeRememberRideableHoglinTask()
      Mappings:
      Namespace Name Mixin selector
      official f Lbgi;f()Lauj;
      intermediary method_24737 Lnet/minecraft/class_4838;method_24737()Lnet/minecraft/class_4821;
      named makeRememberRideableHoglinTask Lnet/minecraft/entity/mob/PiglinBrain;makeRememberRideableHoglinTask()Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;
    • angerAtCloserTargets

      protected static void angerAtCloserTargets​(AbstractPiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbgg;Lari;)V
      intermediary method_24742 Lnet/minecraft/class_4838;method_24742(Lnet/minecraft/class_5418;Lnet/minecraft/class_1309;)V
      named angerAtCloserTargets Lnet/minecraft/entity/mob/PiglinBrain;angerAtCloserTargets(Lnet/minecraft/entity/mob/AbstractPiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • angerNearbyPiglins

      protected static void angerNearbyPiglins​(AbstractPiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lbgg;)V
      intermediary method_29945 Lnet/minecraft/class_4838;method_29945(Lnet/minecraft/class_5418;)V
      named angerNearbyPiglins Lnet/minecraft/entity/mob/PiglinBrain;angerNearbyPiglins(Lnet/minecraft/entity/mob/AbstractPiglinEntity;)V
    • rememberGroupHunting

      protected static void rememberGroupHunting​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official f Lbgi;f(Lbgh;)V
      intermediary method_24758 Lnet/minecraft/class_4838;method_24758(Lnet/minecraft/class_4836;)V
      named rememberGroupHunting Lnet/minecraft/entity/mob/PiglinBrain;rememberGroupHunting(Lnet/minecraft/entity/mob/PiglinEntity;)V
    • becomeAngryWith

      protected static void becomeAngryWith​(AbstractPiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lbgg;Lari;)V
      intermediary method_24750 Lnet/minecraft/class_4838;method_24750(Lnet/minecraft/class_5418;Lnet/minecraft/class_1309;)V
      named becomeAngryWith Lnet/minecraft/entity/mob/PiglinBrain;becomeAngryWith(Lnet/minecraft/entity/mob/AbstractPiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • becomeAngryWithPlayer

      private static void becomeAngryWithPlayer​(AbstractPiglinEntity piglin, LivingEntity player)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d(Lbgg;Lari;)V
      intermediary method_29946 Lnet/minecraft/class_4838;method_29946(Lnet/minecraft/class_5418;Lnet/minecraft/class_1309;)V
      named becomeAngryWithPlayer Lnet/minecraft/entity/mob/PiglinBrain;becomeAngryWithPlayer(Lnet/minecraft/entity/mob/AbstractPiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • angerAtIfCloser

      private static void angerAtIfCloser​(AbstractPiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e(Lbgg;Lari;)V
      intermediary method_24763 Lnet/minecraft/class_4838;method_24763(Lnet/minecraft/class_5418;Lnet/minecraft/class_1309;)V
      named angerAtIfCloser Lnet/minecraft/entity/mob/PiglinBrain;angerAtIfCloser(Lnet/minecraft/entity/mob/AbstractPiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • getAngryAt

      private static Optional<LivingEntity> getAngryAt​(AbstractPiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official f Lbgi;f(Lbgg;)Ljava/util/Optional;
      intermediary method_24782 Lnet/minecraft/class_4838;method_24782(Lnet/minecraft/class_5418;)Ljava/util/Optional;
      named getAngryAt Lnet/minecraft/entity/mob/PiglinBrain;getAngryAt(Lnet/minecraft/entity/mob/AbstractPiglinEntity;)Ljava/util/Optional;
    • getAvoiding

      public static Optional<LivingEntity> getAvoiding​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official g Lbgi;g(Lbgh;)Ljava/util/Optional;
      intermediary method_29536 Lnet/minecraft/class_4838;method_29536(Lnet/minecraft/class_4836;)Ljava/util/Optional;
      named getAvoiding Lnet/minecraft/entity/mob/PiglinBrain;getAvoiding(Lnet/minecraft/entity/mob/PiglinEntity;)Ljava/util/Optional;
    • getNearestDetectedPlayer

      public static Optional<PlayerEntity> getNearestDetectedPlayer​(AbstractPiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbgg;)Ljava/util/Optional;
      intermediary method_29947 Lnet/minecraft/class_4838;method_29947(Lnet/minecraft/class_5418;)Ljava/util/Optional;
      named getNearestDetectedPlayer Lnet/minecraft/entity/mob/PiglinBrain;getNearestDetectedPlayer(Lnet/minecraft/entity/mob/AbstractPiglinEntity;)Ljava/util/Optional;
    • groupRunAwayFrom

      private static void groupRunAwayFrom​(PiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lbgh;Lari;)V
      intermediary method_24767 Lnet/minecraft/class_4838;method_24767(Lnet/minecraft/class_4836;Lnet/minecraft/class_1309;)V
      named groupRunAwayFrom Lnet/minecraft/entity/mob/PiglinBrain;groupRunAwayFrom(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • runAwayFromClosestTarget

      private static void runAwayFromClosestTarget​(PiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d(Lbgh;Lari;)V
      intermediary method_24771 Lnet/minecraft/class_4838;method_24771(Lnet/minecraft/class_4836;Lnet/minecraft/class_1309;)V
      named runAwayFromClosestTarget Lnet/minecraft/entity/mob/PiglinBrain;runAwayFromClosestTarget(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • shouldRunAwayFromHoglins

      private static boolean shouldRunAwayFromHoglins​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official o Lbgi;o(Lbgh;)Z
      intermediary method_24783 Lnet/minecraft/class_4838;method_24783(Lnet/minecraft/class_4836;)Z
      named shouldRunAwayFromHoglins Lnet/minecraft/entity/mob/PiglinBrain;shouldRunAwayFromHoglins(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • hasNoAdvantageAgainstHoglins

      private static boolean hasNoAdvantageAgainstHoglins​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official p Lbgi;p(Lbgh;)Z
      intermediary method_24784 Lnet/minecraft/class_4838;method_24784(Lnet/minecraft/class_4836;)Z
      named hasNoAdvantageAgainstHoglins Lnet/minecraft/entity/mob/PiglinBrain;hasNoAdvantageAgainstHoglins(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • hasOutnumberedHoglins

      private static boolean hasOutnumberedHoglins​(PiglinEntity piglins)
      Mappings:
      Namespace Name Mixin selector
      official q Lbgi;q(Lbgh;)Z
      intermediary method_24785 Lnet/minecraft/class_4838;method_24785(Lnet/minecraft/class_4836;)Z
      named hasOutnumberedHoglins Lnet/minecraft/entity/mob/PiglinBrain;hasOutnumberedHoglins(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • runAwayFrom

      private static void runAwayFrom​(PiglinEntity piglin, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e(Lbgh;Lari;)V
      intermediary method_24773 Lnet/minecraft/class_4838;method_24773(Lnet/minecraft/class_4836;Lnet/minecraft/class_1309;)V
      named runAwayFrom Lnet/minecraft/entity/mob/PiglinBrain;runAwayFrom(Lnet/minecraft/entity/mob/PiglinEntity;Lnet/minecraft/entity/LivingEntity;)V
    • rememberHunting

      protected static void rememberHunting​(AbstractPiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lbgg;)V
      intermediary method_24762 Lnet/minecraft/class_4838;method_24762(Lnet/minecraft/class_5418;)V
      named rememberHunting Lnet/minecraft/entity/mob/PiglinBrain;rememberHunting(Lnet/minecraft/entity/mob/AbstractPiglinEntity;)V
    • setEatenRecently

      private static void setEatenRecently​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official s Lbgi;s(Lbgh;)V
      intermediary method_24787 Lnet/minecraft/class_4838;method_24787(Lnet/minecraft/class_4836;)V
      named setEatenRecently Lnet/minecraft/entity/mob/PiglinBrain;setEatenRecently(Lnet/minecraft/entity/mob/PiglinEntity;)V
    • findGround

      private static Vec3d findGround​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official t Lbgi;t(Lbgh;)Ldiu;
      intermediary method_24788 Lnet/minecraft/class_4838;method_24788(Lnet/minecraft/class_4836;)Lnet/minecraft/class_243;
      named findGround Lnet/minecraft/entity/mob/PiglinBrain;findGround(Lnet/minecraft/entity/mob/PiglinEntity;)Lnet/minecraft/util/math/Vec3d;
    • hasAteRecently

      private static boolean hasAteRecently​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official u Lbgi;u(Lbgh;)Z
      intermediary method_24789 Lnet/minecraft/class_4838;method_24789(Lnet/minecraft/class_4836;)Z
      named hasAteRecently Lnet/minecraft/entity/mob/PiglinBrain;hasAteRecently(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • hasIdleActivity

      protected static boolean hasIdleActivity​(AbstractPiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d(Lbgg;)Z
      intermediary method_24766 Lnet/minecraft/class_4838;method_24766(Lnet/minecraft/class_5418;)Z
      named hasIdleActivity Lnet/minecraft/entity/mob/PiglinBrain;hasIdleActivity(Lnet/minecraft/entity/mob/AbstractPiglinEntity;)Z
    • isHoldingCrossbow

      private static boolean isHoldingCrossbow​(LivingEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lari;)Z
      intermediary method_24748 Lnet/minecraft/class_4838;method_24748(Lnet/minecraft/class_1309;)Z
      named isHoldingCrossbow Lnet/minecraft/entity/mob/PiglinBrain;isHoldingCrossbow(Lnet/minecraft/entity/LivingEntity;)Z
    • setAdmiringItem

      private static void setAdmiringItem​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d(Lari;)V
      intermediary method_24753 Lnet/minecraft/class_4838;method_24753(Lnet/minecraft/class_1309;)V
      named setAdmiringItem Lnet/minecraft/entity/mob/PiglinBrain;setAdmiringItem(Lnet/minecraft/entity/LivingEntity;)V
    • isAdmiringItem

      private static boolean isAdmiringItem​(PiglinEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official v Lbgi;v(Lbgh;)Z
      intermediary method_24790 Lnet/minecraft/class_4838;method_24790(Lnet/minecraft/class_4836;)Z
      named isAdmiringItem Lnet/minecraft/entity/mob/PiglinBrain;isAdmiringItem(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • acceptsForBarter

      private static boolean acceptsForBarter​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lbnv;)Z
      intermediary method_24746 Lnet/minecraft/class_4838;method_24746(Lnet/minecraft/class_1799;)Z
      named acceptsForBarter Lnet/minecraft/entity/mob/PiglinBrain;acceptsForBarter(Lnet/minecraft/item/ItemStack;)Z
    • isFood

      private static boolean isFood​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgi;c(Lbnv;)Z
      intermediary method_24752 Lnet/minecraft/class_4838;method_24752(Lnet/minecraft/class_1799;)Z
      named isFood Lnet/minecraft/entity/mob/PiglinBrain;isFood(Lnet/minecraft/item/ItemStack;)Z
    • shouldAttack

      private static boolean shouldAttack​(LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e(Lari;)Z
      intermediary method_24757 Lnet/minecraft/class_4838;method_24757(Lnet/minecraft/class_1309;)Z
      named shouldAttack Lnet/minecraft/entity/mob/PiglinBrain;shouldAttack(Lnet/minecraft/entity/LivingEntity;)Z
    • hasSoulFireNearby

      private static boolean hasSoulFireNearby​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official w Lbgi;w(Lbgh;)Z
      intermediary method_24791 Lnet/minecraft/class_4838;method_24791(Lnet/minecraft/class_4836;)Z
      named hasSoulFireNearby Lnet/minecraft/entity/mob/PiglinBrain;hasSoulFireNearby(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • hasPlayerHoldingWantedItemNearby

      private static boolean hasPlayerHoldingWantedItemNearby​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official f Lbgi;f(Lari;)Z
      intermediary method_24761 Lnet/minecraft/class_4838;method_24761(Lnet/minecraft/class_1309;)Z
      named hasPlayerHoldingWantedItemNearby Lnet/minecraft/entity/mob/PiglinBrain;hasPlayerHoldingWantedItemNearby(Lnet/minecraft/entity/LivingEntity;)Z
    • canWander

      private static boolean canWander​(LivingEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official g Lbgi;g(Lari;)Z
      intermediary method_24765 Lnet/minecraft/class_4838;method_24765(Lnet/minecraft/class_1309;)Z
      named canWander Lnet/minecraft/entity/mob/PiglinBrain;canWander(Lnet/minecraft/entity/LivingEntity;)Z
    • isGoldHoldingPlayer

      public static boolean isGoldHoldingPlayer​(LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgi;b(Lari;)Z
      intermediary method_24739 Lnet/minecraft/class_4838;method_24739(Lnet/minecraft/class_1309;)Z
      named isGoldHoldingPlayer Lnet/minecraft/entity/mob/PiglinBrain;isGoldHoldingPlayer(Lnet/minecraft/entity/LivingEntity;)Z
    • hasBeenHitByPlayer

      private static boolean hasBeenHitByPlayer​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official x Lbgi;x(Lbgh;)Z
      intermediary method_24714 Lnet/minecraft/class_4838;method_24714(Lnet/minecraft/class_4836;)Z
      named hasBeenHitByPlayer Lnet/minecraft/entity/mob/PiglinBrain;hasBeenHitByPlayer(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • hasBeenHurt

      private static boolean hasBeenHurt​(LivingEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official h Lbgi;h(Lari;)Z
      intermediary method_24769 Lnet/minecraft/class_4838;method_24769(Lnet/minecraft/class_1309;)Z
      named hasBeenHurt Lnet/minecraft/entity/mob/PiglinBrain;hasBeenHurt(Lnet/minecraft/entity/LivingEntity;)Z
    • hasItemInOffHand

      private static boolean hasItemInOffHand​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official y Lbgi;y(Lbgh;)Z
      intermediary method_24917 Lnet/minecraft/class_4838;method_24917(Lnet/minecraft/class_4836;)Z
      named hasItemInOffHand Lnet/minecraft/entity/mob/PiglinBrain;hasItemInOffHand(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • doesNotHaveGoldInOffHand

      private static boolean doesNotHaveGoldInOffHand​(PiglinEntity piglin)
      Mappings:
      Namespace Name Mixin selector
      official z Lbgi;z(Lbgh;)Z
      intermediary method_24850 Lnet/minecraft/class_4838;method_24850(Lnet/minecraft/class_4836;)Z
      named doesNotHaveGoldInOffHand Lnet/minecraft/entity/mob/PiglinBrain;doesNotHaveGoldInOffHand(Lnet/minecraft/entity/mob/PiglinEntity;)Z
    • isZombified

      public static boolean isZombified​(EntityType<?> entityType)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Laqz;)Z
      intermediary method_29534 Lnet/minecraft/class_4838;method_29534(Lnet/minecraft/class_1299;)Z
      named isZombified Lnet/minecraft/entity/mob/PiglinBrain;isZombified(Lnet/minecraft/entity/EntityType;)Z