Class PiglinBruteEntity

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

public class PiglinBruteEntity extends AbstractPiglinEntity
Mappings:
Namespace Name
named net/minecraft/entity/mob/PiglinBruteEntity
intermediary net/minecraft/class_5419
official coo
  • 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 ca Lcoo;ca: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 cb Lcoo;cb: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 cc Lcoo;cc:I
    • FOLLOW_RANGE

      private static final double FOLLOW_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FOLLOW_RANGE Lnet/minecraft/entity/mob/PiglinBruteEntity;FOLLOW_RANGE:D
      intermediary field_52502 Lnet/minecraft/class_5419;field_52502:D
      official cd Lcoo;cd:D
    • 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 d Lcoo;d: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 bZ Lcoo;bZ: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> Lbvj;<init>(Lbvq;Ldhh;)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 t Lcoo;t()Lbxm$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 Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;
    • 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 Lbwh;a(Lbam;Lbtg;)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 ed Lbwf;ed()Lbxh$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 Lbwf;a(Lcom/mojang/serialization/Dynamic;)Lbxh;
    • 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 ec Lbwf;ec()Lbxh;
    • 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 m Lcoj;m()Z
    • canGather

      public boolean canGather(ServerWorld world, ItemStack stack)
      Overrides:
      canGather in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canGather Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_20820 Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Z
      official c Lbwh;c(Lash;Lcxo;)Z
    • mobTick

      protected void mobTick(ServerWorld world)
      Overrides:
      mobTick in class AbstractPiglinEntity
      Mappings:
      Namespace Name Mixin selector
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)V
      official a Lbwh;a(Lash;)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 gp Lcoj;gp()Lcom;
    • damage

      public boolean damage(ServerWorld world, 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 LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, 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/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lbvj;a(Lash;Lbtz;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 u Lbwh;u()Laxe;
    • 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 e Lbwf;e(Lbtz;)Laxe;
    • 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_ Lbwf;o_()Laxe;
    • 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 Lbvj;b(Ljh;Ldxu;)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 gu Lcoo;gu()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 gr Lcoj;gr()V