net.minecraft.world.entity.ai.behavior

public class ShowTradesToPlayer

extends Behavior<Villager>

axm
net.minecraft.world.entity.ai.behavior.ShowTradesToPlayer
net.minecraft.class_4130
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
RUN_INTERVAL
f_147915_
private static final int
c
STARTING_LOOK_TIME
field_30168
OFFER_SHOWING_INTERVAL
f_147916_
private ItemStack
d
playerItemStack
field_18392
customerHeldStack
f_24090_
private final List<ItemStack>
e
displayItems
field_18393
offers
f_24091_
private int
f
cycleCounter
field_18394
offerShownTicks
f_24092_
private int
g
displayIndex
field_18395
offerIndex
f_24093_
private int
h
lookTime
field_18396
ticksLeft
f_24094_

Constructor summary

ModifierConstructor
public (int minRunTime, int maxRunTime)

Method summary

Modifier and TypeMethod
public boolean
a(abr arg0, bjr arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19599(class_3218 arg0, class_1646 arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
m_6114_(C_12_ p_24107_, C_1118_ arg1)
public boolean
a(abr arg0, bjr arg1, long arg2)
canStillUse(ServerLevel arg0, Villager arg1, long arg2)
method_19600(class_3218 arg0, class_1646 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(abr arg0, bjr arg1, long arg2)
start(ServerLevel arg0, Villager arg1, long arg2)
method_19602(class_3218 arg0, class_1646 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(abr arg0, bjr arg1, long arg2)
tick(ServerLevel arg0, Villager arg1, long arg2)
method_19604(class_3218 arg0, class_1646 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(abr arg0, bjr arg1, long arg2)
stop(ServerLevel arg0, Villager arg1, long arg2)
method_19605(class_3218 arg0, class_1646 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(atu arg0, bjr arg1)
findItemsToDisplay(LivingEntity arg0, Villager arg1)
method_19027(class_1309 arg0, class_1646 arg1)
setupOffers(LivingEntity customer, VillagerEntity villager)
m_24112_(C_524_ p_24114_, C_1118_ arg1)
private void
a(bjr arg0)
displayFirstItem(Villager arg0)
method_19598(class_1646 arg0)
holdOffer(VillagerEntity villager)
m_24115_(C_1118_ arg0)
private void
b(bjr arg0)
updateDisplayItems(Villager arg0)
method_19601(class_1646 arg0)
loadPossibleOffers(VillagerEntity villager)
m_24127_(C_1118_ arg0)
private boolean
a(bvn arg0)
playerItemStackMatchesCostOfOffer(MerchantOffer arg0)
method_19028(class_1914 arg0)
isPossible(TradeOffer offer)
m_24117_(C_1551_ arg0)
private static void
c(bjr arg0)
clearHeldItem(Villager arg0)
method_37448(class_1646 arg0)
holdNothing(VillagerEntity villager)
m_182373_(C_1118_ p_182374_)
private static void
a(bjr arg0, bqq arg1)
displayAsHeldItem(Villager arg0, ItemStack arg1)
method_37447(class_1646 arg0, class_1799 arg1)
holdOffer(VillagerEntity villager, ItemStack stack)
m_182370_(C_1118_ p_182371_, C_1391_ p_182372_)
private LivingEntity
d(bjr arg0)
lookAtTarget(Villager arg0)
method_19603(class_1646 arg0)
findPotentialCustomer(VillagerEntity villager)
m_24137_(C_1118_ arg0)
private void
e(bjr arg0)
displayCyclingItems(Villager arg0)
method_19026(class_1646 arg0)
refreshShownOffer(VillagerEntity villager)
m_24147_(C_1118_ arg0)