net.minecraft.entity.ai.brain.task

public class GatherItemsVillagerTask

extends MultiTickTask<VillagerEntity>

All mapped superinterfaces:

Task

net.minecraft.world.entity.ai.behavior.TradeWithVillager
net.minecraft.class_4126
net.minecraft.entity.ai.brain.task.GatherItemsVillagerTask

Field summary

Modifier and TypeField
private Set<Item>
trades
field_18389
items

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected boolean
checkExtraStartConditions(ServerLevel level, Villager body)
method_19015(class_3218 arg0, class_1646 arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
protected boolean
canStillUse(ServerLevel level, Villager body, long timestamp)
method_19016(class_3218 arg0, class_1646 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
start(ServerLevel level, Villager myBody, long timestamp)
method_19017(class_3218 arg0, class_1646 arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
tick(ServerLevel level, Villager body, long timestamp)
method_19018(class_3218 arg0, class_1646 arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
stop(ServerLevel level, Villager body, long timestamp)
method_19019(class_3218 arg0, class_1646 arg1, long arg2)
finishRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
private static Set<Item>
figureOutWhatIAmWillingToTrade(Villager myBody, Villager target)
method_19611(class_1646 arg0, class_1646 arg1)
getGatherableItems(VillagerEntity entity, VillagerEntity target)
private static void
throwHalfStack(Villager villager, Set<Item> items, LivingEntity target)
method_19013(class_1646 arg0, Set<class_1792> arg1, class_1309 arg2)
giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target)
protected boolean
checkExtraStartConditions(ServerLevel level, LivingEntity body)
method_18919(class_3218 arg0, class_1309 arg1)
shouldRun(ServerWorld arg0, LivingEntity arg1)
protected boolean
canStillUse(ServerLevel level, LivingEntity body, long timestamp)
method_18927(class_3218 arg0, class_1309 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
stop(ServerLevel level, LivingEntity body, long timestamp)
method_18926(class_3218 arg0, class_1309 arg1, long arg2)
finishRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
tick(ServerLevel level, LivingEntity body, long timestamp)
method_18924(class_3218 arg0, class_1309 arg1, long arg2)
keepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
start(ServerLevel level, LivingEntity myBody, long timestamp)
method_18920(class_3218 arg0, class_1309 arg1, long arg2)
run(ServerWorld arg0, LivingEntity arg1, long arg2)
private static boolean
lambda$figureOutWhatIAmWillingToTrade$0(com.google.common.collect.ImmutableSet arg0, Item arg1)
method_19014(com.google.common.collect.ImmutableSet arg0, class_1792 arg1)
method_19014(com.google.common.collect.ImmutableSet arg0, Item item)