net.minecraft.entity.living.mob.passive

public class VillagerEntity

extends PassiveEntity implements Npc, Trader

All mapped superinterfaces:

Nameable, CommandSource, Npc, SpawnableEntity, Trader

aob
net.minecraft.class_985
net.minecraft.entity.living.mob.passive.VillagerEntity
net.minecraft.entity.passive.EntityVillager
net.minecraft.entity.passive.EntityVillager

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
bC
field_15078
LOGGER
field_190674_bx
LOGGER
private static final DataAttribute<Integer>
bD
field_14789
VILLAGER_DATA
field_184752_bw
PROFESSION
private int
bE
field_3951
profession
field_70955_e
randomTickDivider
private boolean
bF
field_3952
mating
field_70952_f
isMating
private boolean
bG
field_3953
inCaravan
field_70953_g
isPlaying
private Village
bH
field_3950
village
field_70954_d
village
private PlayerEntity
bI
field_3954
customer
field_70962_h
buyingPlayer
private TradeOffers
bJ
field_3955
traderOffers
field_70963_i
buyingList
private int
bK
field_3956
levelUpCountdown
field_70961_j
timeUntilReset
private boolean
bL
field_3948
levelUp
field_70959_by
needsInitilization
private boolean
bM
field_12109
willing
field_175565_bs
isWillingToMate
private int
bN
field_3949
riches
field_70956_bz
wealth
private String
bO
field_5395
lastSuccessfulTradeCustomer
field_82189_bL
lastBuyingPlayer
private int
bP
field_12110
career
field_175563_bv
careerId
private int
bQ
field_12111
careerLevel
field_175562_bw
careerLevel
private boolean
bR
field_5396
convertedZombie
field_82190_bM
isLookingForHome
private boolean
bS
field_12106
hasAgeDependentGoals
field_175564_by
areAdditionalTasksSet
private final SimpleInventory
bT
field_12107
inventory
field_175560_bz
villagerInventory
private static final VillagerEntity$TradeSource[][][][]
bU
field_12108
TRADE_SOURCES
field_175561_bA
DEFAULT_TRADE_LIST_MAP

Constructor summary

ModifierConstructor
public (World world)
public (World world, int profession)

Method summary

Modifier and TypeMethod
protected void
n()
method_13087()
initGoals()
func_184651_r()
initEntityAI()
private void
dJ()
method_11225()
registerAgeDependentGoals()
func_175552_ct()
setAdditionalAItasks()
protected void
l()
method_10926()
onGrowUp()
func_175500_n()
onGrowingAdult()
protected void
bZ()
method_6129()
initAttributes()
func_110147_ax()
registerAttributes()
protected void
J()
method_2633()
mobAiTick()
func_70619_bc()
updateAITasks()
public boolean
a(aog arg0, adk arg1)
method_13079(class_988 arg0, class_2961 arg1)
interactMob(PlayerEntity arg0, InteractionHand arg1)
func_184645_a(EntityPlayer arg0, EnumHand arg1)
processInteract(EntityPlayer arg0, EnumHand arg1)
protected void
x_()
method_2484()
registerSyncedData()
func_70088_a()
registerData()
public void
b(gy arg0)
method_2528(class_322 arg0)
writeCustomNbt(NbtCompound arg0)
func_70014_b(NBTTagCompound arg0)
writeAdditional(NBTTagCompound arg0)
public void
a(gy arg0)
method_2498(class_322 arg0)
readCustomNbt(NbtCompound arg0)
func_70037_a(NBTTagCompound arg0)
readAdditional(NBTTagCompound arg0)
public boolean
H()
method_2631()
canDespawn()
func_70692_ba()
canDespawn()
protected SoundEvent
D()
method_2603()
getAmbientSound()
func_184639_G()
getAmbientSound()
protected SoundEvent
d(aea arg0)
method_15060(class_856 arg0)
getHurtSound(DamageSource arg0)
func_184601_bQ(DamageSource arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
cs()
method_13049()
getDeathSound()
func_184615_bR()
getDeathSound()
protected Identifier
G()
method_13074()
getDefaultLootTable()
func_184647_J()
getLootTable()
public void
d(int arg0)
method_3108(int arg0)
setProfession(int profession)
func_70938_b(int arg0)
setProfession(int professionId)
public int
dy()
method_3115()
getProfession()
func_70946_n()
getProfession()
public boolean
dz()
method_3116()
getMating()
func_70941_o()
isMating()
public void
s(boolean arg0)
method_3113(boolean arg0)
setMating(boolean value)
func_70947_e(boolean arg0)
setMating(boolean mating)
public void
t(boolean arg0)
method_3114(boolean arg0)
setInCaravan(boolean value)
func_70939_f(boolean arg0)
setPlaying(boolean playing)
public boolean
dA()
method_3117()
getInCaravan()
func_70945_p()
isPlaying()
public void
a(afa arg0)
method_6132(class_1699 arg0)
setAttacker(LivingEntity arg0)
func_70604_c(EntityLivingBase arg0)
setRevengeTarget(EntityLivingBase arg0)
public void
a(aea arg0)
method_2580(class_856 arg0)
die(DamageSource arg0)
func_70645_a(DamageSource arg0)
onDeath(DamageSource arg0)
public void
a_(aog arg0)
method_3544(class_988 arg0)
setCustomer(PlayerEntity arg0)
func_70932_a_(EntityPlayer arg0)
setCustomer(EntityPlayer arg0)
public PlayerEntity
M_()
method_3546()
getCustomer()
func_70931_l_()
getCustomer()
public boolean
dB()
method_3118()
hasCustomer()
func_70940_q()
isTrading()
public boolean
u(boolean arg0)
method_11227(boolean arg0)
consumeAvailableFood(boolean updateFirst)
func_175550_n(boolean arg0)
getIsWillingToMate(boolean updateFirst)
public void
v(boolean arg0)
method_11228(boolean arg0)
setWilling(boolean willing)
func_175549_o(boolean arg0)
setIsWillingToMate(boolean isWillingToMate)
public void
a(axe arg0)
method_3542(class_1144 arg0)
trade(TradeOffer arg0)
func_70933_a(MerchantRecipe arg0)
useRecipe(MerchantRecipe arg0)
public void
a(ate arg0)
method_5501(class_1071 arg0)
updateOffer(ItemStack arg0)
func_110297_a_(ItemStack arg0)
verifySellingItem(ItemStack arg0)
public TradeOffers
b_(aog arg0)
method_3545(class_988 arg0)
getOffers(PlayerEntity arg0)
func_70934_b(EntityPlayer arg0)
getRecipes(EntityPlayer arg0)
private void
dK()
method_11226()
levelUp()
func_175554_cu()
populateBuyingList()
public World
c()
method_13682()
getTradeWorld()
func_190670_t_()
getWorld()
public BlockPos
d()
method_13683()
getTradePos()
func_190671_u_()
getPos()
public Text
O()
method_6344()
getDisplayName()
func_145748_c_()
getDisplayName()
public float
bF()
method_2544()
getEyeHeight()
func_70047_e()
getEyeHeight()
public EntityData
a(adj arg0, afj arg1, gy arg2)
method_6156(class_2607 arg0, class_1700 arg1, class_322 arg2)
initialize(LocalDifficulty arg0, EntityData arg1, NbtCompound arg2)
func_204210_a(DifficultyInstance arg0, IEntityLivingData arg1, NBTTagCompound arg2)
onInitialSpawn(DifficultyInstance arg0, IEntityLivingData arg1, NBTTagCompound arg2)
public EntityData
a(adj arg0, afj arg1, gy arg2, boolean arg3)
method_13613(class_2607 arg0, class_1700 arg1, class_322 arg2, boolean arg3)
initialize(LocalDifficulty difficulty, EntityData entityData, NbtCompound entityNbt, boolean hasProfession)
func_190672_a(DifficultyInstance arg0, IEntityLivingData arg1, NBTTagCompound arg2, boolean arg3)
finalizeMobSpawn(DifficultyInstance arg0, IEntityLivingData arg1, NBTTagCompound arg2, boolean arg3)
public void
dC()
method_4567()
setConvertedZombie()
func_82187_q()
setLookingForHome()
public VillagerEntity
b(aeo arg0)
method_4565(class_862 arg0)
makeChild(PassiveEntity mate)
func_90011_a(EntityAgeable arg0)
createChild(EntityAgeable ageable)
public boolean
a(aog arg0)
method_2537(class_988 arg0)
isTameable(PlayerEntity arg0)
func_184652_a(EntityPlayer arg0)
canBeLeashedTo(EntityPlayer arg0)
public void
a(amj arg0)
method_2502(class_961 arg0)
struckByLightning(LightningBoltEntity arg0)
func_70077_a(EntityLightningBolt arg0)
onStruckByLightning(EntityLightningBolt arg0)
public SimpleInventory
dD()
method_11220()
getVillagerInventory()
func_175551_co()
getVillagerInventory()
protected void
a(amm arg0)
method_10984(class_964 arg0)
updateInventory(ItemEntity arg0)
func_175445_a(EntityItem arg0)
updateEquipmentIfNeeded(EntityItem arg0)
private boolean
a(ata arg0)
method_11219(class_1069 arg0)
isFood(Item item)
func_175558_a(Item arg0)
canVillagerPickupItem(Item itemIn)
public boolean
dE()
method_11221()
hasExcessFood()
func_175553_cp()
hasEnoughFoodToBreed()
public boolean
dF()
method_11222()
wantsMoreFood()
func_175555_cq()
canAbondonItems()
public boolean
dG()
method_11223()
hasRoomForHarvest()
func_175557_cr()
wantsMoreFood()
private boolean
p(int arg0)
method_11229(int arg0)
hasFoodPoints(int min)
func_175559_s(int arg0)
hasEnoughItems(int multiplier)
public boolean
dH()
method_11224()
hasPlantableItems()
func_175556_cs()
isFarmItemInInventory()
public boolean
c(int arg0, ate arg1)
method_10956(int arg0, class_1071 arg1)
replaceItem(int arg0, ItemStack arg1)
func_174820_d(int arg0, ItemStack arg1)
replaceItemInInventory(int arg0, ItemStack arg1)
public void
a(axf arg0)
method_3543(class_1145 arg0)
setOffers(TradeOffers arg0)
func_70930_a(MerchantRecipeList arg0)
setRecipes(MerchantRecipeList arg0)
public void
a(byte arg0)
method_2485(byte arg0)
doEvent(byte arg0)
func_70103_a(byte arg0)
handleStatusUpdate(byte arg0)
private void
a(fk arg0)
method_11218(class_4340 arg0)
addParticles(ParticleOptions particleOptions)
func_195400_a(IParticleData arg0)
addParticle(IParticleData arg0)