net.minecraft.world.entity.npc

public class Villager

extends AbstractVillager implements ReputationEventHandler, VillagerDataHolder

All mapped superinterfaces:

Nameable, CommandSource, Npc, Merchant, ReputationEventHandler, VillagerDataHolder

bfj
net.minecraft.world.entity.npc.Villager
net.minecraft.class_1646
net.minecraft.unmapped.C_pdtkdbte
net.minecraft.entity.passive.VillagerEntity
net.minecraft.entity.merchant.villager.VillagerEntity
net.minecraft.server.v1_16_R3.EntityVillager

Field summary

Modifier and TypeField
private static final EntityDataAccessor<VillagerData>
br
DATA_VILLAGER_DATA
field_7445
f_xisxjtqv
VILLAGER_DATA
field_213775_bC
public static final Map<Item, Integer>
bp
FOOD_POINTS
field_18526
f_jhoygheo
ITEM_FOOD_VALUES
field_213788_bA
private static final Set<Item>
bs
WANTED_ITEMS
field_18527
f_ropiktzr
GATHERABLE_ITEMS
field_213776_bD
private int
bt
updateMerchantTimer
field_18528
f_tafdryps
levelUpTimer
field_70961_j
private boolean
bu
increaseProfessionLevelOnUpdate
field_18529
f_qlajekfm
levelingUp
field_213777_bF
private Player
bv
lastTradedPlayer
field_18530
f_xbuwxivj
lastCustomer
field_213778_bG
private byte
bx
foodLevel
field_18533
f_gxkrfvtt
foodLevel
field_213781_bL
private final GossipContainer
by
gossips
field_18534
f_yutmdxcy
gossip
field_213782_bM
private long
bz
lastGossipTime
field_18535
f_aoqjlzkd
gossipStartTime
field_213783_bN
private long
bA
lastGossipDecayTime
field_19357
f_sbabdvav
lastGossipDecayTime
field_223362_bL
private int
bB
villagerXp
field_18536
f_aweloyby
experience
field_213784_bO
private long
bC
lastRestockGameTime
field_18537
f_audpvcxh
lastRestockTime
field_213785_bP
private int
bD
numberOfRestocksToday
field_19427
f_ounqokay
restocksToday
field_223725_bO
private long
bE
lastRestockCheckDayTime
field_20332
f_suhwvkte
lastRestockCheckTime
field_223726_bP
private boolean
bF
assignProfessionWhenSpawned
field_25167
f_bferfmkz
natural
field_234542_bL_
private static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
bG
MEMORY_TYPES
field_18538
f_ahngdmuc
MEMORY_MODULES
field_213786_bQ
private static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Villager>>>
bH
SENSOR_TYPES
field_18539
f_hfjucsil
SENSORS
field_213787_bR
public static final Map<MemoryModuleType<GlobalPos>, BiPredicate<Villager, PoiType>>
bq
POI_MEMORIES
field_18851
f_mqjxuzni
POINTS_OF_INTEREST
field_213774_bB

Constructor summary

ModifierConstructor
public (EntityType<? extends Villager> arg0, Level arg1)
public (EntityType<? extends Villager> entityType, Level world, VillagerType type)

Method summary

Modifier and TypeMethod
public Brain<Villager>
cJ()
getBrain()
method_18868()
m_hobjxuks()
getBrain()
func_213375_cj()
getBehaviorController()
protected Brain$Provider<Villager>
cK()
brainProvider()
method_28306()
m_pusvfpox()
createBrainProfile()
func_230289_cH_()
protected Brain<?>
a(com.mojang.serialization.Dynamic<?> arg0)
makeBrain(com.mojang.serialization.Dynamic<?> arg0)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
m_epkzhkqg(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
func_213364_a(com.mojang.serialization.Dynamic<?> arg0)
public void
c(aag arg0)
refreshBrain(ServerLevel arg0)
method_19179(class_3218 arg0)
m_nxfvdvix(C_bdwnwhiu arg0)
reinitializeBrain(ServerWorld world)
func_213770_a(ServerWorld arg0)
private void
a(arf<bfj> arg0)
registerBrainGoals(Brain<Villager> arg0)
method_19174(class_4095<class_1646> arg0)
m_ypommskk(C_rjqjaxef<C_pdtkdbte> arg0)
initBrain(Brain<VillagerEntity> brain)
func_213744_a(Brain<VillagerEntity> arg0)
protected void
m()
ageBoundaryReached()
method_5619()
m_pyxecesa()
onGrowUp()
func_175500_n()
public static AttributeSupplier$Builder
eY()
createAttributes()
method_26955()
m_hdwuynny()
createVillagerAttributes()
func_234551_eU_()
public boolean
eZ()
assignProfessionWhenSpawned()
method_29279()
m_mjduxnka()
isNatural()
func_234552_eW_()
protected void
N()
customServerAiStep()
method_5958()
m_wbeiezxn()
mobTick()
func_70619_bc()
mobTick()
public void
j()
tick()
method_5773()
m_arkgrfeb()
tick()
func_70071_h_()
tick()
public InteractionResult
b(bfw arg0, aot arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
m_kuhfocmh(C_jzrpycqo arg0, C_laxmzoqs arg1)
interactMob(PlayerEntity arg0, Hand arg1)
func_230254_b_(PlayerEntity arg0, Hand arg1)
private void
fk()
setUnhappy()
method_20264()
m_znfujvep()
sayNo()
func_213756_es()
private void
h(bfw arg0)
startTrading(Player arg0)
method_19191(class_1657 arg0)
m_zuttxskq(C_jzrpycqo arg0)
beginTradeWith(PlayerEntity customer)
func_213740_f(PlayerEntity arg0)
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)
protected void
eT()
stopTrading()
method_19181()
m_hpfqnnmn()
resetCustomer()
func_213750_eg()
private void
fl()
resetSpecialPrices()
method_19187()
m_dnarwtec()
clearCurrentBonus()
func_213748_et()
public boolean
fa()
canRestock()
method_20708()
m_bvoaaumq()
canRefreshTrades()
func_223340_ej()
public void
fb()
restock()
method_19182()
m_cwatgxjj()
restock()
func_213766_ei()
private boolean
fm()
needsToRestock()
method_20823()
m_rftgjnmb()
needRestock()
func_223723_ev()
private boolean
fn()
allowedToRestock()
method_20824()
m_kqnyepur()
canRestock()
func_223720_ew()
public boolean
fc()
shouldRestock()
method_20822()
m_zghwxgpj()
shouldRestock()
func_223721_ek()
private void
fo()
catchUpDemand()
method_21723()
m_xdqprxfh()
method_21723()
func_223719_ex()
private void
fp()
updateDemand()
method_21724()
m_mpxabify()
updatePricesOnDemand()
func_223715_ey()
private void
i(bfw arg0)
updateSpecialPrices(Player arg0)
method_19192(class_1657 arg0)
m_wpijqmum(C_jzrpycqo arg0)
prepareRecipesFor(PlayerEntity player)
func_213762_g(PlayerEntity arg0)
protected void
e()
defineSynchedData()
method_5693()
m_lwugwlsw()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
b(md arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
m_xuwbpohg(C_hhlwcnih arg0)
writeCustomDataToTag(CompoundTag 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)
readCustomDataFromTag(CompoundTag arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
m_dciqpbdm(double arg0)
canImmediatelyDespawn(double arg0)
func_213397_c(double arg0)
isTypeNotPersistent(double arg0)
protected SoundEvent
I()
getAmbientSound()
method_5994()
m_jjefzxbm()
getAmbientSound()
func_184639_G()
getSoundAmbient()
protected SoundEvent
e(apk arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
m_spwwmdyl(C_sbxfkpyv arg0)
getHurtSound(DamageSource arg0)
func_184601_bQ(DamageSource arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
dq()
getDeathSound()
method_6002()
m_axkhmdzu()
getDeathSound()
func_184615_bR()
getSoundDeath()
public void
fd()
playWorkSound()
method_19183()
m_jjwcuxsi()
playWorkSound()
func_213767_ej()
public void
a(bfk arg0)
setVillagerData(VillagerData arg0)
method_7221(class_3850 arg0)
m_hfrutghf(C_zuqrzrur arg0)
setVillagerData(VillagerData villagerData)
func_213753_a(VillagerData arg0)
setVillagerData(VillagerData arg0)
public VillagerData
eX()
getVillagerData()
method_7231()
m_ulhthoau()
getVillagerData()
func_213700_eh()
getVillagerData()
protected void
b(bqv arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
m_iabllljm(C_argwryfu arg0)
afterUsing(TradeOffer arg0)
func_213713_b(MerchantOffer arg0)
public void
a(aqm arg0)
setLastHurtByMob(LivingEntity arg0)
method_6015(class_1309 arg0)
m_fqffmeys(C_usxaxydn arg0)
setAttacker(LivingEntity arg0)
func_70604_c(LivingEntity arg0)
setLastDamager(EntityLiving arg0)
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)
private void
fq()
releaseAllPois()
method_30958()
m_wptaprwe()
method_30958()
func_242369_fq()
private void
a(aqa arg0)
tellWitnessesThatIWasMurdered(Entity arg0)
method_20690(class_1297 arg0)
m_otzexgpv(C_astfners arg0)
notifyDeath(Entity killer)
func_223361_a(Entity arg0)
public void
a(ayd<gf> arg0)
releasePoi(MemoryModuleType<GlobalPos> arg0)
method_19176(class_4140<class_4208> arg0)
m_kiobdwbz(C_vbbyoqyw<C_ovcqqyqp> arg0)
releaseTicketFor(MemoryModuleType<GlobalPos> arg0)
func_213742_a(MemoryModuleType<GlobalPos> arg0)
public boolean
f()
canBreed()
method_19184()
m_exbawtoo()
isReadyToBreed()
func_213743_em()
canBreed()
private boolean
fr()
hungry()
method_20698()
m_pwctnevz()
lacksFood()
func_223344_ex()
private void
fs()
eatUntilFull()
method_19185()
m_uyreuuxj()
consumeAvailableFood()
func_213765_en()
public int
g(bfw arg0)
getPlayerReputation(Player arg0)
method_20594(class_1657 arg0)
m_vvktbnvx(C_jzrpycqo arg0)
getReputation(PlayerEntity player)
func_223107_f(PlayerEntity arg0)
private void
v(int arg0)
digestFood(int arg0)
method_19193(int arg0)
m_dnuarqhe(int arg0)
depleteFood(int amount)
func_213758_s(int arg0)
public void
ff()
eatAndDigestFood()
method_20697()
m_adawsril()
eatForBreeding()
func_223346_ep()
public void
b(bqw arg0)
setOffers(MerchantOffers arg0)
method_16917(class_1916 arg0)
m_hnipyvgh(C_eygsjfgm arg0)
setOffers(TradeOfferList offers)
func_213768_b(MerchantOffers arg0)
private boolean
ft()
shouldIncreaseLevel()
method_19188()
m_clijlzqy()
canLevelUp()
func_213741_eu()
private void
fu()
increaseMerchantCareer()
method_16918()
m_llrjmaju()
levelUp()
func_175554_cu()
populateTrades()
protected Component
bJ()
getTypeName()
method_23315()
m_jvbeeoym()
getDefaultName()
func_225513_by_()
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, CompoundTag 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 Villager
b(aag arg0, apy arg1)
getBreedOffspring(ServerLevel arg0, AgableMob arg1)
method_7225(class_3218 arg0, class_1296 arg1)
m_zqqyfxmf(C_bdwnwhiu arg0, C_rswhorqk arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
func_241840_a(ServerWorld arg0, AgeableEntity arg1)
createChild(WorldServer arg0, EntityAgeable arg1)
public void
a(aag arg0, aql arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
m_vindekkr(C_bdwnwhiu arg0, C_kbpqznyn arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
func_241841_a(ServerWorld arg0, LightningBoltEntity arg1)
onLightningStrike(WorldServer arg0, EntityLightning arg1)
protected void
b(bcv arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
m_avgkrrey(C_uqpzijng arg0)
loot(ItemEntity arg0)
func_175445_a(ItemEntity arg0)
public boolean
i(bmb arg0)
wantsToPickUp(ItemStack arg0)
method_20820(class_1799 arg0)
m_nzdowltt(C_sddaxwyk arg0)
canGather(ItemStack arg0)
func_230293_i_(ItemStack arg0)
public boolean
fg()
hasExcessFood()
method_7234()
m_tawsehpr()
wantsToStartBreeding()
func_175555_cq()
public boolean
fh()
wantsMoreFood()
method_7239()
m_vtyepvne()
canBreed()
func_175557_cr()
private int
fv()
countFoodPointsInInventory()
method_19189()
m_pagkeccz()
getAvailableFood()
func_213751_ew()
public boolean
fi()
hasFarmSeeds()
method_19623()
m_nhfaurjc()
hasSeedToPlant()
func_175556_cs()
canPlant()
protected void
eW()
updateTrades()
method_7237()
m_dnvdzaow()
fillRecipes()
func_213712_ef()
public void
a(aag arg0, bfj arg1, long arg2)
gossip(ServerLevel arg0, Villager arg1, long arg2)
method_19177(class_3218 arg0, class_1646 arg1, long arg2)
m_ckcvyxav(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
talkWithVillager(ServerWorld world, VillagerEntity villager, long time)
func_242368_a(ServerWorld arg0, VillagerEntity arg1, long arg2)
private void
fw()
maybeDecayGossip()
method_20696()
m_yuvzulud()
decayGossip()
func_223343_eC()
public void
a(aag arg0, long arg1, int arg2)
spawnGolemIfNeeded(ServerLevel arg0, long arg1, int arg2)
method_20688(class_3218 arg0, long arg1, int arg2)
m_oeanogpu(C_bdwnwhiu arg0, long arg1, int arg2)
summonGolem(ServerWorld world, long time, int arg2)
func_242367_a(ServerWorld arg0, long arg1, int arg2)
public boolean
a(long arg0)
wantsToSpawnGolem(long arg0)
method_20687(long arg0)
m_nxwgfbdy(long arg0)
canSummonGolem(long time)
func_223350_a(long arg0)
private IronGolem
d(aag arg0)
trySpawnGolem(ServerLevel arg0)
method_19190(class_3218 arg0)
m_ajahbutr(C_bdwnwhiu arg0)
spawnIronGolem(ServerWorld world)
func_213759_ey(ServerWorld arg0)
private BlockPos
a(fx arg0, double arg1, double arg2)
findSpawnPositionForGolemInColumn(BlockPos arg0, double arg1, double arg2)
method_30023(class_2338 arg0, double arg1, double arg2)
m_umrecnhh(C_hynzadkk arg0, double arg1, double arg2)
method_30023(BlockPos arg0, double arg1, double arg2)
func_241433_a_(BlockPos arg0, double arg1, double arg2)
public void
a(azl arg0, aqa arg1)
onReputationEventFrom(ReputationEventType arg0, Entity arg1)
method_18870(class_4151 arg0, class_1297 arg1)
m_cczinwkh(C_wdatdqcy arg0, C_astfners arg1)
onInteractionWith(EntityInteraction arg0, Entity arg1)
func_213739_a(IReputationType arg0, Entity arg1)
public int
eL()
getVillagerXp()
method_19269()
m_lowowysu()
getExperience()
func_213708_dV()
getExperience()
public void
u(int arg0)
setVillagerXp(int arg0)
method_19625(int arg0)
m_haedgvxm(int arg0)
setExperience(int amount)
func_213761_t(int arg0)
setExperience(int arg0)
private void
fx()
resetNumberOfRestocks()
method_20821()
m_ohxwrhdt()
clearDailyRestockCount()
func_223718_eH()
public GossipContainer
fj()
getGossips()
method_21651()
m_lebhfnus()
getGossip()
func_223722_es()
public void
a(mt arg0)
setGossips(Tag arg0)
method_21650(class_2520 arg0)
m_xgtnqlqm(C_bkvarokd arg0)
setGossipDataFromTag(Tag tag)
func_223716_a(INBT arg0)
protected void
M()
sendDebugPackets()
method_18409()
m_xozpkuaw()
sendAiDebugData()
func_213387_K()
public void
b(fx arg0)
startSleeping(BlockPos arg0)
method_18403(class_2338 arg0)
m_biowqfdg(C_hynzadkk arg0)
sleep(BlockPos arg0)
func_213342_e(BlockPos arg0)
entitySleep(BlockPosition arg0)
public void
en()
stopSleeping()
method_18400()
m_redjlchk()
wakeUp()
func_213366_dy()
entityWakeup()
private boolean
b(long arg0)
golemSpawnConditionsMet(long arg0)
method_20741(long arg0)
m_cvtoctsp(long arg0)
hasRecentlyWorkedAndSlept(long worldTime)
func_223352_d(long arg0)
public void
a(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
m_kkieextx(byte arg0)
handleStatus(byte arg0)
func_70103_a(byte arg0)