net.minecraft.world.entity.ai.behavior

public class ShowTradesToPlayer

extends Behavior<Villager>

All mapped superinterfaces:

BehaviorControl

cbd
net.minecraft.world.entity.ai.behavior.ShowTradesToPlayer
net.minecraft.class_4130
net.minecraft.unmapped.C_efrykufo
net.minecraft.entity.ai.brain.task.HoldTradeOffersTask
net.minecraft.entity.ai.brain.task.HoldTradeOffersTask

Field summary

Modifier and TypeField
private static final int
c
MAX_LOOK_TIME
field_30167
f_xiahynis
RUN_INTERVAL
RUN_INTERVAL
private static final int
d
STARTING_LOOK_TIME
field_30168
f_zytrdzez
OFFER_SHOWING_INTERVAL
OFFER_SHOWING_INTERVAL
private ItemStack
e
playerItemStack
field_18392
f_oohwhnfs
customerHeldStack
customerHeldStack
private final List<ItemStack>
f
displayItems
field_18393
f_aghakjch
offers
offers
private int
g
cycleCounter
field_18394
f_enjreeoj
offerShownTicks
offerShownTicks
private int
h
displayIndex
field_18395
f_guipgaoo
offerIndex
offerIndex
private int
i
lookTime
field_18396
f_plpxadsy
ticksLeft
ticksLeft

Constructor summary

ModifierConstructor
public (int minRunTime, int maxRunTime)

Method summary

Modifier and TypeMethod
public boolean
a(arq arg0, cqo arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19599(class_3218 arg0, class_1646 arg1)
m_dzttroao(C_bdwnwhiu arg0, C_pdtkdbte arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
shouldRun(ServerWorld world, VillagerEntity arg1)
public boolean
a(arq arg0, cqo arg1, long arg2)
canStillUse(ServerLevel arg0, Villager arg1, long arg2)
method_19600(class_3218 arg0, class_1646 arg1, long arg2)
m_maepvxdi(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
shouldKeepRunning(ServerWorld world, VillagerEntity arg1, long arg2)
public void
b(arq arg0, cqo arg1, long arg2)
start(ServerLevel arg0, Villager arg1, long arg2)
method_19602(class_3218 arg0, class_1646 arg1, long arg2)
m_nubnboil(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
run(ServerWorld world, VillagerEntity arg1, long arg2)
public void
c(arq arg0, cqo arg1, long arg2)
tick(ServerLevel arg0, Villager arg1, long arg2)
method_19604(class_3218 arg0, class_1646 arg1, long arg2)
m_yojffnvg(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
keepRunning(ServerWorld world, VillagerEntity arg1, long arg2)
public void
d(arq arg0, cqo arg1, long arg2)
stop(ServerLevel arg0, Villager arg1, long arg2)
method_19605(class_3218 arg0, class_1646 arg1, long arg2)
m_vaedargn(C_bdwnwhiu arg0, C_pdtkdbte arg1, long arg2)
finishRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
finishRunning(ServerWorld world, VillagerEntity arg1, long arg2)
private void
a(bxe arg0, cqo arg1)
findItemsToDisplay(LivingEntity arg0, Villager arg1)
method_19027(class_1309 arg0, class_1646 arg1)
m_dgfdlrvg(C_usxaxydn arg0, C_pdtkdbte arg1)
setupOffers(LivingEntity customer, VillagerEntity villager)
setupOffers(LivingEntity customer, VillagerEntity villager)
private void
a(cqo arg0)
displayFirstItem(Villager arg0)
method_19598(class_1646 arg0)
m_tpnsdkpx(C_pdtkdbte arg0)
holdOffer(VillagerEntity villager)
holdOffer(VillagerEntity villager)
private void
b(cqo arg0)
updateDisplayItems(Villager arg0)
method_19601(class_1646 arg0)
m_pyoehwmr(C_pdtkdbte arg0)
loadPossibleOffers(VillagerEntity villager)
loadPossibleOffers(VillagerEntity villager)
private boolean
a(dhy arg0)
playerItemStackMatchesCostOfOffer(MerchantOffer arg0)
method_19028(class_1914 arg0)
m_iajsysoa(C_argwryfu arg0)
isPossible(TradeOffer offer)
isPossible(TradeOffer offer)
private static void
c(cqo arg0)
clearHeldItem(Villager arg0)
method_37448(class_1646 arg0)
m_ngakpftf(C_pdtkdbte arg0)
holdNothing(VillagerEntity villager)
holdNothing(VillagerEntity villager)
private static void
a(cqo arg0, czd arg1)
displayAsHeldItem(Villager arg0, ItemStack arg1)
method_37447(class_1646 arg0, class_1799 arg1)
m_ejxgfcum(C_pdtkdbte arg0, C_sddaxwyk arg1)
holdOffer(VillagerEntity villager, ItemStack stack)
holdOffer(VillagerEntity villager, ItemStack stack)
private LivingEntity
d(cqo arg0)
lookAtTarget(Villager arg0)
method_19603(class_1646 arg0)
m_irxehaao(C_pdtkdbte arg0)
findPotentialCustomer(VillagerEntity villager)
findPotentialCustomer(VillagerEntity villager)
private void
e(cqo arg0)
displayCyclingItems(Villager arg0)
method_19026(class_1646 arg0)
m_govuwqjn(C_pdtkdbte arg0)
refreshShownOffer(VillagerEntity villager)
refreshShownOffer(VillagerEntity villager)