Class PillagerEntity

All Implemented Interfaces:
ComponentsAccess, RangedAttackMob, Attackable, CrossbowUser, DataTracked, EquipmentHolder, InventoryOwner, Leashable, Monster, Targeter, StackReferenceGetter, ScoreHolder, HeldItemContext, Nameable, DebugTrackable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint

public class PillagerEntity extends IllagerEntity implements CrossbowUser, InventoryOwner
Mappings:
Namespace Name
named net/minecraft/entity/mob/PillagerEntity
intermediary net/minecraft/class_1604
official dbd
  • Field Details

    • CHARGING

      private static final TrackedData<Boolean> CHARGING
      Mappings:
      Namespace Name Mixin selector
      named CHARGING Lnet/minecraft/entity/mob/PillagerEntity;CHARGING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7334 Lnet/minecraft/class_1604;field_7334:Lnet/minecraft/class_2940;
      official a Ldbd;a:Lalw;
    • field_30478

      private static final int field_30478
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30478 Lnet/minecraft/entity/mob/PillagerEntity;field_30478:I
      intermediary field_30478 Lnet/minecraft/class_1604;field_30478:I
      official b Ldbd;b:I
    • field_30476

      private static final int field_30476
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30476 Lnet/minecraft/entity/mob/PillagerEntity;field_30476:I
      intermediary field_30476 Lnet/minecraft/class_1604;field_30476:I
      official e Ldbd;e:I
    • inventory

      private final SimpleInventory inventory
      Mappings:
      Namespace Name Mixin selector
      named inventory Lnet/minecraft/entity/mob/PillagerEntity;inventory:Lnet/minecraft/inventory/SimpleInventory;
      intermediary field_7335 Lnet/minecraft/class_1604;field_7335:Lnet/minecraft/class_1277;
      official cv Ldbd;cv:Lcdk;
  • Constructor Details

    • PillagerEntity

      public PillagerEntity(EntityType<? extends PillagerEntity> 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> Lcgk;<init>(Lcgu;Ldwo;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class IllagerEntity
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official D Lchn;D()V
    • createPillagerAttributes

      public static DefaultAttributeContainer.Builder createPillagerAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createPillagerAttributes Lnet/minecraft/entity/mob/PillagerEntity;createPillagerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26919 Lnet/minecraft/class_1604;method_26919()Lnet/minecraft/class_5132$class_5133;
      official gY Ldbd;gY()Lcir$a;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class RaiderEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lcgk;a(Lama$a;)V
    • method_76695

      public boolean method_76695(ItemStack itemStack)
      Overrides:
      method_76695 in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named method_76695 Lnet/minecraft/entity/mob/MobEntity;method_76695(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_76695 Lnet/minecraft/class_1308;method_76695(Lnet/minecraft/class_1799;)Z
      official g Lchn;g(Ldlt;)Z
    • isCharging

      public boolean isCharging()
      Mappings:
      Namespace Name Mixin selector
      named isCharging Lnet/minecraft/entity/mob/PillagerEntity;isCharging()Z
      intermediary method_7108 Lnet/minecraft/class_1604;method_7108()Z
      official gZ Ldbd;gZ()Z
    • setCharging

      public void setCharging(boolean charging)
      Specified by:
      setCharging in interface CrossbowUser
      Mappings:
      Namespace Name Mixin selector
      named setCharging Lnet/minecraft/entity/CrossbowUser;setCharging(Z)V
      intermediary method_7110 Lnet/minecraft/class_3745;method_7110(Z)V
      official b Lczq;b(Z)V
    • postShoot

      public void postShoot()
      Specified by:
      postShoot in interface CrossbowUser
      Mappings:
      Namespace Name Mixin selector
      named postShoot Lnet/minecraft/entity/CrossbowUser;postShoot()V
      intermediary method_24651 Lnet/minecraft/class_3745;method_24651()V
      official a Lczq;a()V
    • getPreferredWeapons

      public TagKey<Item> getPreferredWeapons()
      Overrides:
      getPreferredWeapons in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getPreferredWeapons Lnet/minecraft/entity/mob/MobEntity;getPreferredWeapons()Lnet/minecraft/registry/tag/TagKey;
      intermediary method_65345 Lnet/minecraft/class_1308;method_65345()Lnet/minecraft/class_6862;
      official aa Lchn;aa()Lbef;
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lcgk;a(Lfns;)V
    • getState

      public IllagerEntity.State getState()
      Overrides:
      getState in class IllagerEntity
      Mappings:
      Namespace Name Mixin selector
      named getState Lnet/minecraft/entity/mob/IllagerEntity;getState()Lnet/minecraft/entity/mob/IllagerEntity$State;
      intermediary method_6990 Lnet/minecraft/class_1543;method_6990()Lnet/minecraft/class_1543$class_1544;
      official gX Ldba;gX()Ldba$a;
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lcgk;a(Lfnq;)V
    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Overrides:
      getPathfindingFavor in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      official a Lcht;a(Lis;Ldwr;)F
    • getLimitPerChunk

      public int getLimitPerChunk()
      Overrides:
      getLimitPerChunk in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getLimitPerChunk Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
      intermediary method_5945 Lnet/minecraft/class_1308;method_5945()I
      official aj Lchn;aj()I
    • initialize

      public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData)
      Overrides:
      initialize in class RaiderEntity
      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 Lchn;a(Ldxf;Lcda;Lcgt;Lcie;)Lcie;
    • 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 Lchn;a(Lbgr;Lcda;)V
    • enchantMainHandItem

      protected void enchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty)
      Overrides:
      enchantMainHandItem in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named enchantMainHandItem Lnet/minecraft/entity/mob/MobEntity;enchantMainHandItem(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_30759 Lnet/minecraft/class_1308;method_30759(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official b Lchn;b(Ldxf;Lbgr;Lcda;)V
    • 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 W Lchn;W()Lbcz;
    • 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 fc Lchl;fc()Lbcz;
    • 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 h Lchl;h(Lcex;)Lbcz;
    • shootAt

      public void shootAt(LivingEntity target, float pullProgress)
      Specified by:
      shootAt in interface RangedAttackMob
      Mappings:
      Namespace Name Mixin selector
      named shootAt Lnet/minecraft/entity/ai/RangedAttackMob;shootAt(Lnet/minecraft/entity/LivingEntity;F)V
      intermediary method_7105 Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)V
      official a Ldac;a(Lchl;F)V
    • getInventory

      public SimpleInventory getInventory()
      Specified by:
      getInventory in interface InventoryOwner
      Mappings:
      Namespace Name Mixin selector
      named getInventory Lnet/minecraft/entity/InventoryOwner;getInventory()Lnet/minecraft/inventory/SimpleInventory;
      intermediary method_35199 Lnet/minecraft/class_6067;method_35199()Lnet/minecraft/class_1277;
      official gO Ldct;gO()Lcdk;
    • loot

      protected void loot(ServerWorld world, ItemEntity itemEntity)
      Overrides:
      loot in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named loot Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)V
      intermediary method_5949 Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)V
      official a Lchn;a(Laxf;Lczl;)V
    • isRaidCaptain

      private boolean isRaidCaptain(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named isRaidCaptain Lnet/minecraft/entity/mob/PillagerEntity;isRaidCaptain(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7111 Lnet/minecraft/class_1604;method_7111(Lnet/minecraft/class_1799;)Z
      official j Ldbd;j(Ldlt;)Z
    • getStackReference

      public @Nullable StackReference getStackReference(int slot)
      Specified by:
      getStackReference in interface StackReferenceGetter
      Overrides:
      getStackReference in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getStackReference Lnet/minecraft/inventory/StackReferenceGetter;getStackReference(I)Lnet/minecraft/inventory/StackReference;
      intermediary method_32318 Lnet/minecraft/class_12260;method_32318(I)Lnet/minecraft/class_5630;
      official a_ Lcid;a_(I)Lcic;
    • addBonusForWave

      public void addBonusForWave(ServerWorld world, int wave, boolean unused)
      Specified by:
      addBonusForWave in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named addBonusForWave Lnet/minecraft/entity/raid/RaiderEntity;addBonusForWave(Lnet/minecraft/server/world/ServerWorld;IZ)V
      intermediary method_16484 Lnet/minecraft/class_3763;method_16484(Lnet/minecraft/class_3218;IZ)V
      official a Ldfi;a(Laxf;IZ)V
    • getCelebratingSound

      public SoundEvent getCelebratingSound()
      Specified by:
      getCelebratingSound in class RaiderEntity
      Mappings:
      Namespace Name Mixin selector
      named getCelebratingSound Lnet/minecraft/entity/raid/RaiderEntity;getCelebratingSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_20033 Lnet/minecraft/class_3763;method_20033()Lnet/minecraft/class_3414;
      official gW Ldfi;gW()Lbcz;