Class VillagerEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, InteractionObserver, InventoryOwner, Leashable, Npc, Targeter, VariantHolder<VillagerType>, ScoreHolder, Nameable, Merchant, VillagerDataContainer, EntityLike

public class VillagerEntity extends MerchantEntity implements InteractionObserver, VillagerDataContainer
Mappings:
Namespace Name
named net/minecraft/entity/passive/VillagerEntity
intermediary net/minecraft/class_1646
official cpi
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/entity/passive/VillagerEntity;LOGGER:Lorg/slf4j/Logger;
      intermediary field_36335 Lnet/minecraft/class_1646;field_36335:Lorg/slf4j/Logger;
      official cf Lcpi;cf:Lorg/slf4j/Logger;
    • VILLAGER_DATA

      private static final TrackedData<VillagerData> VILLAGER_DATA
      Mappings:
      Namespace Name Mixin selector
      named VILLAGER_DATA Lnet/minecraft/entity/passive/VillagerEntity;VILLAGER_DATA:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7445 Lnet/minecraft/class_1646;field_7445:Lnet/minecraft/class_2940;
      official cg Lcpi;cg:Lalc;
    • field_30602

      public static final int field_30602
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30602 Lnet/minecraft/entity/passive/VillagerEntity;field_30602:I
      intermediary field_30602 Lnet/minecraft/class_1646;field_30602:I
      official cb Lcpi;cb:I
    • ITEM_FOOD_VALUES

      public static final Map<Item,Integer> ITEM_FOOD_VALUES
      Mappings:
      Namespace Name Mixin selector
      named ITEM_FOOD_VALUES Lnet/minecraft/entity/passive/VillagerEntity;ITEM_FOOD_VALUES:Ljava/util/Map;
      intermediary field_18526 Lnet/minecraft/class_1646;field_18526:Ljava/util/Map;
      official cc Lcpi;cc:Ljava/util/Map;
    • field_30604

      private static final int field_30604
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30604 Lnet/minecraft/entity/passive/VillagerEntity;field_30604:I
      intermediary field_30604 Lnet/minecraft/class_1646;field_30604:I
      official ch Lcpi;ch:I
    • field_30605

      private static final int field_30605
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30605 Lnet/minecraft/entity/passive/VillagerEntity;field_30605:I
      intermediary field_30605 Lnet/minecraft/class_1646;field_30605:I
      official ci Lcpi;ci:I
    • field_30606

      private static final int field_30606
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30606 Lnet/minecraft/entity/passive/VillagerEntity;field_30606:I
      intermediary field_30606 Lnet/minecraft/class_1646;field_30606:I
      official cj Lcpi;cj:I
    • field_30607

      private static final int field_30607
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30607 Lnet/minecraft/entity/passive/VillagerEntity;field_30607:I
      intermediary field_30607 Lnet/minecraft/class_1646;field_30607:I
      official ck Lcpi;ck:I
    • field_30609

      private static final int field_30609
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30609 Lnet/minecraft/entity/passive/VillagerEntity;field_30609:I
      intermediary field_30609 Lnet/minecraft/class_1646;field_30609:I
      official cl Lcpi;cl:I
    • field_30610

      private static final int field_30610
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30610 Lnet/minecraft/entity/passive/VillagerEntity;field_30610:I
      intermediary field_30610 Lnet/minecraft/class_1646;field_30610:I
      official cm Lcpi;cm:I
    • field_30611

      private static final long field_30611
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30611 Lnet/minecraft/entity/passive/VillagerEntity;field_30611:J
      intermediary field_30611 Lnet/minecraft/class_1646;field_30611:J
      official cn Lcpi;cn:J
    • field_30603

      public static final float field_30603
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30603 Lnet/minecraft/entity/passive/VillagerEntity;field_30603:F
      intermediary field_30603 Lnet/minecraft/class_1646;field_30603:F
      official cd Lcpi;cd:F
    • MEMORY_MODULES

      private static final ImmutableList<MemoryModuleType<?>> MEMORY_MODULES
      Mappings:
      Namespace Name Mixin selector
      named MEMORY_MODULES Lnet/minecraft/entity/passive/VillagerEntity;MEMORY_MODULES:Lcom/google/common/collect/ImmutableList;
      intermediary field_18538 Lnet/minecraft/class_1646;field_18538:Lcom/google/common/collect/ImmutableList;
      official cD Lcpi;cD:Lcom/google/common/collect/ImmutableList;
    • SENSORS

      private static final ImmutableList<SensorType<? extends Sensor<? super VillagerEntity>>> SENSORS
      Mappings:
      Namespace Name Mixin selector
      named SENSORS Lnet/minecraft/entity/passive/VillagerEntity;SENSORS:Lcom/google/common/collect/ImmutableList;
      intermediary field_18539 Lnet/minecraft/class_1646;field_18539:Lcom/google/common/collect/ImmutableList;
      official cE Lcpi;cE:Lcom/google/common/collect/ImmutableList;
    • POINTS_OF_INTEREST

      Mappings:
      Namespace Name Mixin selector
      named POINTS_OF_INTEREST Lnet/minecraft/entity/passive/VillagerEntity;POINTS_OF_INTEREST:Ljava/util/Map;
      intermediary field_18851 Lnet/minecraft/class_1646;field_18851:Ljava/util/Map;
      official ce Lcpi;ce:Ljava/util/Map;
    • levelUpTimer

      private int levelUpTimer
      Mappings:
      Namespace Name Mixin selector
      named levelUpTimer Lnet/minecraft/entity/passive/VillagerEntity;levelUpTimer:I
      intermediary field_18528 Lnet/minecraft/class_1646;field_18528:I
      official co Lcpi;co:I
    • levelingUp

      private boolean levelingUp
      Mappings:
      Namespace Name Mixin selector
      named levelingUp Lnet/minecraft/entity/passive/VillagerEntity;levelingUp:Z
      intermediary field_18529 Lnet/minecraft/class_1646;field_18529:Z
      official cp Lcpi;cp:Z
    • lastCustomer

      @Nullable private @Nullable PlayerEntity lastCustomer
      Mappings:
      Namespace Name Mixin selector
      named lastCustomer Lnet/minecraft/entity/passive/VillagerEntity;lastCustomer:Lnet/minecraft/entity/player/PlayerEntity;
      intermediary field_18530 Lnet/minecraft/class_1646;field_18530:Lnet/minecraft/class_1657;
      official cq Lcpi;cq:Lcpw;
    • field_30612

      private boolean field_30612
      Mappings:
      Namespace Name Mixin selector
      named field_30612 Lnet/minecraft/entity/passive/VillagerEntity;field_30612:Z
      intermediary field_30612 Lnet/minecraft/class_1646;field_30612:Z
      official cr Lcpi;cr:Z
    • foodLevel

      private int foodLevel
      Mappings:
      Namespace Name Mixin selector
      named foodLevel Lnet/minecraft/entity/passive/VillagerEntity;foodLevel:I
      intermediary field_18533 Lnet/minecraft/class_1646;field_18533:I
      official cs Lcpi;cs:I
    • gossip

      private final VillagerGossips gossip
      Mappings:
      Namespace Name Mixin selector
      named gossip Lnet/minecraft/entity/passive/VillagerEntity;gossip:Lnet/minecraft/village/VillagerGossips;
      intermediary field_18534 Lnet/minecraft/class_1646;field_18534:Lnet/minecraft/class_4136;
      official ct Lcpi;ct:Lcff;
    • gossipStartTime

      private long gossipStartTime
      Mappings:
      Namespace Name Mixin selector
      named gossipStartTime Lnet/minecraft/entity/passive/VillagerEntity;gossipStartTime:J
      intermediary field_18535 Lnet/minecraft/class_1646;field_18535:J
      official cu Lcpi;cu:J
    • lastGossipDecayTime

      private long lastGossipDecayTime
      Mappings:
      Namespace Name Mixin selector
      named lastGossipDecayTime Lnet/minecraft/entity/passive/VillagerEntity;lastGossipDecayTime:J
      intermediary field_19357 Lnet/minecraft/class_1646;field_19357:J
      official cv Lcpi;cv:J
    • experience

      private int experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/entity/passive/VillagerEntity;experience:I
      intermediary field_18536 Lnet/minecraft/class_1646;field_18536:I
      official cw Lcpi;cw:I
    • lastRestockTime

      private long lastRestockTime
      Mappings:
      Namespace Name Mixin selector
      named lastRestockTime Lnet/minecraft/entity/passive/VillagerEntity;lastRestockTime:J
      intermediary field_18537 Lnet/minecraft/class_1646;field_18537:J
      official cx Lcpi;cx:J
    • restocksToday

      private int restocksToday
      Mappings:
      Namespace Name Mixin selector
      named restocksToday Lnet/minecraft/entity/passive/VillagerEntity;restocksToday:I
      intermediary field_19427 Lnet/minecraft/class_1646;field_19427:I
      official cy Lcpi;cy:I
    • lastRestockCheckTime

      private long lastRestockCheckTime
      Mappings:
      Namespace Name Mixin selector
      named lastRestockCheckTime Lnet/minecraft/entity/passive/VillagerEntity;lastRestockCheckTime:J
      intermediary field_20332 Lnet/minecraft/class_1646;field_20332:J
      official cz Lcpi;cz:J
    • natural

      private boolean natural
      Mappings:
      Namespace Name Mixin selector
      named natural Lnet/minecraft/entity/passive/VillagerEntity;natural:Z
      intermediary field_25167 Lnet/minecraft/class_1646;field_25167:Z
      official cC Lcpi;cC:Z
  • Constructor Details

    • VillagerEntity

      public VillagerEntity(EntityType<? extends VillagerEntity> 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
    • VillagerEntity

      public VillagerEntity(EntityType<? extends VillagerEntity> entityType, World world, VillagerType type)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/VillagerEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/village/VillagerType;)V
      intermediary <init> Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_3854;)V
      official <init> Lcpi;<init>(Lbvq;Ldhh;Lcpn;)V
  • Method Details

    • getBrain

      public Brain<VillagerEntity> 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;
    • createBrainProfile

      protected Brain.Profile<VillagerEntity> 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;
    • reinitializeBrain

      public void reinitializeBrain(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named reinitializeBrain Lnet/minecraft/entity/passive/VillagerEntity;reinitializeBrain(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_19179 Lnet/minecraft/class_1646;method_19179(Lnet/minecraft/class_3218;)V
      official g Lcpi;g(Lash;)V
    • initBrain

      private void initBrain(Brain<VillagerEntity> brain)
      Mappings:
      Namespace Name Mixin selector
      named initBrain Lnet/minecraft/entity/passive/VillagerEntity;initBrain(Lnet/minecraft/entity/ai/brain/Brain;)V
      intermediary method_19174 Lnet/minecraft/class_1646;method_19174(Lnet/minecraft/class_4095;)V
      official a Lcpi;a(Lbxh;)V
    • onGrowUp

      protected void onGrowUp()
      Overrides:
      onGrowUp in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named onGrowUp Lnet/minecraft/entity/passive/PassiveEntity;onGrowUp()V
      intermediary method_5619 Lnet/minecraft/class_1296;method_5619()V
      official i Lbva;i()V
    • createVillagerAttributes

      public static DefaultAttributeContainer.Builder createVillagerAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createVillagerAttributes Lnet/minecraft/entity/passive/VillagerEntity;createVillagerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26955 Lnet/minecraft/class_1646;method_26955()Lnet/minecraft/class_5132$class_5133;
      official gx Lcpi;gx()Lbxm$a;
    • isNatural

      public boolean isNatural()
      Mappings:
      Namespace Name Mixin selector
      named isNatural Lnet/minecraft/entity/passive/VillagerEntity;isNatural()Z
      intermediary method_29279 Lnet/minecraft/class_1646;method_29279()Z
      official gz Lcpi;gz()Z
    • mobTick

      protected void mobTick(ServerWorld world)
      Overrides:
      mobTick in class MobEntity
      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
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official h Lbvj;h()V
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official b Lbwh;b(Lcpw;Lbth;)Lbti;
    • sayNo

      private void sayNo()
      Mappings:
      Namespace Name Mixin selector
      named sayNo Lnet/minecraft/entity/passive/VillagerEntity;sayNo()V
      intermediary method_20264 Lnet/minecraft/class_1646;method_20264()V
      official gJ Lcpi;gJ()V
    • beginTradeWith

      private void beginTradeWith(PlayerEntity customer)
      Mappings:
      Namespace Name Mixin selector
      named beginTradeWith Lnet/minecraft/entity/passive/VillagerEntity;beginTradeWith(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_19191 Lnet/minecraft/class_1646;method_19191(Lnet/minecraft/class_1657;)V
      official g Lcpi;g(Lcpw;)V
    • setCustomer

      public void setCustomer(@Nullable @Nullable PlayerEntity customer)
      Specified by:
      setCustomer in interface Merchant
      Overrides:
      setCustomer in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named setCustomer Lnet/minecraft/village/Merchant;setCustomer(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_8259 Lnet/minecraft/class_1915;method_8259(Lnet/minecraft/class_1657;)V
      official a Ldgd;a(Lcpw;)V
    • resetCustomer

      protected void resetCustomer()
      Overrides:
      resetCustomer in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named resetCustomer Lnet/minecraft/entity/passive/MerchantEntity;resetCustomer()V
      intermediary method_19181 Lnet/minecraft/class_3988;method_19181()V
      official gu Lcpd;gu()V
    • clearSpecialPrices

      private void clearSpecialPrices()
      Resets the special price of all the trade offers of this villager.
      Mappings:
      Namespace Name Mixin selector
      named clearSpecialPrices Lnet/minecraft/entity/passive/VillagerEntity;clearSpecialPrices()V
      intermediary method_19187 Lnet/minecraft/class_1646;method_19187()V
      official gK Lcpi;gK()V
    • canRefreshTrades

      public boolean canRefreshTrades()
      Specified by:
      canRefreshTrades in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named canRefreshTrades Lnet/minecraft/village/Merchant;canRefreshTrades()Z
      intermediary method_20708 Lnet/minecraft/class_1915;method_20708()Z
      official gA Ldgd;gA()Z
    • restock

      public void restock()
      Mappings:
      Namespace Name Mixin selector
      named restock Lnet/minecraft/entity/passive/VillagerEntity;restock()V
      intermediary method_19182 Lnet/minecraft/class_1646;method_19182()V
      official gB Lcpi;gB()V
    • sendOffersToCustomer

      private void sendOffersToCustomer()
      Mappings:
      Namespace Name Mixin selector
      named sendOffersToCustomer Lnet/minecraft/entity/passive/VillagerEntity;sendOffersToCustomer()V
      intermediary method_49695 Lnet/minecraft/class_1646;method_49695()V
      official gL Lcpi;gL()V
    • needsRestock

      private boolean needsRestock()
      Returns whether this villager needs restock.

      Checks if at least one of its trade offers has been used.

      Mappings:
      Namespace Name Mixin selector
      named needsRestock Lnet/minecraft/entity/passive/VillagerEntity;needsRestock()Z
      intermediary method_20823 Lnet/minecraft/class_1646;method_20823()Z
      official gM Lcpi;gM()Z
    • canRestock

      private boolean canRestock()
      Mappings:
      Namespace Name Mixin selector
      named canRestock Lnet/minecraft/entity/passive/VillagerEntity;canRestock()Z
      intermediary method_20824 Lnet/minecraft/class_1646;method_20824()Z
      official gN Lcpi;gN()Z
    • shouldRestock

      public boolean shouldRestock()
      Mappings:
      Namespace Name Mixin selector
      named shouldRestock Lnet/minecraft/entity/passive/VillagerEntity;shouldRestock()Z
      intermediary method_20822 Lnet/minecraft/class_1646;method_20822()Z
      official gC Lcpi;gC()Z
    • restockAndUpdateDemandBonus

      private void restockAndUpdateDemandBonus()
      Mappings:
      Namespace Name Mixin selector
      named restockAndUpdateDemandBonus Lnet/minecraft/entity/passive/VillagerEntity;restockAndUpdateDemandBonus()V
      intermediary method_21723 Lnet/minecraft/class_1646;method_21723()V
      official gO Lcpi;gO()V
    • updateDemandBonus

      private void updateDemandBonus()
      Updates the demand bonus of all the trade offers of this villager.
      Mappings:
      Namespace Name Mixin selector
      named updateDemandBonus Lnet/minecraft/entity/passive/VillagerEntity;updateDemandBonus()V
      intermediary method_21724 Lnet/minecraft/class_1646;method_21724()V
      official gP Lcpi;gP()V
    • prepareOffersFor

      private void prepareOffersFor(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named prepareOffersFor Lnet/minecraft/entity/passive/VillagerEntity;prepareOffersFor(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_19192 Lnet/minecraft/class_1646;method_19192(Lnet/minecraft/class_1657;)V
      official h Lcpi;h(Lcpw;)V
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MerchantEntity
      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 Lbvj;a(Lalg$a;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have 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 MerchantEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbvj;b(Lux;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have 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 MerchantEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbvj;a(Lux;)V
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      official h Lbwh;h(D)Z
    • getAmbientSound

      @Nullable protected @Nullable 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 LivingEntity
      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 LivingEntity
      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;
    • playWorkSound

      public void playWorkSound()
      Mappings:
      Namespace Name Mixin selector
      named playWorkSound Lnet/minecraft/entity/passive/VillagerEntity;playWorkSound()V
      intermediary method_19183 Lnet/minecraft/class_1646;method_19183()V
      official gD Lcpi;gD()V
    • setVillagerData

      public void setVillagerData(VillagerData villagerData)
      Specified by:
      setVillagerData in interface VillagerDataContainer
      Mappings:
      Namespace Name Mixin selector
      named setVillagerData Lnet/minecraft/village/VillagerDataContainer;setVillagerData(Lnet/minecraft/village/VillagerData;)V
      intermediary method_7195 Lnet/minecraft/class_3851;method_7195(Lnet/minecraft/class_3850;)V
      official a Lcpk;a(Lcpj;)V
    • getVillagerData

      public VillagerData getVillagerData()
      Specified by:
      getVillagerData in interface VillagerDataContainer
      Mappings:
      Namespace Name Mixin selector
      named getVillagerData Lnet/minecraft/village/VillagerDataContainer;getVillagerData()Lnet/minecraft/village/VillagerData;
      intermediary method_7231 Lnet/minecraft/class_3851;method_7231()Lnet/minecraft/class_3850;
      official gy Lcpk;gy()Lcpj;
    • afterUsing

      protected void afterUsing(TradeOffer offer)
      Specified by:
      afterUsing in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named afterUsing Lnet/minecraft/entity/passive/MerchantEntity;afterUsing(Lnet/minecraft/village/TradeOffer;)V
      intermediary method_18008 Lnet/minecraft/class_3988;method_18008(Lnet/minecraft/class_1914;)V
      official b Lcpd;b(Ldge;)V
    • setAttacker

      public void setAttacker(@Nullable @Nullable LivingEntity attacker)
      Overrides:
      setAttacker in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named setAttacker Lnet/minecraft/entity/LivingEntity;setAttacker(Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_6015 Lnet/minecraft/class_1309;method_6015(Lnet/minecraft/class_1309;)V
      official a Lbwf;a(Lbwf;)V
    • onDeath

      public void onDeath(DamageSource damageSource)
      Overrides:
      onDeath in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named onDeath Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_6078 Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V
      official a Lbwf;a(Lbtz;)V
    • releaseAllTickets

      private void releaseAllTickets()
      Mappings:
      Namespace Name Mixin selector
      named releaseAllTickets Lnet/minecraft/entity/passive/VillagerEntity;releaseAllTickets()V
      intermediary method_30958 Lnet/minecraft/class_1646;method_30958()V
      official gQ Lcpi;gQ()V
    • notifyDeath

      private void notifyDeath(Entity killer)
      Mappings:
      Namespace Name Mixin selector
      named notifyDeath Lnet/minecraft/entity/passive/VillagerEntity;notifyDeath(Lnet/minecraft/entity/Entity;)V
      intermediary method_20690 Lnet/minecraft/class_1646;method_20690(Lnet/minecraft/class_1297;)V
      official b Lcpi;b(Lbvj;)V
    • releaseTicketFor

      public void releaseTicketFor(MemoryModuleType<GlobalPos> pos)
      Mappings:
      Namespace Name Mixin selector
      named releaseTicketFor Lnet/minecraft/entity/passive/VillagerEntity;releaseTicketFor(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
      intermediary method_19176 Lnet/minecraft/class_1646;method_19176(Lnet/minecraft/class_4140;)V
      official a Lcpi;a(Lcfj;)V
    • isReadyToBreed

      public boolean isReadyToBreed()
      Overrides:
      isReadyToBreed in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named isReadyToBreed Lnet/minecraft/entity/passive/PassiveEntity;isReadyToBreed()Z
      intermediary method_19184 Lnet/minecraft/class_1296;method_19184()Z
      official Y_ Lbva;Y_()Z
    • lacksFood

      private boolean lacksFood()
      Mappings:
      Namespace Name Mixin selector
      named lacksFood Lnet/minecraft/entity/passive/VillagerEntity;lacksFood()Z
      intermediary method_20698 Lnet/minecraft/class_1646;method_20698()Z
      official gR Lcpi;gR()Z
    • consumeAvailableFood

      private void consumeAvailableFood()
      Mappings:
      Namespace Name Mixin selector
      named consumeAvailableFood Lnet/minecraft/entity/passive/VillagerEntity;consumeAvailableFood()V
      intermediary method_19185 Lnet/minecraft/class_1646;method_19185()V
      official gS Lcpi;gS()V
    • getReputation

      public int getReputation(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named getReputation Lnet/minecraft/entity/passive/VillagerEntity;getReputation(Lnet/minecraft/entity/player/PlayerEntity;)I
      intermediary method_20594 Lnet/minecraft/class_1646;method_20594(Lnet/minecraft/class_1657;)I
      official f Lcpi;f(Lcpw;)I
    • depleteFood

      private void depleteFood(int amount)
      Mappings:
      Namespace Name Mixin selector
      named depleteFood Lnet/minecraft/entity/passive/VillagerEntity;depleteFood(I)V
      intermediary method_19193 Lnet/minecraft/class_1646;method_19193(I)V
      official u Lcpi;u(I)V
    • eatForBreeding

      public void eatForBreeding()
      Mappings:
      Namespace Name Mixin selector
      named eatForBreeding Lnet/minecraft/entity/passive/VillagerEntity;eatForBreeding()V
      intermediary method_20697 Lnet/minecraft/class_1646;method_20697()V
      official gE Lcpi;gE()V
    • setOffers

      public void setOffers(TradeOfferList offers)
      Mappings:
      Namespace Name Mixin selector
      named setOffers Lnet/minecraft/entity/passive/VillagerEntity;setOffers(Lnet/minecraft/village/TradeOfferList;)V
      intermediary method_16917 Lnet/minecraft/class_1646;method_16917(Lnet/minecraft/class_1916;)V
      official b Lcpi;b(Ldgf;)V
    • canLevelUp

      private boolean canLevelUp()
      Mappings:
      Namespace Name Mixin selector
      named canLevelUp Lnet/minecraft/entity/passive/VillagerEntity;canLevelUp()Z
      intermediary method_19188 Lnet/minecraft/class_1646;method_19188()Z
      official gT Lcpi;gT()Z
    • levelUp

      private void levelUp()
      Mappings:
      Namespace Name Mixin selector
      named levelUp Lnet/minecraft/entity/passive/VillagerEntity;levelUp()V
      intermediary method_16918 Lnet/minecraft/class_1646;method_16918()V
      official gU Lcpi;gU()V
    • getDefaultName

      protected Text getDefaultName()
      Returns the default name of the entity.
      Overrides:
      getDefaultName in class Entity
      Returns:
      the default name of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getDefaultName Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
      intermediary method_23315 Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;
      official cz Lbvj;cz()Lxv;
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class MobEntity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbvj;b(B)V
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class MerchantEntity
      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;
    • createChild

      @Nullable public @Nullable VillagerEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/VillagerEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/VillagerEntity;
      intermediary method_7225 Lnet/minecraft/class_1646;method_7225(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1646;
      official b Lcpi;b(Lash;Lbva;)Lcpi;
    • onStruckByLightning

      public void onStruckByLightning(ServerWorld world, LightningEntity lightning)
      Called when the entity is struck by lightning. This sets the entity on fire and deals lightning damage by default; entities that do not take such damage should override this method to do nothing.
      Overrides:
      onStruckByLightning in class Entity
      Mappings:
      Namespace Name Mixin selector
      named onStruckByLightning Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
      intermediary method_5800 Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
      official a Lbvj;a(Lash;Lbwe;)V
    • loot

      protected void loot(ServerWorld world, ItemEntity itemEntity)
      Overrides:
      loot in class MobEntity
      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 Lbwh;a(Lash;Lcma;)V
    • 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
    • wantsToStartBreeding

      public boolean wantsToStartBreeding()
      Mappings:
      Namespace Name Mixin selector
      named wantsToStartBreeding Lnet/minecraft/entity/passive/VillagerEntity;wantsToStartBreeding()Z
      intermediary method_7234 Lnet/minecraft/class_1646;method_7234()Z
      official gF Lcpi;gF()Z
    • canBreed

      public boolean canBreed()
      Mappings:
      Namespace Name Mixin selector
      named canBreed Lnet/minecraft/entity/passive/VillagerEntity;canBreed()Z
      intermediary method_7239 Lnet/minecraft/class_1646;method_7239()Z
      official gG Lcpi;gG()Z
    • getAvailableFood

      private int getAvailableFood()
      Mappings:
      Namespace Name Mixin selector
      named getAvailableFood Lnet/minecraft/entity/passive/VillagerEntity;getAvailableFood()I
      intermediary method_19189 Lnet/minecraft/class_1646;method_19189()I
      official gV Lcpi;gV()I
    • hasSeedToPlant

      public boolean hasSeedToPlant()
      Mappings:
      Namespace Name Mixin selector
      named hasSeedToPlant Lnet/minecraft/entity/passive/VillagerEntity;hasSeedToPlant()Z
      intermediary method_19623 Lnet/minecraft/class_1646;method_19623()Z
      official gH Lcpi;gH()Z
    • fillRecipes

      protected void fillRecipes()
      Specified by:
      fillRecipes in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named fillRecipes Lnet/minecraft/entity/passive/MerchantEntity;fillRecipes()V
      intermediary method_7237 Lnet/minecraft/class_3988;method_7237()V
      official gv Lcpd;gv()V
    • talkWithVillager

      public void talkWithVillager(ServerWorld world, VillagerEntity villager, long time)
      Mappings:
      Namespace Name Mixin selector
      named talkWithVillager Lnet/minecraft/entity/passive/VillagerEntity;talkWithVillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
      intermediary method_19177 Lnet/minecraft/class_1646;method_19177(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      official a Lcpi;a(Lash;Lcpi;J)V
    • decayGossip

      private void decayGossip()
      Mappings:
      Namespace Name Mixin selector
      named decayGossip Lnet/minecraft/entity/passive/VillagerEntity;decayGossip()V
      intermediary method_20696 Lnet/minecraft/class_1646;method_20696()V
      official gW Lcpi;gW()V
    • summonGolem

      public void summonGolem(ServerWorld world, long time, int requiredCount)
      Mappings:
      Namespace Name Mixin selector
      named summonGolem Lnet/minecraft/entity/passive/VillagerEntity;summonGolem(Lnet/minecraft/server/world/ServerWorld;JI)V
      intermediary method_20688 Lnet/minecraft/class_1646;method_20688(Lnet/minecraft/class_3218;JI)V
      official a Lcpi;a(Lash;JI)V
    • canSummonGolem

      public boolean canSummonGolem(long time)
      Mappings:
      Namespace Name Mixin selector
      named canSummonGolem Lnet/minecraft/entity/passive/VillagerEntity;canSummonGolem(J)Z
      intermediary method_20687 Lnet/minecraft/class_1646;method_20687(J)Z
      official a Lcpi;a(J)Z
    • onInteractionWith

      public void onInteractionWith(EntityInteraction interaction, Entity entity)
      Specified by:
      onInteractionWith in interface InteractionObserver
      Mappings:
      Namespace Name Mixin selector
      named onInteractionWith Lnet/minecraft/entity/InteractionObserver;onInteractionWith(Lnet/minecraft/entity/EntityInteraction;Lnet/minecraft/entity/Entity;)V
      intermediary method_18870 Lnet/minecraft/class_4094;method_18870(Lnet/minecraft/class_4151;Lnet/minecraft/class_1297;)V
      official a Lbwu;a(Lchg;Lbvj;)V
    • getExperience

      public int getExperience()
      Specified by:
      getExperience in interface Merchant
      Overrides:
      getExperience in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named getExperience Lnet/minecraft/village/Merchant;getExperience()I
      intermediary method_19269 Lnet/minecraft/class_1915;method_19269()I
      official x Ldgd;x()I
    • setExperience

      public void setExperience(int experience)
      Mappings:
      Namespace Name Mixin selector
      named setExperience Lnet/minecraft/entity/passive/VillagerEntity;setExperience(I)V
      intermediary method_19625 Lnet/minecraft/class_1646;method_19625(I)V
      official t Lcpi;t(I)V
    • clearDailyRestockCount

      private void clearDailyRestockCount()
      Mappings:
      Namespace Name Mixin selector
      named clearDailyRestockCount Lnet/minecraft/entity/passive/VillagerEntity;clearDailyRestockCount()V
      intermediary method_20821 Lnet/minecraft/class_1646;method_20821()V
      official gX Lcpi;gX()V
    • getGossip

      public VillagerGossips getGossip()
      Mappings:
      Namespace Name Mixin selector
      named getGossip Lnet/minecraft/entity/passive/VillagerEntity;getGossip()Lnet/minecraft/village/VillagerGossips;
      intermediary method_21651 Lnet/minecraft/class_1646;method_21651()Lnet/minecraft/class_4136;
      official gI Lcpi;gI()Lcff;
    • readGossipDataNbt

      public void readGossipDataNbt(NbtElement nbt)
      Mappings:
      Namespace Name Mixin selector
      named readGossipDataNbt Lnet/minecraft/entity/passive/VillagerEntity;readGossipDataNbt(Lnet/minecraft/nbt/NbtElement;)V
      intermediary method_21650 Lnet/minecraft/class_1646;method_21650(Lnet/minecraft/class_2520;)V
      official a Lcpi;a(Lvu;)V
    • sendAiDebugData

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

      public void sleep(BlockPos pos)
      Overrides:
      sleep in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named sleep Lnet/minecraft/entity/LivingEntity;sleep(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_18403 Lnet/minecraft/class_1309;method_18403(Lnet/minecraft/class_2338;)V
      official b Lbwf;b(Ljh;)V
    • wakeUp

      public void wakeUp()
      Wakes this entity up.
      Overrides:
      wakeUp in class LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named wakeUp Lnet/minecraft/entity/LivingEntity;wakeUp()V
      intermediary method_18400 Lnet/minecraft/class_1309;method_18400()V
      official fS Lbwf;fS()V
    • hasRecentlySlept

      private boolean hasRecentlySlept(long worldTime)
      Mappings:
      Namespace Name Mixin selector
      named hasRecentlySlept Lnet/minecraft/entity/passive/VillagerEntity;hasRecentlySlept(J)Z
      intermediary method_20741 Lnet/minecraft/class_1646;method_20741(J)Z
      official b Lcpi;b(J)Z