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>

public class RidingTask<E extends LivingEntity,T extends Entity> extends Task<E>
Mappings:
Namespace Name
official bcz
intermediary net/minecraft/class_4812
named net/minecraft/entity/ai/brain/task/RidingTask
  • Field Details

    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official a Lbcz;a:I
      intermediary field_22300 Lnet/minecraft/class_4812;field_22300:I
      named range Lnet/minecraft/entity/ai/brain/task/RidingTask;range:I
    • alternativeRideCondition

      private final BiPredicate<E extends LivingEntity,Entity> alternativeRideCondition
      Mappings:
      Namespace Name Mixin selector
      official d Lbcz;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

      public RidingTask(int range, BiPredicate<E,Entity> alternativeRideCondition)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbcz;<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

      protected boolean shouldRun(ServerWorld world, E entity)
      Overrides:
      shouldRun in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;)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

      private boolean canRideTarget(E entity, Entity target)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcz;a(Lbbf;Lbaq;)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

      protected void run(ServerWorld world, E entity, long time)
      Overrides:
      run in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;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