Class GiveInventoryToLookTargetTask<E extends LivingEntity & InventoryOwner>
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
net.minecraft.entity.ai.brain.task.GiveInventoryToLookTargetTask<E>
- All Implemented Interfaces:
Task<E>
public class GiveInventoryToLookTargetTask<E extends LivingEntity & InventoryOwner>
extends MultiTickTask<E>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask
intermediary net/minecraft/class_7296
official bvz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private final Function
<LivingEntity, Optional<LookTarget>> private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionGiveInventoryToLookTargetTask
(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, float speed, int runTime) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
hasItemAndTarget
(E entity) protected void
keepRunning
(ServerWorld world, E entity, long time) private static Vec3d
offsetTarget
(LookTarget target) static void
playThrowSound
(LivingEntity entity, ItemStack stack, Vec3d target) protected void
run
(ServerWorld world, E entity, long time) protected boolean
shouldKeepRunning
(ServerWorld world, E entity, long time) protected boolean
shouldRun
(ServerWorld world, E entity) private void
triggerCriterion
(LookTarget target, ItemStack stack, ServerPlayerEntity player) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
finishRunning, getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
COMPLETION_RANGE
private static final int COMPLETION_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named COMPLETION_RANGE
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;COMPLETION_RANGE:I
intermediary field_38387
Lnet/minecraft/class_7296;field_38387:I
official c
Lbvz;c:I
-
ITEM_PICKUP_COOLDOWN_TICKS
private static final int ITEM_PICKUP_COOLDOWN_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named ITEM_PICKUP_COOLDOWN_TICKS
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;ITEM_PICKUP_COOLDOWN_TICKS:I
intermediary field_38388
Lnet/minecraft/class_7296;field_38388:I
official d
Lbvz;d:I
-
lookTargetFunction
- Mappings:
Namespace Name Mixin selector named lookTargetFunction
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;lookTargetFunction:Ljava/util/function/Function;
intermediary field_38389
Lnet/minecraft/class_7296;field_38389:Ljava/util/function/Function;
official e
Lbvz;e:Ljava/util/function/Function;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;speed:F
intermediary field_38390
Lnet/minecraft/class_7296;field_38390:F
official f
Lbvz;f:F
-
-
Constructor Details
-
GiveInventoryToLookTargetTask
public GiveInventoryToLookTargetTask(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, float speed, int runTime) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;<init>(Ljava/util/function/Function;FI)V
intermediary <init>
Lnet/minecraft/class_7296;<init>(Ljava/util/function/Function;FI)V
official <init>
Lbvz;<init>(Ljava/util/function/Function;FI)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
official a
Lbvj;a(Larf;Lbtq;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classMultiTickTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
intermediary method_18927
Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
official a
Lbvj;a(Larf;Lbtq;J)Z
-
run
- Overrides:
run
in classMultiTickTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official d
Lbvj;d(Larf;Lbtq;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18924
Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official c
Lbvj;c(Larf;Lbtq;J)V
-
triggerCriterion
- Mappings:
Namespace Name Mixin selector named triggerCriterion
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;triggerCriterion(Lnet/minecraft/entity/ai/brain/LookTarget;Lnet/minecraft/item/ItemStack;Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_43079
Lnet/minecraft/class_7296;method_43079(Lnet/minecraft/class_4115;Lnet/minecraft/class_1799;Lnet/minecraft/class_3222;)V
official a
Lbvz;a(Lbwx;Lcuq;Larg;)V
-
hasItemAndTarget
- Mappings:
Namespace Name Mixin selector named hasItemAndTarget
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;hasItemAndTarget(Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_42649
Lnet/minecraft/class_7296;method_42649(Lnet/minecraft/class_1309;)Z
official b
Lbvz;b(Lbtq;)Z
-
offsetTarget
- Mappings:
Namespace Name Mixin selector named offsetTarget
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;offsetTarget(Lnet/minecraft/entity/ai/brain/LookTarget;)Lnet/minecraft/util/math/Vec3d;
intermediary method_42651
Lnet/minecraft/class_7296;method_42651(Lnet/minecraft/class_4115;)Lnet/minecraft/class_243;
official a
Lbvz;a(Lbwx;)Levs;
-
playThrowSound
- Mappings:
Namespace Name Mixin selector named playThrowSound
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;playThrowSound(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_43393
Lnet/minecraft/class_7296;method_43393(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_243;)V
official a
Lbvz;a(Lbtq;Lcuq;Levs;)V
-