net.minecraft.world.entity.ai.behavior

public class ShowTradesToPlayer

extends Behavior<Villager>

asf
net.minecraft.world.entity.ai.behavior.ShowTradesToPlayer
net.minecraft.class_4130
net.minecraft.entity.ai.brain.task.HoldTradeOffersTask
net.minecraft.entity.ai.brain.task.ShowWaresTask
net.minecraft.server.v1_16_R1.BehaviorTradePlayer

Field summary

Modifier and TypeField
private ItemStack
b
playerItemStack
field_18392
customerHeldStack
field_220559_a
private final List<ItemStack>
c
displayItems
field_18393
offers
field_220560_b
private int
d
cycleCounter
field_18394
offerShownTicks
field_220561_c
private int
e
displayIndex
field_18395
offerIndex
field_220562_d
private int
f
lookTime
field_18396
ticksLeft
field_220563_e

Constructor summary

ModifierConstructor
public (int minRunTime, int maxRunTime)

Method summary

Modifier and TypeMethod
public boolean
a(zd arg0, bdp arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19599(class_3218 arg0, class_1646 arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
func_212832_a_(ServerWorld arg0, VillagerEntity arg1)
public boolean
a(zd arg0, bdp 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)
func_212834_g_(ServerWorld arg0, VillagerEntity arg1, long arg2)
public void
b(zd arg0, bdp 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)
func_212831_a_(ServerWorld arg0, VillagerEntity arg1, long arg2)
public void
c(zd arg0, bdp 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)
func_212833_d_(ServerWorld arg0, VillagerEntity arg1, long arg2)
public void
d(zd arg0, bdp 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)
func_212835_f_(ServerWorld arg0, VillagerEntity arg1, long arg2)
private void
a(aoy arg0, bdp arg1)
findItemsToDisplay(LivingEntity arg0, Villager arg1)
method_19027(class_1309 arg0, class_1646 arg1)
setupOffers(LivingEntity customer, VillagerEntity villager)
func_220556_a(LivingEntity arg0, VillagerEntity arg1)
private void
a(bdp arg0)
displayFirstItem(Villager arg0)
method_19598(class_1646 arg0)
holdOffer(VillagerEntity villager)
func_220558_a(VillagerEntity arg0)
private void
b(bdp arg0)
updateDisplayItems(Villager arg0)
method_19601(class_1646 arg0)
loadPossibleOffers(VillagerEntity villager)
func_220555_b(VillagerEntity arg0)
private boolean
a(boz arg0)
playerItemStackMatchesCostOfOffer(MerchantOffer arg0)
method_19028(class_1914 arg0)
isPossible(TradeOffer offer)
func_220554_a(MerchantOffer arg0)
private LivingEntity
c(bdp arg0)
lookAtTarget(Villager arg0)
method_19603(class_1646 arg0)
findPotentialCustomer(VillagerEntity villager)
func_220557_c(VillagerEntity arg0)
private void
d(bdp arg0)
displayCyclingItems(Villager arg0)
method_19026(class_1646 arg0)
refreshShownOffer(VillagerEntity villager)
func_220553_d(VillagerEntity arg0)