net.minecraft.world.entity.npc

public abstract class AbstractVillager

extends AgableMob implements Npc, Merchant

All mapped superinterfaces:

Nameable, CommandSource, Npc, Merchant

bfb
net.minecraft.world.entity.npc.AbstractVillager
net.minecraft.class_3988
net.minecraft.entity.passive.MerchantEntity
net.minecraft.entity.merchant.villager.AbstractVillagerEntity
net.minecraft.server.v1_16_R2.EntityVillagerAbstract

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bp
DATA_UNHAPPY_COUNTER
field_19295
HEAD_ROLLING_TIME_LEFT
field_222820_bA
private Player
bq
tradingPlayer
field_17722
customer
field_213725_bA
tradingPlayer
protected MerchantOffers
bo
offers
field_17721
offers
field_213724_bz
trades
private final SimpleContainer
br
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(bsh arg0, aop arg1, aqm arg2, aqz 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)
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 int
eK()
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
eL()
getVillagerXp()
method_19269()
getExperience()
func_213708_dV()
getExperience()
protected float
b(aqu arg0, apy 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(bft arg0)
setTradingPlayer(Player arg0)
method_8259(class_1657 arg0)
setCurrentCustomer(PlayerEntity arg0)
func_70932_a_(PlayerEntity arg0)
setTradingPlayer(EntityHuman arg0)
public Player
eM()
getTradingPlayer()
method_8257()
getCurrentCustomer()
func_70931_l_()
getTrader()
public boolean
eN()
isTrading()
method_18009()
hasCustomer()
func_213716_dX()
public MerchantOffers
eO()
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(bqs arg0)
notifyTrade(MerchantOffer arg0)
method_8262(class_1914 arg0)
trade(TradeOffer arg0)
func_213704_a(MerchantOffer arg0)
protected abstract void
b(bqs arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
afterUsing(TradeOffer offer)
func_213713_b(MerchantOffer arg0)
public boolean
eP()
showProgressBar()
method_19270()
isLeveledMerchant()
func_213705_dZ()
isRegularVillager()
public void
k(bly arg0)
notifyTradeUpdated(ItemStack arg0)
method_8258(class_1799 arg0)
onSellingItem(ItemStack arg0)
func_110297_a_(ItemStack arg0)
public SoundEvent
eQ()
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
eR()
playCelebrateSound()
method_20010()
playCelebrateSound()
func_213711_eb()
public void
b(md arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 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)
readCustomDataFromTag(CompoundTag arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
public Entity
b(aag arg0)
changeDimension(ServerLevel arg0)
method_5731(class_3218 arg0)
moveToWorld(ServerWorld arg0)
func_241206_a_(ServerWorld arg0)
protected void
eT()
stopTrading()
method_19181()
resetCustomer()
func_213750_eg()
public void
a(aph arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
func_70645_a(DamageSource arg0)
die(DamageSource arg0)
public boolean
a(bft 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, bly 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()
getMerchantWorld()
func_190670_t_()
getWorld()
protected abstract void
eW()
updateTrades()
method_7237()
fillRecipes()
func_213712_ef()
protected void
a(bqt arg0, bfk$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(TradeOfferList recipeList, TradeOffers$Factory[] pool, int count)
func_213717_a(MerchantOffers arg0, VillagerTrades$ITrade[] arg1, int arg2)
public void
a(bqt arg0)
overrideOffers(MerchantOffers arg0)
method_8261(class_1916 arg0)
setOffersFromServer(TradeOfferList 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)
public Vec3
o(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
method_30951(float arg0)
func_241843_o(float arg0)