Class ShowWaresTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.ShowWaresTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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_)
-
Field Details
-
playerItemStack
-
displayItems
-
cycleCounter
private int cycleCounter -
displayIndex
private int displayIndex -
lookTime
private int lookTime
-
-
Constructor Details
-
ShowWaresTask
public ShowWaresTask(int p_i50343_1_, int p_i50343_2_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<VillagerEntity>
-
canStillUse
- Overrides:
canStillUse
in classTask<VillagerEntity>
-
start
- Overrides:
start
in classTask<VillagerEntity>
-
tick
- Overrides:
tick
in classTask<VillagerEntity>
-
stop
- Overrides:
stop
in classTask<VillagerEntity>
-
findItemsToDisplay
-
displayFirstItem
-
updateDisplayItems
-
playerItemStackMatchesCostOfOffer
-
lookAtTarget
-
displayCyclingItems
-