net.minecraft.world.entity.npc

public abstract class AbstractVillager

extends AgableMob implements Npc, Merchant

All mapped superinterfaces:

Nameable, CommandSource, Npc, Merchant

bdk
net.minecraft.world.entity.npc.AbstractVillager
net.minecraft.class_3988
net.minecraft.entity.passive.AbstractTraderEntity
net.minecraft.entity.merchant.villager.AbstractVillagerEntity
net.minecraft.server.v1_16_R1.EntityVillagerAbstract

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bw
DATA_UNHAPPY_COUNTER
field_19295
HEAD_ROLLING_TIME_LEFT
field_222820_bA
private Player
bx
tradingPlayer
field_17722
customer
field_213725_bA
tradingPlayer
protected MerchantOffers
bv
offers
field_17721
offers
field_213724_bz
trades
private final SimpleContainer
by
inventory
field_17723
inventory
field_213722_bB
inventory

Constructor summary

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

Method summary

Modifier and TypeMethod
public SpawnGroupData
a(bqc arg0, ane arg1, apb arg2, apo arg3, le arg4)
finalizeSpawn(LevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_1936 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(WorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, CompoundTag arg4)
func_213386_a(IWorld arg0, DifficultyInstance arg1, SpawnReason arg2, ILivingEntityData arg3, CompoundNBT arg4)
prepare(GeneratorAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
public int
eL()
getUnhappyCounter()
method_20506()
getHeadRollingTimeLeft()
func_213719_ec()
public void
s(int arg0)
setUnhappyCounter(int arg0)
method_20507(int arg0)
setHeadRollingTimeLeft(int ticks)
func_213720_r(int arg0)
public int
eM()
getVillagerXp()
method_19269()
getExperience()
func_213708_dV()
getExperience()
protected float
b(apj arg0, aon arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
func_213348_b(Pose arg0, EntitySize arg1)
protected void
e()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
f(bec arg0)
setTradingPlayer(Player arg0)
method_8259(class_1657 arg0)
setCurrentCustomer(PlayerEntity arg0)
func_70932_a_(PlayerEntity arg0)
setTradingPlayer(EntityHuman arg0)
public Player
eN()
getTradingPlayer()
method_8257()
getCurrentCustomer()
func_70931_l_()
getTrader()
public boolean
eO()
isTrading()
method_18009()
hasCustomer()
func_213716_dX()
public MerchantOffers
eP()
getOffers()
method_8264()
getOffers()
func_213706_dY()
getOffers()
public void
t(int arg0)
overrideXp(int arg0)
method_19271(int arg0)
setExperienceFromServer(int arg0)
func_213702_q(int arg0)
setForcedExperience(int arg0)
public void
a(boz arg0)
notifyTrade(MerchantOffer arg0)
method_8262(class_1914 arg0)
trade(TradeOffer arg0)
func_213704_a(MerchantOffer arg0)
protected abstract void
b(boz arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
afterUsing(TradeOffer offer)
func_213713_b(MerchantOffer arg0)
public boolean
eQ()
showProgressBar()
method_19270()
isLeveledTrader()
func_213705_dZ()
isRegularVillager()
public void
k(bki arg0)
notifyTradeUpdated(ItemStack arg0)
method_8258(class_1799 arg0)
onSellingItem(ItemStack arg0)
func_110297_a_(ItemStack arg0)
public SoundEvent
eR()
getNotifyTradeSound()
method_18010()
getYesSound()
func_213714_ea()
getTradeSound()
protected SoundEvent
t(boolean arg0)
getTradeUpdatedSound(boolean arg0)
method_18012(boolean arg0)
getTradingSound(boolean sold)
func_213721_r(boolean arg0)
public void
eS()
playCelebrateSound()
method_20010()
playCelebrateSound()
func_213711_eb()
public void
b(le arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToTag(CompoundTag arg0)
func_213281_b(CompoundNBT arg0)
saveData(NBTTagCompound arg0)
public void
a(le arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromTag(CompoundTag arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
public Entity
a(zd arg0)
changeDimension(ServerLevel arg0)
method_5731(class_3218 arg0)
changeDimension(ServerWorld arg0)
func_241206_a_(ServerWorld arg0)
protected void
eT()
stopTrading()
method_19181()
resetCustomer()
func_213750_eg()
public void
a(anw arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
func_70645_a(DamageSource arg0)
die(DamageSource arg0)
public boolean
a(bec arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity arg0)
func_184652_a(PlayerEntity arg0)
public SimpleContainer
eU()
getInventory()
method_18011()
getInventory()
func_213715_ed()
getInventory()
public boolean
a_(int arg0, bki arg1)
setSlot(int arg0, ItemStack arg1)
method_5758(int arg0, class_1799 arg1)
equip(int arg0, ItemStack arg1)
func_174820_d(int arg0, ItemStack arg1)
public Level
eV()
getLevel()
method_8260()
getTraderWorld()
func_190670_t_()
getWorld()
protected abstract void
eW()
updateTrades()
method_7237()
fillRecipes()
func_213712_ef()
protected void
a(bpa arg0, bdt$f[] arg1, int arg2)
addOffersFromItemListings(MerchantOffers arg0, VillagerTrades$ItemListing[] arg1, int arg2)
method_19170(class_1916 arg0, class_3853$class_1652[] arg1, int arg2)
fillRecipesFromPool(TraderOfferList recipeList, TradeOffers$Factory[] pool, int count)
func_213717_a(MerchantOffers arg0, VillagerTrades$ITrade[] arg1, int arg2)
public void
a(bpa arg0)
overrideOffers(MerchantOffers arg0)
method_8261(class_1916 arg0)
setOffersFromServer(TraderOfferList arg0)
func_213703_a(MerchantOffers arg0)
protected void
a(hf arg0)
addParticlesAroundSelf(ParticleOptions arg0)
method_18007(class_2394 arg0)
produceParticles(ParticleEffect parameters)
func_213718_a(IParticleData arg0)