Class ZombieVillagerEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, VariantHolder<VillagerType>, ScoreHolder, Nameable, VillagerDataContainer, EntityLike

public class ZombieVillagerEntity extends ZombieEntity implements VillagerDataContainer
Mappings:
Namespace Name
named net/minecraft/entity/mob/ZombieVillagerEntity
intermediary net/minecraft/class_1641
official cnq
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/entity/mob/ZombieVillagerEntity;LOGGER:Lorg/slf4j/Logger;
      intermediary field_36334 Lnet/minecraft/class_1641;field_36334:Lorg/slf4j/Logger;
      official a Lcnq;a:Lorg/slf4j/Logger;
    • CONVERTING

      private static final TrackedData<Boolean> CONVERTING
      Mappings:
      Namespace Name Mixin selector
      named CONVERTING Lnet/minecraft/entity/mob/ZombieVillagerEntity;CONVERTING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7423 Lnet/minecraft/class_1641;field_7423:Lnet/minecraft/class_2940;
      official b Lcnq;b:Lalc;
    • VILLAGER_DATA

      private static final TrackedData<VillagerData> VILLAGER_DATA
      Mappings:
      Namespace Name Mixin selector
      named VILLAGER_DATA Lnet/minecraft/entity/mob/ZombieVillagerEntity;VILLAGER_DATA:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7420 Lnet/minecraft/class_1641;field_7420:Lnet/minecraft/class_2940;
      official c Lcnq;c:Lalc;
    • BASE_CONVERSION_DELAY

      private static final int BASE_CONVERSION_DELAY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BASE_CONVERSION_DELAY Lnet/minecraft/entity/mob/ZombieVillagerEntity;BASE_CONVERSION_DELAY:I
      intermediary field_30523 Lnet/minecraft/class_1641;field_30523:I
      official cc Lcnq;cc:I
    • field_30520

      private static final int field_30520
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30520 Lnet/minecraft/entity/mob/ZombieVillagerEntity;field_30520:I
      intermediary field_30520 Lnet/minecraft/class_1641;field_30520:I
      official cd Lcnq;cd:I
    • field_30521

      private static final int field_30521
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30521 Lnet/minecraft/entity/mob/ZombieVillagerEntity;field_30521:I
      intermediary field_30521 Lnet/minecraft/class_1641;field_30521:I
      official ce Lcnq;ce:I
    • field_30522

      private static final int field_30522
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30522 Lnet/minecraft/entity/mob/ZombieVillagerEntity;field_30522:I
      intermediary field_30522 Lnet/minecraft/class_1641;field_30522:I
      official cf Lcnq;cf:I
    • conversionTimer

      private int conversionTimer
      Mappings:
      Namespace Name Mixin selector
      named conversionTimer Lnet/minecraft/entity/mob/ZombieVillagerEntity;conversionTimer:I
      intermediary field_7422 Lnet/minecraft/class_1641;field_7422:I
      official cg Lcnq;cg:I
    • converter

      @Nullable private @Nullable UUID converter
      Mappings:
      Namespace Name Mixin selector
      named converter Lnet/minecraft/entity/mob/ZombieVillagerEntity;converter:Ljava/util/UUID;
      intermediary field_7421 Lnet/minecraft/class_1641;field_7421:Ljava/util/UUID;
      official ch Lcnq;ch:Ljava/util/UUID;
    • gossipData

      @Nullable private @Nullable NbtElement gossipData
      Mappings:
      Namespace Name Mixin selector
      named gossipData Lnet/minecraft/entity/mob/ZombieVillagerEntity;gossipData:Lnet/minecraft/nbt/NbtElement;
      intermediary field_20299 Lnet/minecraft/class_1641;field_20299:Lnet/minecraft/class_2520;
      official ci Lcnq;ci:Lvu;
    • offerData

      @Nullable private @Nullable TradeOfferList offerData
      Mappings:
      Namespace Name Mixin selector
      named offerData Lnet/minecraft/entity/mob/ZombieVillagerEntity;offerData:Lnet/minecraft/village/TradeOfferList;
      intermediary field_17047 Lnet/minecraft/class_1641;field_17047:Lnet/minecraft/class_1916;
      official cj Lcnq;cj:Ldgf;
    • xp

      private int xp
      Mappings:
      Namespace Name Mixin selector
      named xp Lnet/minecraft/entity/mob/ZombieVillagerEntity;xp:I
      intermediary field_18877 Lnet/minecraft/class_1641;field_18877:I
      official ck Lcnq;ck:I
  • Constructor Details

    • ZombieVillagerEntity

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

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class ZombieEntity
      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 ZombieEntity
      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 ZombieEntity
      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
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ZombieEntity
      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;
    • canConvertInWater

      protected boolean canConvertInWater()
      Overrides:
      canConvertInWater in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named canConvertInWater Lnet/minecraft/entity/mob/ZombieEntity;canConvertInWater()Z
      intermediary method_7209 Lnet/minecraft/class_1642;method_7209()Z
      official gp Lcnp;gp()Z
    • 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
    • isConverting

      public boolean isConverting()
      Mappings:
      Namespace Name Mixin selector
      named isConverting Lnet/minecraft/entity/mob/ZombieVillagerEntity;isConverting()Z
      intermediary method_7198 Lnet/minecraft/class_1641;method_7198()Z
      official gx Lcnq;gx()Z
    • setConverting

      private void setConverting(@Nullable @Nullable UUID uuid, int delay)
      Mappings:
      Namespace Name Mixin selector
      named setConverting Lnet/minecraft/entity/mob/ZombieVillagerEntity;setConverting(Ljava/util/UUID;I)V
      intermediary method_7199 Lnet/minecraft/class_1641;method_7199(Ljava/util/UUID;I)V
      official a Lcnq;a(Ljava/util/UUID;I)V
    • 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
    • finishConversion

      private void finishConversion(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named finishConversion Lnet/minecraft/entity/mob/ZombieVillagerEntity;finishConversion(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_7197 Lnet/minecraft/class_1641;method_7197(Lnet/minecraft/class_3218;)V
      official g Lcnq;g(Lash;)V
    • setConversionTimer

      public void setConversionTimer(int conversionTimer)
      Mappings:
      Namespace Name Mixin selector
      named setConversionTimer Lnet/minecraft/entity/mob/ZombieVillagerEntity;setConversionTimer(I)V
      intermediary method_63660 Lnet/minecraft/class_1641;method_63660(I)V
      official r Lcnq;r(I)V
    • getConversionRate

      private int getConversionRate()
      Mappings:
      Namespace Name Mixin selector
      named getConversionRate Lnet/minecraft/entity/mob/ZombieVillagerEntity;getConversionRate()I
      intermediary method_7194 Lnet/minecraft/class_1641;method_7194()I
      official gA Lcnq;gA()I
    • getSoundPitch

      public float getSoundPitch()
      Overrides:
      getSoundPitch in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getSoundPitch Lnet/minecraft/entity/LivingEntity;getSoundPitch()F
      intermediary method_6017 Lnet/minecraft/class_1309;method_6017()F
      official fh Lbwf;fh()F
    • getAmbientSound

      public SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class ZombieEntity
      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

      public SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class ZombieEntity
      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

      public SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class ZombieEntity
      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;
    • getStepSound

      public SoundEvent getStepSound()
      Overrides:
      getStepSound in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named getStepSound Lnet/minecraft/entity/mob/ZombieEntity;getStepSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_7207 Lnet/minecraft/class_1642;method_7207()Lnet/minecraft/class_3414;
      official t Lcnp;t()Laxe;
    • getSkull

      protected ItemStack getSkull()
      Returns the item stack this entity will drop when killed by a charged creeper.
      Overrides:
      getSkull in class ZombieEntity
      Mappings:
      Namespace Name Mixin selector
      named getSkull Lnet/minecraft/entity/mob/ZombieEntity;getSkull()Lnet/minecraft/item/ItemStack;
      intermediary method_7215 Lnet/minecraft/class_1642;method_7215()Lnet/minecraft/class_1799;
      official go Lcnp;go()Lcxo;
    • setOfferData

      public void setOfferData(TradeOfferList offerData)
      Mappings:
      Namespace Name Mixin selector
      named setOfferData Lnet/minecraft/entity/mob/ZombieVillagerEntity;setOfferData(Lnet/minecraft/village/TradeOfferList;)V
      intermediary method_16916 Lnet/minecraft/class_1641;method_16916(Lnet/minecraft/class_1916;)V
      official a Lcnq;a(Ldgf;)V
    • setGossipData

      public void setGossipData(NbtElement gossipData)
      Mappings:
      Namespace Name Mixin selector
      named setGossipData Lnet/minecraft/entity/mob/ZombieVillagerEntity;setGossipData(Lnet/minecraft/nbt/NbtElement;)V
      intermediary method_21649 Lnet/minecraft/class_1641;method_21649(Lnet/minecraft/class_2520;)V
      official a Lcnq;a(Lvu;)V
    • initialize

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

      public int getXp()
      Mappings:
      Namespace Name Mixin selector
      named getXp Lnet/minecraft/entity/mob/ZombieVillagerEntity;getXp()I
      intermediary method_35194 Lnet/minecraft/class_1641;method_35194()I
      official gz Lcnq;gz()I
    • setXp

      public void setXp(int xp)
      Mappings:
      Namespace Name Mixin selector
      named setXp Lnet/minecraft/entity/mob/ZombieVillagerEntity;setXp(I)V
      intermediary method_19622 Lnet/minecraft/class_1641;method_19622(I)V
      official s Lcnq;s(I)V