net.minecraft.world.entity.npc

public abstract class AbstractVillager

extends AgeableMob implements InventoryCarrier, Npc, Merchant

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, InventoryCarrier, Npc, Merchant

bjm
net.minecraft.world.entity.npc.AbstractVillager
net.minecraft.class_3988
net.minecraft.entity.passive.MerchantEntity
net.minecraft.src.C_1114_
net.minecraft.world.entity.npc.EntityVillagerAbstract

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bV
DATA_UNHAPPY_COUNTER
field_19295
HEAD_ROLLING_TIME_LEFT
f_35262_
public static final int
bT
VILLAGER_SLOT_OFFSET
field_30599
field_30599
f_149991_
private static final int
bW
VILLAGER_INVENTORY_SIZE
field_30600
INVENTORY_SIZE
f_149992_
private Player
bX
tradingPlayer
field_17722
customer
f_35263_
protected MerchantOffers
bU
offers
field_17721
offers
f_35261_
private final SimpleContainer
bY
inventory
field_17723
inventory
f_35264_

Constructor summary

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

Method summary

Modifier and TypeMethod
public SpawnGroupData
a(bxe arg0, arz arg1, aty arg2, aum arg3, na 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, NbtCompound arg4)
m_6518_(C_1618_ p_35283_, C_469_ p_35284_, C_529_ p_35285_, C_542_ p_35286_, C_4917_ arg4)
prepare(WorldAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
public int
p()
getUnhappyCounter()
method_20506()
getHeadRollingTimeLeft()
m_35303_()
public void
t(int arg0)
setUnhappyCounter(int arg0)
method_20507(int arg0)
setHeadRollingTimeLeft(int ticks)
m_35319_(int arg0)
public int
t()
getVillagerXp()
method_19269()
getExperience()
m_7809_()
getExperience()
protected float
b(aug arg0, ath arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6431_(C_535_ p_35298_, C_510_ arg1)
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
initDatawatcher()
public void
f(bke arg0)
setTradingPlayer(Player arg0)
method_8259(class_1657 arg0)
setCurrentCustomer(PlayerEntity arg0)
m_7189_(C_1141_ arg0)
setTradingPlayer(EntityHuman arg0)
public Player
fw()
getTradingPlayer()
method_8257()
getCurrentCustomer()
m_7962_()
getTrader()
public boolean
fx()
isTrading()
method_18009()
hasCustomer()
m_35306_()
public MerchantOffers
fy()
getOffers()
method_8264()
getOffers()
m_6616_()
getOffers()
public void
a(bvo arg0)
overrideOffers(MerchantOffers arg0)
method_8261(class_1916 arg0)
setOffersFromServer(TradeOfferList arg0)
m_6255_(C_1552_ arg0)
public void
u(int arg0)
overrideXp(int arg0)
method_19271(int arg0)
setExperienceFromServer(int arg0)
m_6621_(int arg0)
setForcedExperience(int arg0)
public void
a(bvn arg0)
notifyTrade(MerchantOffer arg0)
method_8262(class_1914 arg0)
trade(TradeOffer arg0)
m_6996_(C_1551_ arg0)
protected abstract void
b(bvn arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
afterUsing(TradeOffer offer)
m_8058_(C_1551_ arg0)
public boolean
fz()
showProgressBar()
method_19270()
isLeveledMerchant()
m_7826_()
isRegularVillager()
public void
m(bqq arg0)
notifyTradeUpdated(ItemStack arg0)
method_8258(class_1799 arg0)
onSellingItem(ItemStack arg0)
m_7713_(C_1391_ arg0)
public SoundEvent
fA()
getNotifyTradeSound()
method_18010()
getYesSound()
m_7596_()
getTradeSound()
protected SoundEvent
v(boolean arg0)
getTradeUpdatedSound(boolean arg0)
method_18012(boolean arg0)
getTradingSound(boolean sold)
m_6068_(boolean arg0)
public void
fB()
playCelebrateSound()
method_20010()
playCelebrateSound()
m_35310_()
public void
b(na arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
saveData(NBTTagCompound arg0)
public void
a(na arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
loadData(NBTTagCompound arg0)
public Entity
b(abr arg0)
changeDimension(ServerLevel arg0)
method_5731(class_3218 arg0)
moveToWorld(ServerWorld arg0)
m_5489_(C_12_ arg0)
protected void
fC()
stopTrading()
method_19181()
resetCustomer()
m_7996_()
public void
a(asq arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
m_6667_(C_489_ arg0)
die(DamageSource arg0)
protected void
a(ht arg0)
addParticlesAroundSelf(ParticleOptions arg0)
method_18007(class_2394 arg0)
produceParticles(ParticleEffect parameters)
m_35287_(C_4756_ arg0)
public boolean
a(bke arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity arg0)
m_6573_(C_1141_ arg0)
public SimpleContainer
fD()
getInventory()
method_18011()
getInventory()
m_141944_()
getInventory()
public SlotAccess
k(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)
public Level
fE()
getLevel()
method_8260()
getMerchantWorld()
m_7133_()
getWorld()
protected abstract void
fF()
updateTrades()
method_7237()
fillRecipes()
m_7604_()
protected void
a(bvo arg0, bjv$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)
m_35277_(C_1552_ p_35279_, C_1122_$C_1128_[] p_35280_, int arg2)
public Vec3
n(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
method_30951(float arg0)
m_7398_(float arg0)