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 bdw
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
DEFAULT_RUN_TIME, 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
Lbdw;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 d
Lbdw;d: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>
Lbdw;<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
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
-
canRideTarget
- Mappings:
Namespace Name Mixin selector official a
Lbdw;a(Lbcc;Lbbn;)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
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
-