net.minecraft.world.entity.ai.behavior

public class ShowTradesToPlayer

extends Behavior<Villager>

All mapped superinterfaces:

BehaviorControl

bne
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
c
MAX_LOOK_TIME
field_30167
RUN_INTERVAL
f_147915_
private static final int
d
STARTING_LOOK_TIME
field_30168
OFFER_SHOWING_INTERVAL
f_147916_
private ItemStack
e
playerItemStack
field_18392
customerHeldStack
f_24090_
private final List<ItemStack>
f
displayItems
field_18393
offers
f_24091_
private int
g
cycleCounter
field_18394
offerShownTicks
f_24092_
private int
h
displayIndex
field_18395
offerIndex
f_24093_
private int
i
lookTime
field_18396
ticksLeft
f_24094_

Constructor summary

ModifierConstructor
public (int minRunTime, int maxRunTime)

Method summary

Modifier and TypeMethod
public boolean
a(akq arg0, cbh 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(akq arg0, cbh 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(akq arg0, cbh 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(akq arg0, cbh 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(akq arg0, cbh 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(bjg arg0, cbh 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(cbh arg0)
displayFirstItem(Villager arg0)
method_19598(class_1646 arg0)
holdOffer(VillagerEntity villager)
m_24115_(C_1118_ arg0)
private void
b(cbh arg0)
updateDisplayItems(Villager arg0)
method_19601(class_1646 arg0)
loadPossibleOffers(VillagerEntity villager)
m_24127_(C_1118_ arg0)
private boolean
a(cot arg0)
playerItemStackMatchesCostOfOffer(MerchantOffer arg0)
method_19028(class_1914 arg0)
isPossible(TradeOffer offer)
m_24117_(C_1551_ arg0)
private static void
c(cbh arg0)
clearHeldItem(Villager arg0)
method_37448(class_1646 arg0)
holdNothing(VillagerEntity villager)
m_182373_(C_1118_ p_182374_)
private static void
a(cbh arg0, cjf 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(cbh arg0)
lookAtTarget(Villager arg0)
method_19603(class_1646 arg0)
findPotentialCustomer(VillagerEntity villager)
m_24137_(C_1118_ arg0)
private void
e(cbh arg0)
displayCyclingItems(Villager arg0)
method_19026(class_1646 arg0)
refreshShownOffer(VillagerEntity villager)
m_24147_(C_1118_ arg0)