Class PiglinBruteEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Monster, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike

public class PiglinBruteEntity extends AbstractPiglinEntity
Mappings:
Namespace Name
named net/minecraft/entity/mob/PiglinBruteEntity
intermediary net/minecraft/class_5419
official cls
  • Field Details

    • MAX_HEALTH

      private static final int MAX_HEALTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_HEALTH Lnet/minecraft/entity/mob/PiglinBruteEntity;MAX_HEALTH:I
      intermediary field_30586 Lnet/minecraft/class_5419;field_30586:I
      official bZ Lcls;bZ:I
    • MOVEMENT_SPEED

      private static final float MOVEMENT_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MOVEMENT_SPEED Lnet/minecraft/entity/mob/PiglinBruteEntity;MOVEMENT_SPEED:F
      intermediary field_30587 Lnet/minecraft/class_5419;field_30587:F
      official ca Lcls;ca:F
    • ATTACK_DAMAGE

      private static final int ATTACK_DAMAGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ATTACK_DAMAGE Lnet/minecraft/entity/mob/PiglinBruteEntity;ATTACK_DAMAGE:I
      intermediary field_30588 Lnet/minecraft/class_5419;field_30588:I
      official cb Lcls;cb:I
    • SENSOR_TYPES

      protected static final ImmutableList<SensorType<? extends Sensor<? super PiglinBruteEntity>>> SENSOR_TYPES
      Mappings:
      Namespace Name Mixin selector
      named SENSOR_TYPES Lnet/minecraft/entity/mob/PiglinBruteEntity;SENSOR_TYPES:Lcom/google/common/collect/ImmutableList;
      intermediary field_25761 Lnet/minecraft/class_5419;field_25761:Lcom/google/common/collect/ImmutableList;
      official e Lcls;e:Lcom/google/common/collect/ImmutableList;
    • MEMORY_MODULE_TYPES

      protected static final ImmutableList<MemoryModuleType<?>> MEMORY_MODULE_TYPES
      Mappings:
      Namespace Name Mixin selector
      named MEMORY_MODULE_TYPES Lnet/minecraft/entity/mob/PiglinBruteEntity;MEMORY_MODULE_TYPES:Lcom/google/common/collect/ImmutableList;
      intermediary field_25760 Lnet/minecraft/class_5419;field_25760:Lcom/google/common/collect/ImmutableList;
      official bY Lcls;bY:Lcom/google/common/collect/ImmutableList;
  • Constructor Details

    • PiglinBruteEntity

      public PiglinBruteEntity(EntityType<? extends PiglinBruteEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbsw;<init>(Lbtc;Ldca;)V
  • Method Details

    • createPiglinBruteAttributes

      public static DefaultAttributeContainer.Builder createPiglinBruteAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createPiglinBruteAttributes Lnet/minecraft/entity/mob/PiglinBruteEntity;createPiglinBruteAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_30242 Lnet/minecraft/class_5419;method_30242()Lnet/minecraft/class_5132$class_5133;
      official y Lcls;y()Lbuy$a;
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbtt;a(Ldcp;Lbqu;Lbtv;Lbuk;)Lbuk;
    • initEquipment

      protected void initEquipment(Random random, LocalDifficulty localDifficulty)
      Overrides:
      initEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initEquipment Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_5964 Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Lbtt;a(Lazh;Lbqu;)V
    • createBrainProfile

      protected Brain.Profile<PiglinBruteEntity> createBrainProfile()
      Overrides:
      createBrainProfile in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named createBrainProfile Lnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
      intermediary method_28306 Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;
      official dT Lbtr;dT()Lbut$b;
    • deserializeBrain

      protected Brain<?> deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic)
      Overrides:
      deserializeBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named deserializeBrain Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_18867 Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
      official a Lbtr;a(Lcom/mojang/serialization/Dynamic;)Lbut;
    • getBrain

      public Brain<PiglinBruteEntity> getBrain()
      Overrides:
      getBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getBrain Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_18868 Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;
      official dS Lbtr;dS()Lbut;
    • canHunt

      public boolean canHunt()
      Specified by:
      canHunt in class AbstractPiglinEntity
      Mappings:
      Namespace Name Mixin selector
      named canHunt Lnet/minecraft/entity/mob/AbstractPiglinEntity;canHunt()Z
      intermediary method_26952 Lnet/minecraft/class_5418;method_26952()Z
      official s Lclo;s()Z
    • canGather

      public boolean canGather(ItemStack stack)
      Overrides:
      canGather in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canGather Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_20820 Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_1799;)Z
      official k Lbtt;k(Lcur;)Z
    • mobTick

      protected void mobTick()
      Overrides:
      mobTick in class AbstractPiglinEntity
      Mappings:
      Namespace Name Mixin selector
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      official Z Lbtt;Z()V
    • getActivity

      public PiglinActivity getActivity()
      Specified by:
      getActivity in class AbstractPiglinEntity
      Mappings:
      Namespace Name Mixin selector
      named getActivity Lnet/minecraft/entity/mob/AbstractPiglinEntity;getActivity()Lnet/minecraft/entity/mob/PiglinActivity;
      intermediary method_24705 Lnet/minecraft/class_5418;method_24705()Lnet/minecraft/class_4837;
      official gs Lclo;gs()Lclr;
    • damage

      public boolean damage(DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      invalid reference
      LivingEntity
      has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like

      invalid reference
      ItemEntity
      also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class LivingEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      official a Lbsw;a(Lbrp;F)Z
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official v Lbtt;v()Lavz;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official d Lbtr;d(Lbrp;)Lavz;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official o_ Lbtr;o_()Lavz;
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official b Lbsw;b(Liz;Ldse;)V
    • playAngrySound

      protected void playAngrySound()
      Mappings:
      Namespace Name Mixin selector
      named playAngrySound Lnet/minecraft/entity/mob/PiglinBruteEntity;playAngrySound()V
      intermediary method_30243 Lnet/minecraft/class_5419;method_30243()V
      official gx Lcls;gx()V
    • playZombificationSound

      protected void playZombificationSound()
      Specified by:
      playZombificationSound in class AbstractPiglinEntity
      Mappings:
      Namespace Name Mixin selector
      named playZombificationSound Lnet/minecraft/entity/mob/AbstractPiglinEntity;playZombificationSound()V
      intermediary method_30238 Lnet/minecraft/class_5418;method_30238()V
      official gu Lclo;gu()V