Class TemptTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.TemptTask
- Mappings:
Namespace Name official aze
intermediary net/minecraft/class_5754
named net/minecraft/entity/ai/brain/task/TemptTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
private final Function<LivingEntity,
Float> static final int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
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)
-
Field Details
-
TEMPTATION_COOLDOWN_TICKS
public static final int TEMPTATION_COOLDOWN_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector official a
Laze;a: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
-
field_30116
public static final double field_30116- See Also:
- Mappings:
Namespace Name Mixin selector official c
Laze;c:D
intermediary field_30116
Lnet/minecraft/class_5754;field_30116:D
named field_30116
Lnet/minecraft/entity/ai/brain/task/TemptTask;field_30116:D
-
speed
- Mappings:
Namespace Name Mixin selector official d
Laze;d: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;
-
-
Constructor Details
-
TemptTask
- Mappings:
Namespace Name Mixin selector official <init>
Laze;<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
-
-
Method Details
-
getSpeed
- Mappings:
Namespace Name Mixin selector official a
Laze;a(Laxq;)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
- Mappings:
Namespace Name Mixin selector official b
Laze;b(Laxq;)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 classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Layt;a(J)Z
intermediary method_18915
Lnet/minecraft/class_4097;method_18915(J)Z
named isTimeLimitExceeded
Lnet/minecraft/entity/ai/brain/task/Task;isTimeLimitExceeded(J)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) - Overrides:
shouldKeepRunning
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Laze;a(Ladi;Laxq;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
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official b
Laze;b(Ladi;Laxq;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
- Overrides:
finishRunning
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official c
Laze;c(Ladi;Laxq;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
- Overrides:
keepRunning
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official d
Laze;d(Ladi;Laxq;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
-