Class GatherItemsVillagerTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.GatherItemsVillagerTask
- All Implemented Interfaces:
Task<VillagerEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/GatherItemsVillagerTask
intermediary net/minecraft/class_4126
official cat
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) getGatherableItems
(VillagerEntity entity, VillagerEntity target) 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) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
items
- Mappings:
Namespace Name Mixin selector named items
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;items:Ljava/util/Set;
intermediary field_18389
Lnet/minecraft/class_4126;field_18389:Ljava/util/Set;
official c
Lcat;c:Ljava/util/Set;
-
-
Constructor Details
-
GatherItemsVillagerTask
public GatherItemsVillagerTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
intermediary method_19015
Lnet/minecraft/class_4126;method_19015(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
official a
Lcat;a(Lash;Lcpi;)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
intermediary method_19016
Lnet/minecraft/class_4126;method_19016(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
official a
Lcat;a(Lash;Lcpi;J)Z
-
run
- Overrides:
run
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19017
Lnet/minecraft/class_4126;method_19017(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official b
Lcat;b(Lash;Lcpi;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19018
Lnet/minecraft/class_4126;method_19018(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official c
Lcat;c(Lash;Lcpi;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19019
Lnet/minecraft/class_4126;method_19019(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official d
Lcat;d(Lash;Lcpi;J)V
-
getGatherableItems
- Mappings:
Namespace Name Mixin selector named getGatherableItems
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;getGatherableItems(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Set;
intermediary method_19611
Lnet/minecraft/class_4126;method_19611(Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;)Ljava/util/Set;
official a
Lcat;a(Lcpi;Lcpi;)Ljava/util/Set;
-
giveHalfOfStack
private static void giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target) - Mappings:
Namespace Name Mixin selector named giveHalfOfStack
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;giveHalfOfStack(Lnet/minecraft/entity/passive/VillagerEntity;Ljava/util/Set;Lnet/minecraft/entity/LivingEntity;)V
intermediary method_19013
Lnet/minecraft/class_4126;method_19013(Lnet/minecraft/class_1646;Ljava/util/Set;Lnet/minecraft/class_1309;)V
official a
Lcat;a(Lcpi;Ljava/util/Set;Lbwf;)V
-