net.minecraft.entity.mob

public class ZombieVillagerEntity

extends ZombieEntity implements VillagerDataContainer

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Monster, VillagerDataContainer

net.minecraft.world.entity.monster.zombie.ZombieVillager
net.minecraft.class_1641
net.minecraft.entity.mob.ZombieVillagerEntity

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
DATA_CONVERTING_ID
field_7423
CONVERTING
private static final TrackedData<VillagerData>
DATA_VILLAGER_DATA
field_7420
VILLAGER_DATA
private static final TrackedData<Boolean>
DATA_VILLAGER_DATA_FINALIZED
field_1_695
field_1_695
private static final int
VILLAGER_CONVERSION_WAIT_MIN
field_30523
BASE_CONVERSION_DELAY
private static final int
VILLAGER_CONVERSION_WAIT_MAX
field_30520
field_30520
private static final int
MAX_SPECIAL_BLOCKS_COUNT
field_30521
field_30521
private static final int
SPECIAL_BLOCK_RADIUS
field_30522
field_30522
private static final int
NOT_CONVERTING
field_57700
DEFAULT_CONVERSION_TIME
private static final int
DEFAULT_XP
field_57701
DEFAULT_EXPERIENCE
private int
villagerConversionTime
field_7422
conversionTimer
private UUID
conversionStarter
field_7421
converter
private VillagerGossips
gossips
field_20299
gossip
private TradeOfferList
tradeOffers
field_17047
offerData
private int
villagerXp
field_18877
experience
private static final EntityDimensions
BABY_DIMENSIONS
field_1_1962
field_1_1962

Constructor summary

ModifierConstructor
public (EntityType<? extends ZombieVillagerEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
private VillagerData
initializeVillagerData()
method_72497()
createVillagerData()
public void
tick()
method_5773()
tick()
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected boolean
convertsInWater()
method_7209()
canConvertInWater()
public boolean
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public boolean
isConverting()
method_7198()
isConverting()
private void
startConverting(UUID player, int time)
method_7199(UUID arg0, int arg1)
setConverting(UUID uuid, int delay)
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
private void
finishConversion(ServerLevel level)
method_7197(class_3218 arg0)
finishConversion(ServerWorld world)
public void
setVillagerConversionTime(int conversionTime)
method_63660(int arg0)
setConversionTimer(int conversionTimer)
private int
getConversionProgress()
method_7194()
getConversionRate()
public float
getVoicePitch()
method_6017()
getSoundPitch()
public SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
public SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
public SoundEvent
getDeathSound()
method_6002()
getDeathSound()
public SoundEvent
getStepSound()
method_7207()
getStepSound()
public void
setTradeOffers(MerchantOffers tradeOffers)
method_16916(class_1916 arg0)
setOfferData(TradeOfferList offerData)
public void
setGossips(GossipContainer gossips)
method_21649(class_4136 arg0)
setGossip(VillagerGossips gossip)
public void
setVillagerData(VillagerData villagerData)
method_7195(class_3850 arg0)
setVillagerData(VillagerData arg0)
public VillagerData
getVillagerData()
method_7231()
getVillagerData()
public int
getVillagerXp()
method_35194()
getExperience()
public void
setVillagerXp(int villagerXp)
method_19622(int arg0)
setExperience(int experience)
public <T> T
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
private void
lambda$finishConversion$0(ServerLevel arg0, Villager arg1)
method_63659(class_3218 arg0, class_1646 arg1)
method_63659(ServerWorld arg0, VillagerEntity villager)
private static boolean
lambda$finishConversion$1(ItemStack arg0)
method_60978(class_1799 arg0)
method_60978(ItemStack stack)