Class ShareItemsTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.ShareItemsTask
-
public class ShareItemsTask 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 java.util.Set<Item>trades-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description ShareItemsTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)protected booleancheckExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)private static java.util.Set<Item>figureOutWhatIAmWillingToTrade(VillagerEntity p_220585_0_, VillagerEntity p_220585_1_)protected voidstart(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)protected voidstop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_)private static voidthrowHalfStack(VillagerEntity p_220586_0_, java.util.Set<Item> p_220586_1_, LivingEntity p_220586_2_)protected voidtick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
-
-
-
Field Detail
-
trades
private java.util.Set<Item> trades
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)
- Overrides:
checkExtraStartConditionsin classTask<VillagerEntity>
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUsein classTask<VillagerEntity>
-
start
protected void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- Overrides:
startin classTask<VillagerEntity>
-
tick
protected void tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
- Overrides:
tickin classTask<VillagerEntity>
-
stop
protected void stop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_)
- Overrides:
stopin classTask<VillagerEntity>
-
figureOutWhatIAmWillingToTrade
private static java.util.Set<Item> figureOutWhatIAmWillingToTrade(VillagerEntity p_220585_0_, VillagerEntity p_220585_1_)
-
throwHalfStack
private static void throwHalfStack(VillagerEntity p_220586_0_, java.util.Set<Item> p_220586_1_, LivingEntity p_220586_2_)
-
-