net.minecraft.world.entity.npc

public abstract class AbstractVillager

extends AgableMob implements Npc, Merchant

All mapped superinterfaces:

Nameable, CommandSource, Npc, Merchant

bfe
net.minecraft.world.entity.npc.AbstractVillager
net.minecraft.class_3988
net.minecraft.unmapped.C_vyfsmbcg
net.minecraft.entity.passive.MerchantEntity
net.minecraft.entity.merchant.villager.AbstractVillagerEntity
net.minecraft.server.v1_16_R3.EntityVillagerAbstract

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bp
DATA_UNHAPPY_COUNTER
field_19295
f_nrhczjrn
HEAD_ROLLING_TIME_LEFT
field_222820_bA
private Player
bq
tradingPlayer
field_17722
f_nkqvrufu
customer
field_213725_bA
tradingPlayer
protected MerchantOffers
bo
offers
field_17721
f_gdmdznyu
offers
field_213724_bz
trades
private final SimpleContainer
br
inventory
field_17723
f_pgrtuuwy
inventory
field_213722_bB
inventory

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractVillager> arg0, Level arg1)

Method summary

Modifier and TypeMethod
public SpawnGroupData
a(bsk arg0, aos arg1, aqp arg2, arc arg3, md arg4)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
m_oxrxxqyz(C_jmnzlycd arg0, C_jiailwzt arg1, C_uzzvxofv arg2, C_lsmqixfx arg3, C_hhlwcnih arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
func_213386_a(IServerWorld arg0, DifficultyInstance arg1, SpawnReason arg2, ILivingEntityData arg3, CompoundNBT arg4)
prepare(WorldAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
public int
eK()
getUnhappyCounter()
method_20506()
m_hpchuibb()
getHeadRollingTimeLeft()
func_213719_ec()
public void
s(int arg0)
setUnhappyCounter(int arg0)
method_20507(int arg0)
m_bvwcwlvm(int arg0)
setHeadRollingTimeLeft(int ticks)
func_213720_r(int arg0)
public int
eL()
getVillagerXp()
method_19269()
m_lowowysu()
getExperience()
func_213708_dV()
getExperience()
protected float
b(aqx arg0, aqb arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
m_heqvdbfg(C_ufdjspmk arg0, C_sszpscpo arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
func_213348_b(Pose arg0, EntitySize arg1)
protected void
e()
defineSynchedData()
method_5693()
m_lwugwlsw()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
f(bfw arg0)
setTradingPlayer(Player arg0)
method_8259(class_1657 arg0)
m_hlreeqnr(C_jzrpycqo arg0)
setCurrentCustomer(PlayerEntity arg0)
func_70932_a_(PlayerEntity arg0)
setTradingPlayer(EntityHuman arg0)
public Player
eM()
getTradingPlayer()
method_8257()
m_uvemccqu()
getCurrentCustomer()
func_70931_l_()
getTrader()
public boolean
eN()
isTrading()
method_18009()
m_wrzdkfai()
hasCustomer()
func_213716_dX()
public MerchantOffers
eO()
getOffers()
method_8264()
m_ozqmoqlt()
getOffers()
func_213706_dY()
getOffers()
public void
t(int arg0)
overrideXp(int arg0)
method_19271(int arg0)
m_yhtyjelx(int arg0)
setExperienceFromServer(int arg0)
func_213702_q(int arg0)
setForcedExperience(int arg0)
public void
a(bqv arg0)
notifyTrade(MerchantOffer arg0)
method_8262(class_1914 arg0)
m_ckqsunlu(C_argwryfu arg0)
trade(TradeOffer arg0)
func_213704_a(MerchantOffer arg0)
protected abstract void
b(bqv arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
m_iabllljm(C_argwryfu arg0)
afterUsing(TradeOffer offer)
func_213713_b(MerchantOffer arg0)
public boolean
eP()
showProgressBar()
method_19270()
m_inimrlal()
isLeveledMerchant()
func_213705_dZ()
isRegularVillager()
public void
k(bmb arg0)
notifyTradeUpdated(ItemStack arg0)
method_8258(class_1799 arg0)
m_hwbtflhk(C_sddaxwyk arg0)
onSellingItem(ItemStack arg0)
func_110297_a_(ItemStack arg0)
public SoundEvent
eQ()
getNotifyTradeSound()
method_18010()
m_trezqnuu()
getYesSound()
func_213714_ea()
getTradeSound()
protected SoundEvent
t(boolean arg0)
getTradeUpdatedSound(boolean arg0)
method_18012(boolean arg0)
m_kwfamrvh(boolean arg0)
getTradingSound(boolean sold)
func_213721_r(boolean arg0)
public void
eR()
playCelebrateSound()
method_20010()
m_numxqsja()
playCelebrateSound()
func_213711_eb()
public void
b(md arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
m_xuwbpohg(C_hhlwcnih arg0)
writeCustomDataToNbt(NbtCompound arg0)
func_213281_b(CompoundNBT arg0)
saveData(NBTTagCompound arg0)
public void
a(md arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
m_obkzfysl(C_hhlwcnih arg0)
readCustomDataFromNbt(NbtCompound arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
public Entity
b(aag arg0)
changeDimension(ServerLevel arg0)
method_5731(class_3218 arg0)
m_uwdepeht(C_bdwnwhiu arg0)
moveToWorld(ServerWorld arg0)
func_241206_a_(ServerWorld arg0)
protected void
eT()
stopTrading()
method_19181()
m_hpfqnnmn()
resetCustomer()
func_213750_eg()
public void
a(apk arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
m_tflzijcx(C_sbxfkpyv arg0)
onDeath(DamageSource arg0)
func_70645_a(DamageSource arg0)
die(DamageSource arg0)
public boolean
a(bfw arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
m_fgmsyatf(C_jzrpycqo arg0)
canBeLeashedBy(PlayerEntity arg0)
func_184652_a(PlayerEntity arg0)
public SimpleContainer
eU()
getInventory()
method_18011()
m_cwugqdhh()
getInventory()
func_213715_ed()
getInventory()
public boolean
a_(int arg0, bmb arg1)
setSlot(int arg0, ItemStack arg1)
method_5758(int arg0, class_1799 arg1)
m_muglpjhg(int arg0, C_sddaxwyk arg1)
equip(int arg0, ItemStack arg1)
func_174820_d(int arg0, ItemStack arg1)
public Level
eV()
getLevel()
method_8260()
m_cwmdovlp()
getMerchantWorld()
func_190670_t_()
getWorld()
protected abstract void
eW()
updateTrades()
method_7237()
m_dnvdzaow()
fillRecipes()
func_213712_ef()
protected void
a(bqw arg0, bfn$f[] 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)
func_213717_a(MerchantOffers arg0, VillagerTrades$ITrade[] arg1, int arg2)
public void
a(bqw arg0)
overrideOffers(MerchantOffers arg0)
method_8261(class_1916 arg0)
m_shynqtcn(C_eygsjfgm arg0)
setOffersFromServer(TradeOfferList arg0)
func_213703_a(MerchantOffers arg0)
protected void
a(hf arg0)
addParticlesAroundSelf(ParticleOptions arg0)
method_18007(class_2394 arg0)
m_tqxxjvks(C_nqucohct arg0)
produceParticles(ParticleEffect parameters)
func_213718_a(IParticleData arg0)
public Vec3
o(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
m_grytvnwh(float arg0)
method_30951(float arg0)
func_241843_o(float arg0)