Class TemptTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<PathAwareEntity>
net.minecraft.entity.ai.brain.task.TemptTask
- All Implemented Interfaces:
Task<PathAwareEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/TemptTask
intermediary net/minecraft/class_5754
official byl
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
static final double
private final Function
<LivingEntity, Float> private final Function
<LivingEntity, Double> static final int
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionTemptTask
(Function<LivingEntity, Float> speed) TemptTask
(Function<LivingEntity, Float> speed, Function<LivingEntity, Double> stopDistanceGetter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected float
getSpeed
(PathAwareEntity entity) private Optional
<PlayerEntity> getTemptingPlayer
(PathAwareEntity entity) protected boolean
isTimeLimitExceeded
(long time) protected void
keepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, shouldRun, stop, tick, tryStarting
-
Field Details
-
TEMPTATION_COOLDOWN_TICKS
public static final int TEMPTATION_COOLDOWN_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named TEMPTATION_COOLDOWN_TICKS
Lnet/minecraft/entity/ai/brain/task/TemptTask;TEMPTATION_COOLDOWN_TICKS:I
intermediary field_30115
Lnet/minecraft/class_5754;field_30115:I
official c
Lbyl;c:I
-
DEFAULT_STOP_DISTANCE
public static final double DEFAULT_STOP_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_STOP_DISTANCE
Lnet/minecraft/entity/ai/brain/task/TemptTask;DEFAULT_STOP_DISTANCE:D
intermediary field_45125
Lnet/minecraft/class_5754;field_45125:D
official d
Lbyl;d:D
-
LARGE_ENTITY_STOP_DISTANCE
public static final double LARGE_ENTITY_STOP_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named LARGE_ENTITY_STOP_DISTANCE
Lnet/minecraft/entity/ai/brain/task/TemptTask;LARGE_ENTITY_STOP_DISTANCE:D
intermediary field_45126
Lnet/minecraft/class_5754;field_45126:D
official e
Lbyl;e:D
-
speed
- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/brain/task/TemptTask;speed:Ljava/util/function/Function;
intermediary field_28316
Lnet/minecraft/class_5754;field_28316:Ljava/util/function/Function;
official f
Lbyl;f:Ljava/util/function/Function;
-
stopDistanceGetter
- Mappings:
Namespace Name Mixin selector named stopDistanceGetter
Lnet/minecraft/entity/ai/brain/task/TemptTask;stopDistanceGetter:Ljava/util/function/Function;
intermediary field_44704
Lnet/minecraft/class_5754;field_44704:Ljava/util/function/Function;
official g
Lbyl;g:Ljava/util/function/Function;
-
-
Constructor Details
-
TemptTask
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/TemptTask;<init>(Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_5754;<init>(Ljava/util/function/Function;)V
official <init>
Lbyl;<init>(Ljava/util/function/Function;)V
-
TemptTask
public TemptTask(Function<LivingEntity, Float> speed, Function<LivingEntity, Double> stopDistanceGetter) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/TemptTask;<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
official <init>
Lbyl;<init>(Ljava/util/function/Function;Ljava/util/function/Function;)V
-
-
Method Details
-
getSpeed
- Mappings:
Namespace Name Mixin selector named getSpeed
Lnet/minecraft/entity/ai/brain/task/TemptTask;getSpeed(Lnet/minecraft/entity/mob/PathAwareEntity;)F
intermediary method_33196
Lnet/minecraft/class_5754;method_33196(Lnet/minecraft/class_1314;)F
official a
Lbyl;a(Lbwn;)F
-
getTemptingPlayer
- Mappings:
Namespace Name Mixin selector named getTemptingPlayer
Lnet/minecraft/entity/ai/brain/task/TemptTask;getTemptingPlayer(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Optional;
intermediary method_33198
Lnet/minecraft/class_5754;method_33198(Lnet/minecraft/class_1314;)Ljava/util/Optional;
official b
Lbyl;b(Lbwn;)Ljava/util/Optional;
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time) - Overrides:
isTimeLimitExceeded
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named isTimeLimitExceeded
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;isTimeLimitExceeded(J)Z
intermediary method_18915
Lnet/minecraft/class_4097;method_18915(J)Z
official a
Lbxy;a(J)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/TemptTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)Z
intermediary method_33195
Lnet/minecraft/class_5754;method_33195(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Z
official a
Lbyl;a(Lash;Lbwn;J)Z
-
run
- Overrides:
run
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/TemptTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
intermediary method_33197
Lnet/minecraft/class_5754;method_33197(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
official b
Lbyl;b(Lash;Lbwn;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/TemptTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
intermediary method_33199
Lnet/minecraft/class_5754;method_33199(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
official c
Lbyl;c(Lash;Lbwn;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/TemptTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
intermediary method_33200
Lnet/minecraft/class_5754;method_33200(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
official d
Lbyl;d(Lash;Lbwn;J)V
-