net.minecraft.world.entity.npc

public abstract class AbstractVillager

extends AgableMob implements Npc, Merchant

All mapped superinterfaces:

Nameable, CommandSource, Npc, Merchant

avp
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_14_R1.EntityVillagerAbstract

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bA
DATA_UNHAPPY_COUNTER
field_19295
HEAD_ROLLING_TIME_LEFT
field_222820_bA
private Player
bB
tradingPlayer
field_17722
customer
field_213725_bA
tradingPlayer
protected MerchantOffers
bz
offers
field_17721
offers
field_213724_bz
trades
private final SimpleContainer
bC
inventory
field_17723
inventory
field_213722_bB
inventory

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
dV()
getUnhappyCounter()
method_20506()
getHeadRollingTimeLeft()
func_213719_ec()
public void
r(int arg0)
setUnhappyCounter(int arg0)
method_20507(int arg0)
setHeadRollingTimeLeft(int ticks)
func_213720_r(int arg0)
public int
dW()
getVillagerXp()
method_19269()
getExperience()
func_213708_dV()
getExperience()
protected float
b(ajh arg0, aip 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
u_()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
e(awg arg0)
setTradingPlayer(Player arg0)
method_8259(class_1657 arg0)
setCurrentCustomer(PlayerEntity arg0)
func_70932_a_(PlayerEntity arg0)
setTradingPlayer(EntityHuman arg0)
public Player
dX()
getTradingPlayer()
method_8257()
getCurrentCustomer()
func_70931_l_()
getTrader()
public boolean
dY()
isTrading()
method_18009()
hasCustomer()
func_213716_dX()
public MerchantOffers
dZ()
getOffers()
method_8264()
getOffers()
func_213706_dY()
getOffers()
public void
s(int arg0)
overrideXp(int arg0)
method_19271(int arg0)
setExperienceFromServer(int arg0)
func_213702_q(int arg0)
public void
a(bgu arg0)
notifyTrade(MerchantOffer arg0)
method_8262(class_1914 arg0)
trade(TradeOffer arg0)
func_213704_a(MerchantOffer arg0)
protected abstract void
b(bgu arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
afterUsing(TradeOffer offer)
func_213713_b(MerchantOffer arg0)
public boolean
ea()
showProgressBar()
method_19270()
isLevelledTrader()
func_213705_dZ()
public void
i(bcj arg0)
notifyTradeUpdated(ItemStack arg0)
method_8258(class_1799 arg0)
onSellingItem(ItemStack arg0)
func_110297_a_(ItemStack arg0)
public SoundEvent
eb()
getNotifyTradeSound()
method_18010()
func_213714_ea()
protected SoundEvent
r(boolean arg0)
getTradeUpdatedSound(boolean arg0)
method_18012(boolean arg0)
getTradingSound(boolean sold)
func_213721_r(boolean arg0)
public void
ec()
playCelebrateSound()
method_20010()
playCelebrateSound()
func_213711_eb()
public void
b(id arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToTag(CompoundTag arg0)
func_213281_b(CompoundNBT arg0)
public void
a(id arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromTag(CompoundTag arg0)
func_70037_a(CompoundNBT arg0)
public Entity
a(byn arg0)
changeDimension(DimensionType arg0)
method_5731(class_2874 arg0)
changeDimension(DimensionType arg0)
func_212321_a(DimensionType arg0)
protected void
ed()
stopTrading()
method_19181()
resetCustomer()
func_213750_eg()
public void
a(ahx arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
func_70645_a(DamageSource arg0)
die(DamageSource arg0)
public boolean
a(awg arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity arg0)
func_184652_a(PlayerEntity arg0)
public SimpleContainer
ee()
getInventory()
method_18011()
getInventory()
func_213715_ed()
getInventory()
public boolean
a_(int arg0, bcj 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
eg()
getLevel()
method_8260()
getTraderWorld()
func_190670_t_()
getWorld()
protected abstract void
eh()
updateTrades()
method_7237()
fillRecipes()
func_213712_ef()
protected void
a(bgv arg0, avx$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(bgv arg0)
overrideOffers(MerchantOffers arg0)
method_8261(class_1916 arg0)
setOffersFromServer(TraderOfferList arg0)
func_213703_a(MerchantOffers arg0)
protected void
a(gf arg0)
addParticlesAroundSelf(ParticleOptions arg0)
method_18007(class_2394 arg0)
produceParticles(ParticleEffect parameters)
func_213718_a(IParticleData arg0)