Class PiglinBruteEntity

All Implemented Interfaces:
Monster, CommandOutput, Nameable, EntityLike

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

    • MAX_HEALTH

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

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

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

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

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

    • PiglinBruteEntity

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

    • createPiglinBruteAttributes

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

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbei;a(Lckl;Lbck;Lbek;Lbez;Lqp;)Lbez;
      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_2487;)Lnet/minecraft/class_1315;
      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/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
    • initEquipment

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

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

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

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

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

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

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

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

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

      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 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
      official a Lbdr;a(Lbcz;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • getAmbientSound

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

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

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

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

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

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