Class AbstractPiglinEntity

All Implemented Interfaces:
ICommandSource, IMob, INameable, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeEntity, INBTSerializable<CompoundNBT>
Direct Known Subclasses:
PiglinBruteEntity, PiglinEntity

public abstract class AbstractPiglinEntity extends MonsterEntity
  • Field Details

    • DATA_IMMUNE_TO_ZOMBIFICATION

      protected static final DataParameter<Boolean> DATA_IMMUNE_TO_ZOMBIFICATION
    • timeInOverworld

      protected int timeInOverworld
  • Constructor Details

  • Method Details

    • applyOpenDoorsAbility

      private void applyOpenDoorsAbility()
    • canHunt

      protected abstract boolean canHunt()
    • setImmuneToZombification

      public void setImmuneToZombification(boolean p_242340_1_)
    • isImmuneToZombification

      protected boolean isImmuneToZombification()
    • defineSynchedData

      protected void defineSynchedData()
      Overrides:
      defineSynchedData in class MobEntity
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundNBT p_213281_1_)
      Overrides:
      addAdditionalSaveData in class MobEntity
    • getMyRidingOffset

      public double getMyRidingOffset()
      Overrides:
      getMyRidingOffset in class Entity
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundNBT p_70037_1_)
      Overrides:
      readAdditionalSaveData in class MobEntity
    • customServerAiStep

      protected void customServerAiStep()
      Overrides:
      customServerAiStep in class MobEntity
    • isConverting

      public boolean isConverting()
    • finishConversion

      protected void finishConversion(ServerWorld p_234416_1_)
    • isAdult

      public boolean isAdult()
    • getArmPose

      public abstract PiglinAction getArmPose()
    • getTarget

      @Nullable public LivingEntity getTarget()
      Overrides:
      getTarget in class MobEntity
    • isHoldingMeleeWeapon

      protected boolean isHoldingMeleeWeapon()
    • playAmbientSound

      public void playAmbientSound()
      Overrides:
      playAmbientSound in class MobEntity
    • sendDebugPackets

      protected void sendDebugPackets()
      Overrides:
      sendDebugPackets in class MobEntity
    • playConvertedSound

      protected abstract void playConvertedSound()