Class GatherItemsVillagerTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.GatherItemsVillagerTask
- Mappings:
Namespace Name official bcb
intermediary net/minecraft/class_4126
named net/minecraft/entity/ai/brain/task/GatherItemsVillagerTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) 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) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
MAX_RANGE
private static final int MAX_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbcb;a:I
intermediary field_30182
Lnet/minecraft/class_4126;field_30182:I
named MAX_RANGE
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;MAX_RANGE:I
-
WALK_TOGETHER_SPEED
private static final float WALK_TOGETHER_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lbcb;c:F
intermediary field_30183
Lnet/minecraft/class_4126;field_30183:F
named WALK_TOGETHER_SPEED
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;WALK_TOGETHER_SPEED:F
-
items
- Mappings:
Namespace Name Mixin selector official d
Lbcb;d:Ljava/util/Set;
intermediary field_18389
Lnet/minecraft/class_4126;field_18389:Ljava/util/Set;
named items
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;items:Ljava/util/Set;
-
-
Constructor Details
-
GatherItemsVillagerTask
public GatherItemsVillagerTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbcb;a(Ladw;Lbnw;)Z
intermediary method_19015
Lnet/minecraft/class_4126;method_19015(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbcb;a(Ladw;Lbnw;J)Z
intermediary method_19016
Lnet/minecraft/class_4126;method_19016(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-
run
- Overrides:
run
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official b
Lbcb;b(Ladw;Lbnw;J)V
intermediary method_19017
Lnet/minecraft/class_4126;method_19017(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named run
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official c
Lbcb;c(Ladw;Lbnw;J)V
intermediary method_19018
Lnet/minecraft/class_4126;method_19018(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official d
Lbcb;d(Ladw;Lbnw;J)V
intermediary method_19019
Lnet/minecraft/class_4126;method_19019(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
getGatherableItems
private static Set<Item> getGatherableItems(VillagerEntity villagerEntity, VillagerEntity villagerEntity2) - Mappings:
Namespace Name Mixin selector official a
Lbcb;a(Lbnw;Lbnw;)Ljava/util/Set;
intermediary method_19611
Lnet/minecraft/class_4126;method_19611(Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;)Ljava/util/Set;
named getGatherableItems
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;getGatherableItems(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Set;
-
giveHalfOfStack
private static void giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target) - Mappings:
Namespace Name Mixin selector official a
Lbcb;a(Lbnw;Ljava/util/Set;Laxy;)V
intermediary method_19013
Lnet/minecraft/class_4126;method_19013(Lnet/minecraft/class_1646;Ljava/util/Set;Lnet/minecraft/class_1309;)V
named giveHalfOfStack
Lnet/minecraft/entity/ai/brain/task/GatherItemsVillagerTask;giveHalfOfStack(Lnet/minecraft/entity/passive/VillagerEntity;Ljava/util/Set;Lnet/minecraft/entity/LivingEntity;)V
-