Class ShowWaresTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.ShowWaresTask
-
public class ShowWaresTask extends Task<VillagerEntity>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Field Summary
Fields Modifier and Type Field Description private int
cycleCounter
private int
displayIndex
private java.util.List<ItemStack>
displayItems
private int
lookTime
private ItemStack
playerItemStack
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description ShowWaresTask(int p_i50343_1_, int p_i50343_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
boolean
checkExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)
private void
displayCyclingItems(VillagerEntity p_220553_1_)
private void
displayFirstItem(VillagerEntity p_220558_1_)
private void
findItemsToDisplay(LivingEntity p_220556_1_, VillagerEntity p_220556_2_)
private LivingEntity
lookAtTarget(VillagerEntity p_220557_1_)
private boolean
playerItemStackMatchesCostOfOffer(MerchantOffer p_220554_1_)
void
start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
void
stop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_)
void
tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
private void
updateDisplayItems(VillagerEntity p_220555_1_)
-
-
-
Method Detail
-
checkExtraStartConditions
public boolean checkExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<VillagerEntity>
-
canStillUse
public boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUse
in classTask<VillagerEntity>
-
start
public void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<VillagerEntity>
-
tick
public void tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
- Overrides:
tick
in classTask<VillagerEntity>
-
stop
public void stop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_)
- Overrides:
stop
in classTask<VillagerEntity>
-
findItemsToDisplay
private void findItemsToDisplay(LivingEntity p_220556_1_, VillagerEntity p_220556_2_)
-
displayFirstItem
private void displayFirstItem(VillagerEntity p_220558_1_)
-
updateDisplayItems
private void updateDisplayItems(VillagerEntity p_220555_1_)
-
playerItemStackMatchesCostOfOffer
private boolean playerItemStackMatchesCostOfOffer(MerchantOffer p_220554_1_)
-
lookAtTarget
private LivingEntity lookAtTarget(VillagerEntity p_220557_1_)
-
displayCyclingItems
private void displayCyclingItems(VillagerEntity p_220553_1_)
-
-