net.minecraft.world.entity.ai.behavior

public class ShowTradesToPlayer

extends Behavior<Villager>

bbp
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
net.minecraft.src.C_630_
net.minecraft.world.entity.ai.behavior.BehaviorTradePlayer

Field summary

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

Constructor summary

ModifierConstructor
public (int minRunTime, int maxRunTime)

Method summary

Modifier and TypeMethod
public boolean
a(adw arg0, bnw 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 arg0, VillagerEntity arg1)
m_6114_(C_12_ p_24107_, C_1118_ arg1)
public boolean
a(adw arg0, bnw 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 arg0, VillagerEntity arg1, long arg2)
m_6737_(C_12_ p_24110_, C_1118_ p_24111_, long arg2)
public void
b(adw arg0, bnw 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 arg0, VillagerEntity arg1, long arg2)
m_6735_(C_12_ p_24125_, C_1118_ p_24126_, long arg2)
public void
c(adw arg0, bnw 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 arg0, VillagerEntity arg1, long arg2)
m_6725_(C_12_ p_24135_, C_1118_ p_24136_, long arg2)
public void
d(adw arg0, bnw 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 arg0, VillagerEntity arg1, long arg2)
m_6732_(C_12_ p_24145_, C_1118_ p_24146_, long arg2)
private void
a(axy arg0, bnw 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)
m_24112_(C_524_ p_24114_, C_1118_ arg1)
private void
a(bnw arg0)
displayFirstItem(Villager arg0)
method_19598(class_1646 arg0)
m_tpnsdkpx(C_pdtkdbte arg0)
holdOffer(VillagerEntity villager)
holdOffer(VillagerEntity villager)
m_24115_(C_1118_ arg0)
private void
b(bnw arg0)
updateDisplayItems(Villager arg0)
method_19601(class_1646 arg0)
m_pyoehwmr(C_pdtkdbte arg0)
loadPossibleOffers(VillagerEntity villager)
loadPossibleOffers(VillagerEntity villager)
m_24127_(C_1118_ arg0)
private boolean
a(bzt arg0)
playerItemStackMatchesCostOfOffer(MerchantOffer arg0)
method_19028(class_1914 arg0)
m_iajsysoa(C_argwryfu arg0)
isPossible(TradeOffer offer)
isPossible(TradeOffer offer)
m_24117_(C_1551_ arg0)
private static void
c(bnw arg0)
clearHeldItem(Villager arg0)
method_37448(class_1646 arg0)
m_ngakpftf(C_pdtkdbte arg0)
holdNothing(VillagerEntity villager)
holdNothing(VillagerEntity villager)
m_182373_(C_1118_ p_182374_)
private static void
a(bnw arg0, buw 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)
m_182370_(C_1118_ p_182371_, C_1391_ p_182372_)
private LivingEntity
d(bnw arg0)
lookAtTarget(Villager arg0)
method_19603(class_1646 arg0)
m_irxehaao(C_pdtkdbte arg0)
findPotentialCustomer(VillagerEntity villager)
findPotentialCustomer(VillagerEntity villager)
m_24137_(C_1118_ arg0)
private void
e(bnw arg0)
displayCyclingItems(Villager arg0)
method_19026(class_1646 arg0)
m_govuwqjn(C_pdtkdbte arg0)
refreshShownOffer(VillagerEntity villager)
refreshShownOffer(VillagerEntity villager)
m_24147_(C_1118_ arg0)