public class GatherItemsVillagerTask extends Task<VillagerEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private Set<Item> |
items |
requiredMemoryStates| Constructor and Description |
|---|
GatherItemsVillagerTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
private static Set<Item> |
getGatherableItems(VillagerEntity villagerEntity,
VillagerEntity villagerEntity2) |
private static void |
giveHalfOfStack(VillagerEntity villager,
Set<Item> validItems,
LivingEntity target) |
protected void |
keepRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected void |
run(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
shouldKeepRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
VillagerEntity villagerEntity) |
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStartingprotected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
shouldRun in class Task<VillagerEntity>protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
shouldKeepRunning in class Task<VillagerEntity>protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
run in class Task<VillagerEntity>protected void keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
keepRunning in class Task<VillagerEntity>protected void finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
finishRunning in class Task<VillagerEntity>private static Set<Item> getGatherableItems(VillagerEntity villagerEntity, VillagerEntity villagerEntity2)
private static void giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target)