Class RidingTask<E extends LivingEntity,T extends Entity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.RidingTask<E,T>
- Mappings:
Namespace Name official ayt
intermediary net/minecraft/class_4812
named net/minecraft/entity/ai/brain/task/RidingTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canRideTarget
(E entity, Entity target) protected void
run
(ServerWorld world, E entity, long time) protected boolean
shouldRun
(ServerWorld world, E entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
range
private final int range- Mappings:
Namespace Name Mixin selector official a
Layt;a:I
intermediary field_22300
Lnet/minecraft/class_4812;field_22300:I
named range
Lnet/minecraft/entity/ai/brain/task/RidingTask;range:I
-
alternativeRideCondition
- Mappings:
Namespace Name Mixin selector official c
Layt;c:Ljava/util/function/BiPredicate;
intermediary field_22301
Lnet/minecraft/class_4812;field_22301:Ljava/util/function/BiPredicate;
named alternativeRideCondition
Lnet/minecraft/entity/ai/brain/task/RidingTask;alternativeRideCondition:Ljava/util/function/BiPredicate;
-
-
Constructor Details
-
RidingTask
- Mappings:
Namespace Name Mixin selector official <init>
Layt;<init>(ILjava/util/function/BiPredicate;)V
intermediary <init>
Lnet/minecraft/class_4812;<init>(ILjava/util/function/BiPredicate;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/RidingTask;<init>(ILjava/util/function/BiPredicate;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Laym;a(Ladc;Laxa;)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
-
canRideTarget
- Mappings:
Namespace Name Mixin selector official a
Layt;a(Laxa;Lawm;)Z
intermediary method_24575
Lnet/minecraft/class_4812;method_24575(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;)Z
named canRideTarget
Lnet/minecraft/entity/ai/brain/task/RidingTask;canRideTarget(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;)Z
-
run
- Overrides:
run
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Laym;a(Ladc;Laxa;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
-