Class AbstractPiglinEntity

All Implemented Interfaces:
Attackable, Monster, Targeter, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
PiglinBruteEntity, PiglinEntity

public abstract class AbstractPiglinEntity extends HostileEntity
Mappings:
Namespace Name
official bxd
intermediary net/minecraft/class_5418
named net/minecraft/entity/mob/AbstractPiglinEntity
  • Field Details

    • IMMUNE_TO_ZOMBIFICATION

      protected static final TrackedData<Boolean> IMMUNE_TO_ZOMBIFICATION
      Mappings:
      Namespace Name Mixin selector
      official b Lbxd;b:Laby;
      intermediary field_25758 Lnet/minecraft/class_5418;field_25758:Lnet/minecraft/class_2940;
      named IMMUNE_TO_ZOMBIFICATION Lnet/minecraft/entity/mob/AbstractPiglinEntity;IMMUNE_TO_ZOMBIFICATION:Lnet/minecraft/entity/data/TrackedData;
    • TIME_TO_ZOMBIFY

      protected static final int TIME_TO_ZOMBIFY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbxd;c:I
      intermediary field_30547 Lnet/minecraft/class_5418;field_30547:I
      named TIME_TO_ZOMBIFY Lnet/minecraft/entity/mob/AbstractPiglinEntity;TIME_TO_ZOMBIFY:I
    • EYE_HEIGHT

      protected static final float EYE_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbxd;d:F
      intermediary field_41030 Lnet/minecraft/class_5418;field_41030:F
      named EYE_HEIGHT Lnet/minecraft/entity/mob/AbstractPiglinEntity;EYE_HEIGHT:F
    • timeInOverworld

      protected int timeInOverworld
      Mappings:
      Namespace Name Mixin selector
      official e Lbxd;e:I
      intermediary field_25759 Lnet/minecraft/class_5418;field_25759:I
      named timeInOverworld Lnet/minecraft/entity/mob/AbstractPiglinEntity;timeInOverworld:I
  • Constructor Details

    • AbstractPiglinEntity

      public AbstractPiglinEntity(EntityType<? extends AbstractPiglinEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfj;<init>(Lbfn;Lcmm;)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

    • setCanPathThroughDoors

      private void setCanPathThroughDoors()
      Mappings:
      Namespace Name Mixin selector
      official w Lbxd;w()V
      intermediary method_30239 Lnet/minecraft/class_5418;method_30239()V
      named setCanPathThroughDoors Lnet/minecraft/entity/mob/AbstractPiglinEntity;setCanPathThroughDoors()V
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbfz;b(Lbgl;Lbfk;)F
      intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
    • canHunt

      protected abstract boolean canHunt()
      Mappings:
      Namespace Name Mixin selector
      official q Lbxd;q()Z
      intermediary method_26952 Lnet/minecraft/class_5418;method_26952()Z
      named canHunt Lnet/minecraft/entity/mob/AbstractPiglinEntity;canHunt()Z
    • setImmuneToZombification

      public void setImmuneToZombification(boolean immuneToZombification)
      Mappings:
      Namespace Name Mixin selector
      official w Lbxd;w(Z)V
      intermediary method_30240 Lnet/minecraft/class_5418;method_30240(Z)V
      named setImmuneToZombification Lnet/minecraft/entity/mob/AbstractPiglinEntity;setImmuneToZombification(Z)V
    • isImmuneToZombification

      protected boolean isImmuneToZombification()
      Mappings:
      Namespace Name Mixin selector
      official r Lbxd;r()Z
      intermediary method_30234 Lnet/minecraft/class_5418;method_30234()Z
      named isImmuneToZombification Lnet/minecraft/entity/mob/AbstractPiglinEntity;isImmuneToZombification()Z
    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfj;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfj;b(Lqr;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getHeightOffset

      public double getHeightOffset()
      Overrides:
      getHeightOffset in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bw Lbfj;bw()D
      intermediary method_5678 Lnet/minecraft/class_1297;method_5678()D
      named getHeightOffset Lnet/minecraft/entity/Entity;getHeightOffset()D
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfj;a(Lqr;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • mobTick

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

      public boolean shouldZombify()
      Mappings:
      Namespace Name Mixin selector
      official fY Lbxd;fY()Z
      intermediary method_30235 Lnet/minecraft/class_5418;method_30235()Z
      named shouldZombify Lnet/minecraft/entity/mob/AbstractPiglinEntity;shouldZombify()Z
    • zombify

      protected void zombify(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official c Lbxd;c(Laif;)V
      intermediary method_24694 Lnet/minecraft/class_5418;method_24694(Lnet/minecraft/class_3218;)V
      named zombify Lnet/minecraft/entity/mob/AbstractPiglinEntity;zombify(Lnet/minecraft/server/world/ServerWorld;)V
    • isAdult

      public boolean isAdult()
      Mappings:
      Namespace Name Mixin selector
      official fZ Lbxd;fZ()Z
      intermediary method_30236 Lnet/minecraft/class_5418;method_30236()Z
      named isAdult Lnet/minecraft/entity/mob/AbstractPiglinEntity;isAdult()Z
    • getActivity

      public abstract PiglinActivity getActivity()
      Mappings:
      Namespace Name Mixin selector
      official ga Lbxd;ga()Lbxg;
      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;
    • getTarget

      @Nullable public @Nullable LivingEntity getTarget()
      Specified by:
      getTarget in interface Targeter
      Overrides:
      getTarget in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official j Lbgw;j()Lbfz;
      intermediary method_5968 Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;
      named getTarget Lnet/minecraft/entity/Targeter;getTarget()Lnet/minecraft/entity/LivingEntity;
    • isHoldingTool

      protected boolean isHoldingTool()
      Mappings:
      Namespace Name Mixin selector
      official gb Lbxd;gb()Z
      intermediary method_30237 Lnet/minecraft/class_5418;method_30237()Z
      named isHoldingTool Lnet/minecraft/entity/mob/AbstractPiglinEntity;isHoldingTool()Z
    • playAmbientSound

      public void playAmbientSound()
      Overrides:
      playAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official N Lbgb;N()V
      intermediary method_5966 Lnet/minecraft/class_1308;method_5966()V
      named playAmbientSound Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
    • sendAiDebugData

      protected void sendAiDebugData()
      Overrides:
      sendAiDebugData in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official V Lbgb;V()V
      intermediary method_18409 Lnet/minecraft/class_1308;method_18409()V
      named sendAiDebugData Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
    • playZombificationSound

      protected abstract void playZombificationSound()
      Mappings:
      Namespace Name Mixin selector
      official gc Lbxd;gc()V
      intermediary method_30238 Lnet/minecraft/class_5418;method_30238()V
      named playZombificationSound Lnet/minecraft/entity/mob/AbstractPiglinEntity;playZombificationSound()V