net.minecraft.world.entity.ai.behavior

public class TradeWithVillager

extends Behavior<Villager>

All mapped superinterfaces:

BehaviorControl

bio
net.minecraft.world.entity.ai.behavior.TradeWithVillager
net.minecraft.class_4126
net.minecraft.unmapped.C_xshnkqvx
net.minecraft.entity.ai.brain.task.GatherItemsVillagerTask
net.minecraft.entity.ai.brain.task.ShareItemsVillagerTask
net.minecraft.src.C_643_
net.minecraft.world.entity.ai.behavior.BehaviorTradeVillager

Field summary

Modifier and TypeField
private static final int
c
INTERACT_DIST_SQR
field_30182
f_hafaunvg
MAX_RANGE
MAX_RANGE
f_147996_
private static final float
d
SPEED_MODIFIER
field_30183
f_mfbdoems
WALK_TOGETHER_SPEED
WALK_TOGETHER_SPEED
f_147997_
private Set<Item>
e
trades
field_18389
f_gymbvhsd
items
items
f_24406_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected boolean
a(ahm arg0, bwc arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19015(class_3218 arg0, class_1646 arg1)
m_niokjzsz(C_bdwnwhiu arg0, C_pdtkdbte arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
m_6114_(C_12_ p_24417_, C_1118_ arg1)
protected boolean
a(ahm arg0, bwc arg1, long arg2)
canStillUse(ServerLevel arg0, Villager arg1, long arg2)
method_19016(class_3218 arg0, class_1646 arg1, long arg2)
m_emninqfm(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6737_(C_12_ p_24420_, C_1118_ p_24421_, long arg2)
protected void
b(ahm arg0, bwc arg1, long arg2)
start(ServerLevel arg0, Villager arg1, long arg2)
method_19017(class_3218 arg0, class_1646 arg1, long arg2)
m_lfoukxgi(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6735_(C_12_ p_24438_, C_1118_ p_24439_, long arg2)
protected void
c(ahm arg0, bwc arg1, long arg2)
tick(ServerLevel arg0, Villager arg1, long arg2)
method_19018(class_3218 arg0, class_1646 arg1, long arg2)
m_bpzzslkf(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6725_(C_12_ p_24446_, C_1118_ p_24447_, long arg2)
protected void
d(ahm arg0, bwc arg1, long arg2)
stop(ServerLevel arg0, Villager arg1, long arg2)
method_19019(class_3218 arg0, class_1646 arg1, long arg2)
m_bxnijsko(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
finishRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
finishRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6732_(C_12_ p_24454_, C_1118_ p_24455_, long arg2)
private static Set<Item>
a(bwc arg0, bwc arg1)
figureOutWhatIAmWillingToTrade(Villager arg0, Villager arg1)
method_19611(class_1646 arg0, class_1646 arg1)
m_kysksogm(C_pdtkdbte arg0, C_pdtkdbte arg1)
getGatherableItems(VillagerEntity entity, VillagerEntity target)
getShareableItems(VillagerEntity entity, VillagerEntity target)
m_24422_(C_1118_ p_24423_, C_1118_ p_24424_)
private static void
a(bwc arg0, Set<cdp> arg1, beg arg2)
throwHalfStack(Villager arg0, Set<Item> arg1, LivingEntity arg2)
method_19013(class_1646 arg0, Set<class_1792> arg1, class_1309 arg2)
m_dysnuiuw(C_pdtkdbte arg0, Set<C_vorddnax> arg1, C_usxaxydn arg2)
giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target)
giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target)
m_24425_(C_1118_ p_24426_, Set<C_1381_> p_24427_, C_524_ p_24428_)