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
FieldsFields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_) booleancheckExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_) private voiddisplayCyclingItems(VillagerEntity p_220553_1_) private voiddisplayFirstItem(VillagerEntity p_220558_1_) private voidfindItemsToDisplay(LivingEntity p_220556_1_, VillagerEntity p_220556_2_) private LivingEntitylookAtTarget(VillagerEntity p_220557_1_) private booleanplayerItemStackMatchesCostOfOffer(MerchantOffer p_220554_1_) voidstart(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_) voidstop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_) voidtick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_) private voidupdateDisplayItems(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:
checkExtraStartConditionsin classTask<VillagerEntity>
-
canStillUse
- Overrides:
canStillUsein classTask<VillagerEntity>
-
start
- Overrides:
startin classTask<VillagerEntity>
-
tick
- Overrides:
tickin classTask<VillagerEntity>
-
stop
- Overrides:
stopin classTask<VillagerEntity>
-
findItemsToDisplay
-
displayFirstItem
-
updateDisplayItems
-
playerItemStackMatchesCostOfOffer
-
lookAtTarget
-
displayCyclingItems
-