Class StartRidingTask<E extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.StartRidingTask<E>

public class StartRidingTask<E extends LivingEntity> extends Task<E>
Mappings:
Namespace Name
official bea
intermediary net/minecraft/class_4817
named net/minecraft/entity/ai/brain/task/StartRidingTask
  • Field Details

    • COMPLETION_RANGE

      private static final int COMPLETION_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbea;a:I
      intermediary field_30149 Lnet/minecraft/class_4817;field_30149:I
      named COMPLETION_RANGE Lnet/minecraft/entity/ai/brain/task/StartRidingTask;COMPLETION_RANGE:I
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official d Lbea;d:F
      intermediary field_23132 Lnet/minecraft/class_4817;field_23132:F
      named speed Lnet/minecraft/entity/ai/brain/task/StartRidingTask;speed:F
  • Constructor Details

    • StartRidingTask

      public StartRidingTask(float speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbea;<init>(F)V
      intermediary <init> Lnet/minecraft/class_4817;<init>(F)V
      named <init> Lnet/minecraft/entity/ai/brain/task/StartRidingTask;<init>(F)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
    • 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
    • isRideTargetClose

      private boolean isRideTargetClose(E entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbea;a(Lbbf;)Z
      intermediary method_24591 Lnet/minecraft/class_4817;method_24591(Lnet/minecraft/class_1309;)Z
      named isRideTargetClose Lnet/minecraft/entity/ai/brain/task/StartRidingTask;isRideTargetClose(Lnet/minecraft/entity/LivingEntity;)Z
    • getRideTarget

      private Entity getRideTarget(E entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbea;b(Lbbf;)Lbaq;
      intermediary method_24592 Lnet/minecraft/class_4817;method_24592(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1297;
      named getRideTarget Lnet/minecraft/entity/ai/brain/task/StartRidingTask;getRideTarget(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/Entity;