net.minecraft.world.entity.npc

public class WanderingTrader

extends AbstractVillager implements Consumable$OverrideConsumeSound

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, InventoryCarrier, Npc, Merchant, Consumable$OverrideConsumeSound

coq
net.minecraft.world.entity.npc.WanderingTrader
net.minecraft.class_3989
net.minecraft.entity.passive.WanderingTraderEntity
net.minecraft.world.entity.npc.EntityVillagerTrader

Field summary

Modifier and TypeField
private static final int
ca
NUMBER_OF_TRADE_OFFERS
field_30629
field_30629
private BlockPos
cb
wanderTarget
field_17758
wanderTarget
private int
cc
despawnDelay
field_17725
despawnDelay

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
E()
registerGoals()
method_5959()
initGoals()
public AgeableMob
a(ard arg0, bud arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
gv()
showProgressBar()
method_19270()
isLeveledMerchant()
public InteractionResult
b(coy arg0, bsk arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected void
gz()
updateTrades()
method_7237()
fillRecipes()
private void
gC()
experimentalUpdateTrades()
method_52557()
fillRebalancedRecipes()
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
protected void
b(dfg arg0)
rewardTradeXp(MerchantOffer arg0)
method_18008(class_1914 arg0)
afterUsing(TradeOffer arg0)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(btc arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
public SoundEvent
j(cwq arg0)
getConsumeSound(ItemStack arg0)
method_18807(class_1799 arg0)
getConsumeSound(ItemStack arg0)
protected SoundEvent
x(boolean arg0)
getTradeUpdatedSound(boolean arg0)
method_18012(boolean arg0)
getTradingSound(boolean arg0)
public SoundEvent
gw()
getNotifyTradeSound()
method_18010()
getYesSound()
public void
t(int arg0)
setDespawnDelay(int arg0)
method_18013(int arg0)
setDespawnDelay(int despawnDelay)
public int
gB()
getDespawnDelay()
method_18014()
getDespawnDelay()
public void
d_()
aiStep()
method_6007()
tickMovement()
private void
gD()
maybeDespawn()
method_20508()
tickDespawnDelay()
public void
h(ji arg0)
setWanderTarget(BlockPos arg0)
method_18069(class_2338 arg0)
setWanderTarget(BlockPos wanderTarget)
BlockPos
gF()
getWanderTarget()
method_18065()
getWanderTarget()