net.minecraft.world.entity.ai.behavior

public class ShowTradesToPlayer

extends Behavior<Villager>

All mapped superinterfaces:

BehaviorControl

cah
net.minecraft.world.entity.ai.behavior.ShowTradesToPlayer
net.minecraft.class_4130
net.minecraft.entity.ai.brain.task.HoldTradeOffersTask
net.minecraft.world.entity.ai.behavior.BehaviorTradePlayer

Field summary

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

Constructor summary

ModifierConstructor
public (int minRunTime, int maxRunTime)

Method summary

Modifier and TypeMethod
public boolean
a(ash arg0, cpj arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19599(class_3218 arg0, class_1646 arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
public boolean
a(ash arg0, cpj 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)
public void
b(ash arg0, cpj 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)
public void
c(ash arg0, cpj 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)
public void
d(ash arg0, cpj 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)
private void
a(bwg arg0, cpj arg1)
findItemsToDisplay(LivingEntity arg0, Villager arg1)
method_19027(class_1309 arg0, class_1646 arg1)
setupOffers(LivingEntity customer, VillagerEntity villager)
private void
a(cpj arg0)
displayFirstItem(Villager arg0)
method_19598(class_1646 arg0)
holdOffer(VillagerEntity villager)
private void
b(cpj arg0)
updateDisplayItems(Villager arg0)
method_19601(class_1646 arg0)
loadPossibleOffers(VillagerEntity villager)
private boolean
a(dgf arg0)
playerItemStackMatchesCostOfOffer(MerchantOffer arg0)
method_19028(class_1914 arg0)
isPossible(TradeOffer offer)
private static void
c(cpj arg0)
clearHeldItem(Villager arg0)
method_37448(class_1646 arg0)
holdNothing(VillagerEntity villager)
private static void
a(cpj arg0, cxp arg1)
displayAsHeldItem(Villager arg0, ItemStack arg1)
method_37447(class_1646 arg0, class_1799 arg1)
holdOffer(VillagerEntity villager, ItemStack stack)
private LivingEntity
d(cpj arg0)
lookAtTarget(Villager arg0)
method_19603(class_1646 arg0)
findPotentialCustomer(VillagerEntity villager)
private void
e(cpj arg0)
displayCyclingItems(Villager arg0)
method_19026(class_1646 arg0)
refreshShownOffer(VillagerEntity villager)