Class GiveInventoryToLookTargetTask<E extends LivingEntity & InventoryOwner>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.GiveInventoryToLookTargetTask<E>
- Mappings:
Namespace Name official bee
intermediary net/minecraft/class_7296
named net/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask
-
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 int
private final Function<LivingEntity,
Optional<LookTarget>> private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionGiveInventoryToLookTargetTask
(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, float speed) -
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.Task
finishRunning, getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
field_38387
private static final int field_38387- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbee;a:I
intermediary field_38387
Lnet/minecraft/class_7296;field_38387:I
named field_38387
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;field_38387:I
-
field_38388
private static final int field_38388- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbee;d:I
intermediary field_38388
Lnet/minecraft/class_7296;field_38388:I
named field_38388
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;field_38388:I
-
lookTargetFunction
- Mappings:
Namespace Name Mixin selector official e
Lbee;e:Ljava/util/function/Function;
intermediary field_38389
Lnet/minecraft/class_7296;field_38389:Ljava/util/function/Function;
named lookTargetFunction
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;lookTargetFunction:Ljava/util/function/Function;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official f
Lbee;f:F
intermediary field_38390
Lnet/minecraft/class_7296;field_38390:F
named speed
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;speed:F
-
-
Constructor Details
-
GiveInventoryToLookTargetTask
public GiveInventoryToLookTargetTask(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, float speed) - Mappings:
Namespace Name Mixin selector official <init>
Lbee;<init>(Ljava/util/function/Function;F)V
intermediary <init>
Lnet/minecraft/class_7296;<init>(Ljava/util/function/Function;F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;<init>(Ljava/util/function/Function;F)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector official a
Lbdo;a(Lagg;Lbcc;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector official b
Lbdo;b(Lagg;Lbcc;J)Z
intermediary method_18927
Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/Task;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
-
run
- Overrides:
run
in classTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector official a
Lbdo;a(Lagg;Lbcc;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classTask<E extends LivingEntity & InventoryOwner>
- Mappings:
Namespace Name Mixin selector official d
Lbdo;d(Lagg;Lbcc;J)V
intermediary method_18924
Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/Task;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
triggerCriterion
- Mappings:
Namespace Name Mixin selector official a
Lbee;a(Lbfc;Lcax;Lagh;)V
intermediary method_43079
Lnet/minecraft/class_7296;method_43079(Lnet/minecraft/class_4115;Lnet/minecraft/class_1799;Lnet/minecraft/class_3222;)V
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
-
hasItemAndTarget
- Mappings:
Namespace Name Mixin selector official a
Lbee;a(Lbcc;)Z
intermediary method_42649
Lnet/minecraft/class_7296;method_42649(Lnet/minecraft/class_1309;)Z
named hasItemAndTarget
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;hasItemAndTarget(Lnet/minecraft/entity/LivingEntity;)Z
-
offsetTarget
- Mappings:
Namespace Name Mixin selector official a
Lbee;a(Lbfc;)Ldwq;
intermediary method_42651
Lnet/minecraft/class_7296;method_42651(Lnet/minecraft/class_4115;)Lnet/minecraft/class_243;
named offsetTarget
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;offsetTarget(Lnet/minecraft/entity/ai/brain/LookTarget;)Lnet/minecraft/util/math/Vec3d;
-
playThrowSound
- Mappings:
Namespace Name Mixin selector official a
Lbee;a(Lbcc;Lcax;Ldwq;)V
intermediary method_43393
Lnet/minecraft/class_7296;method_43393(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_243;)V
named playThrowSound
Lnet/minecraft/entity/ai/brain/task/GiveInventoryToLookTargetTask;playThrowSound(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Vec3d;)V
-