net.minecraft.world.entity.npc

public abstract class AbstractVillager

extends AgeableMob implements InventoryCarrier, Npc, Merchant

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, InventoryCarrier, Npc, Merchant

cmf
net.minecraft.world.entity.npc.AbstractVillager
net.minecraft.class_3988
net.minecraft.unmapped.C_vyfsmbcg
net.minecraft.entity.passive.MerchantEntity
net.minecraft.entity.passive.MerchantEntity
net.minecraft.src.C_1114_
net.minecraft.world.entity.npc.EntityVillagerAbstract

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
ce
DATA_UNHAPPY_COUNTER
field_19295
f_nrhczjrn
HEAD_ROLLING_TIME_LEFT
HEAD_ROLLING_TIME_LEFT
f_35262_
private static final org.slf4j.Logger
cf
LOGGER
field_48833
f_cgyyfazd
LOGGER
LOGGER
f_314950_
public static final int
cc
VILLAGER_SLOT_OFFSET
field_30599
f_hisrjkxf
field_30599
VILLAGER_SLOT_OFFSET
f_149991_
private static final int
cg
VILLAGER_INVENTORY_SIZE
field_30600
f_svtchhhh
INVENTORY_SIZE
VILLAGER_INVENTORY_SIZE
f_149992_
private Player
ch
tradingPlayer
field_17722
f_nkqvrufu
customer
customer
f_35263_
protected MerchantOffers
cd
offers
field_17721
f_gdmdznyu
offers
offers
f_35261_
private final SimpleContainer
ci
inventory
field_17723
f_pgrtuuwy
inventory
inventory
f_35264_

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractVillager> p_35268_, Level world)

Method summary

Modifier and TypeMethod
public SpawnGroupData
a(ddl arg0, bqp arg1, btr arg2, buh arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
m_oxrxxqyz(C_jmnzlycd arg0, C_jiailwzt arg1, C_uzzvxofv arg2, C_lsmqixfx arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
m_6518_(C_1618_ p_35283_, C_469_ p_35284_, C_529_ p_35285_, C_542_ arg3)
public int
s()
getUnhappyCounter()
method_20506()
m_hpchuibb()
getHeadRollingTimeLeft()
getHeadRollingTimeLeft()
m_35303_()
public void
s(int arg0)
setUnhappyCounter(int arg0)
method_20507(int arg0)
m_bvwcwlvm(int arg0)
setHeadRollingTimeLeft(int ticks)
setHeadRollingTimeLeft(int ticks)
m_35319_(int arg0)
public int
t()
getVillagerXp()
method_19269()
m_lowowysu()
getExperience()
getExperience()
m_7809_()
protected void
a(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
m_lwugwlsw(C_pyoaoolj$C_oqzxcugu arg0)
initDataTracker(DataTracker$Builder arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
a(cmx arg0)
setTradingPlayer(Player arg0)
method_8259(class_1657 arg0)
m_hlreeqnr(C_jzrpycqo arg0)
setCustomer(PlayerEntity arg0)
setCurrentCustomer(PlayerEntity arg0)
m_7189_(C_1141_ arg0)
public Player
gk()
getTradingPlayer()
method_8257()
m_uvemccqu()
getCustomer()
getCurrentCustomer()
m_7962_()
public boolean
gl()
isTrading()
method_18009()
m_wrzdkfai()
hasCustomer()
hasCustomer()
m_35306_()
public MerchantOffers
gm()
getOffers()
method_8264()
m_ozqmoqlt()
getOffers()
getOffers()
m_6616_()
public void
a(dbv arg0)
overrideOffers(MerchantOffers arg0)
method_8261(class_1916 arg0)
m_shynqtcn(C_eygsjfgm arg0)
setOffersFromServer(TradeOfferList arg0)
setOffersFromServer(TradeOfferList arg0)
m_6255_(C_1552_ arg0)
public void
t(int arg0)
overrideXp(int arg0)
method_19271(int arg0)
m_yhtyjelx(int arg0)
setExperienceFromServer(int arg0)
setExperienceFromServer(int arg0)
m_6621_(int arg0)
public void
a(dbu arg0)
notifyTrade(MerchantOffer arg0)
method_8262(class_1914 arg0)
m_ckqsunlu(C_argwryfu arg0)
trade(TradeOffer arg0)
trade(TradeOffer arg0)
m_6996_(C_1551_ arg0)
protected abstract void
b(dbu arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
m_iabllljm(C_argwryfu arg0)
afterUsing(TradeOffer offer)
afterUsing(TradeOffer offer)
m_8058_(C_1551_ arg0)
public boolean
gn()
showProgressBar()
method_19270()
m_inimrlal()
isLeveledMerchant()
isLeveledMerchant()
m_7826_()
public void
n(cuq arg0)
notifyTradeUpdated(ItemStack arg0)
method_8258(class_1799 arg0)
m_hwbtflhk(C_sddaxwyk arg0)
onSellingItem(ItemStack arg0)
onSellingItem(ItemStack arg0)
m_7713_(C_1391_ arg0)
public SoundEvent
go()
getNotifyTradeSound()
method_18010()
m_trezqnuu()
getYesSound()
getYesSound()
m_7596_()
protected SoundEvent
x(boolean arg0)
getTradeUpdatedSound(boolean arg0)
method_18012(boolean arg0)
m_kwfamrvh(boolean arg0)
getTradingSound(boolean sold)
getTradingSound(boolean sold)
m_6068_(boolean arg0)
public void
gp()
playCelebrateSound()
method_20010()
m_numxqsja()
playCelebrateSound()
playCelebrateSound()
m_35310_()
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
m_xuwbpohg(C_hhlwcnih arg0)
writeCustomDataToNbt(NbtCompound arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
m_obkzfysl(C_hhlwcnih arg0)
readCustomDataFromNbt(NbtCompound arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public Entity
a(eqc arg0)
changeDimension(DimensionTransition arg0)
method_5731(class_5454 arg0)
m_uwdepeht(C_zbvyjshu arg0)
teleportTo(TeleportTarget arg0)
moveToWorld(DimensionTransition arg0)
m_5489_(C_336494_ arg0)
protected void
gq()
stopTrading()
method_19181()
m_hpfqnnmn()
resetCustomer()
resetCustomer()
m_7996_()
public void
a(brk arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
m_tflzijcx(C_sbxfkpyv arg0)
onDeath(DamageSource arg0)
onDeath(DamageSource arg0)
m_6667_(C_489_ arg0)
protected void
a(lk arg0)
addParticlesAroundSelf(ParticleOptions arg0)
method_18007(class_2394 arg0)
m_tqxxjvks(C_nqucohct arg0)
produceParticles(ParticleEffect parameters)
produceParticles(ParticleEffect parameters)
m_35287_(C_4756_ arg0)
public boolean
y()
canBeLeashed()
method_5931()
m_xvyvanvw()
canBeLeashed()
canBeLeashed()
m_6573_()
public SimpleContainer
x()
getInventory()
method_35199()
m_jezpqywh()
getInventory()
getInventory()
m_35311_()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
m_owvpveuv(int arg0)
getStackReference(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)
protected abstract void
gr()
updateTrades()
method_7237()
m_dnvdzaow()
fillRecipes()
fillRecipes()
m_7604_()
protected void
a(dbv arg0, cmo$g[] arg1, int arg2)
addOffersFromItemListings(MerchantOffers arg0, VillagerTrades$ItemListing[] arg1, int arg2)
method_19170(class_1916 arg0, class_3853$class_1652[] arg1, int arg2)
m_beqdpjwh(C_eygsjfgm arg0, C_hqrlptsj$C_bcdfyrkn[] arg1, int arg2)
fillRecipesFromPool(TradeOfferList recipeList, TradeOffers$Factory[] pool, int count)
fillRecipesFromPool(TradeOfferList recipeList, TradeOffers$Factory[] pool, int count)
m_35277_(C_1552_ p_35279_, C_1122_$C_1128_[] p_35280_, int arg2)
public Vec3
s(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
m_grytvnwh(float arg0)
getLeashPos(float arg0)
getLeashHoldPosition(float arg0)
m_7398_(float arg0)
public boolean
gs()
isClientSide()
method_38069()
m_cmgdubfr()
isClient()
isClient()
m_183595_()