Class TemptTask

All Implemented Interfaces:
Task<PathAwareEntity>

public class TemptTask extends MultiTickTask<PathAwareEntity>
Mappings:
Namespace Name
official blk
intermediary net/minecraft/class_5754
named net/minecraft/entity/ai/brain/task/TemptTask
  • Field Details

    • TEMPTATION_COOLDOWN_TICKS

      public static final int TEMPTATION_COOLDOWN_TICKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lblk;c:I
      intermediary field_30115 Lnet/minecraft/class_5754;field_30115:I
      named TEMPTATION_COOLDOWN_TICKS Lnet/minecraft/entity/ai/brain/task/TemptTask;TEMPTATION_COOLDOWN_TICKS:I
    • DEFAULT_STOP_DISTANCE

      public static final double DEFAULT_STOP_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lblk;d:D
      intermediary field_45125 Lnet/minecraft/class_5754;field_45125:D
      named DEFAULT_STOP_DISTANCE Lnet/minecraft/entity/ai/brain/task/TemptTask;DEFAULT_STOP_DISTANCE:D
    • LARGE_ENTITY_STOP_DISTANCE

      public static final double LARGE_ENTITY_STOP_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lblk;e:D
      intermediary field_45126 Lnet/minecraft/class_5754;field_45126:D
      named LARGE_ENTITY_STOP_DISTANCE Lnet/minecraft/entity/ai/brain/task/TemptTask;LARGE_ENTITY_STOP_DISTANCE:D
    • speed

      private final Function<LivingEntity,Float> speed
      Mappings:
      Namespace Name Mixin selector
      official f Lblk;f:Ljava/util/function/Function;
      intermediary field_28316 Lnet/minecraft/class_5754;field_28316:Ljava/util/function/Function;
      named speed Lnet/minecraft/entity/ai/brain/task/TemptTask;speed:Ljava/util/function/Function;
    • stopDistanceGetter

      private final Function<LivingEntity,Double> stopDistanceGetter
      Mappings:
      Namespace Name Mixin selector
      official g Lblk;g:Ljava/util/function/Function;
      intermediary field_44704 Lnet/minecraft/class_5754;field_44704:Ljava/util/function/Function;
      named stopDistanceGetter Lnet/minecraft/entity/ai/brain/task/TemptTask;stopDistanceGetter:Ljava/util/function/Function;
  • Constructor Details

    • TemptTask

      public TemptTask(Function<LivingEntity,Float> speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblk;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_5754;<init>(Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/TemptTask;<init>(Ljava/util/function/Function;)V
    • TemptTask

      public TemptTask(Function<LivingEntity,Float> speed, Function<LivingEntity,Double> stopDistanceGetter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblk;<init>(Ljava/util/function/Function;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_5754;<init>(Ljava/util/function/Function;Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/TemptTask;<init>(Ljava/util/function/Function;Ljava/util/function/Function;)V
  • Method Details

    • getSpeed

      protected float getSpeed(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lblk;a(Lbjp;)F
      intermediary method_33196 Lnet/minecraft/class_5754;method_33196(Lnet/minecraft/class_1314;)F
      named getSpeed Lnet/minecraft/entity/ai/brain/task/TemptTask;getSpeed(Lnet/minecraft/entity/mob/PathAwareEntity;)F
    • getTemptingPlayer

      private Optional<PlayerEntity> getTemptingPlayer(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lblk;b(Lbjp;)Ljava/util/Optional;
      intermediary method_33198 Lnet/minecraft/class_5754;method_33198(Lnet/minecraft/class_1314;)Ljava/util/Optional;
      named getTemptingPlayer Lnet/minecraft/entity/ai/brain/task/TemptTask;getTemptingPlayer(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Optional;
    • isTimeLimitExceeded

      protected boolean isTimeLimitExceeded(long time)
      Overrides:
      isTimeLimitExceeded in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbkx;a(J)Z
      intermediary method_18915 Lnet/minecraft/class_4097;method_18915(J)Z
      named isTimeLimitExceeded Lnet/minecraft/entity/ai/brain/task/MultiTickTask;isTimeLimitExceeded(J)Z
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      shouldKeepRunning in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lblk;a(Lakq;Lbjp;J)Z
      intermediary method_33195 Lnet/minecraft/class_5754;method_33195(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/TemptTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)Z
    • run

      protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lblk;b(Lakq;Lbjp;J)V
      intermediary method_33197 Lnet/minecraft/class_5754;method_33197(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/TemptTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • finishRunning

      protected void finishRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      finishRunning in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lblk;c(Lakq;Lbjp;J)V
      intermediary method_33199 Lnet/minecraft/class_5754;method_33199(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/TemptTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lblk;d(Lakq;Lbjp;J)V
      intermediary method_33200 Lnet/minecraft/class_5754;method_33200(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/TemptTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V