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 intcycleCounterprivate intdisplayIndexprivate java.util.List<ItemStack>displayItemsprivate intlookTimeprivate ItemStackplayerItemStack-
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 booleancanStillUse(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_)
-
-
-
Method Detail
-
checkExtraStartConditions
public boolean checkExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)
- Overrides:
checkExtraStartConditionsin classTask<VillagerEntity>
-
canStillUse
public boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUsein classTask<VillagerEntity>
-
start
public void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- Overrides:
startin classTask<VillagerEntity>
-
tick
public void tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
- Overrides:
tickin classTask<VillagerEntity>
-
stop
public void stop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_)
- Overrides:
stopin 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_)
-
-