Class LongJumpTask<E extends MobEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
net.minecraft.entity.ai.brain.task.LongJumpTask<E>
- All Implemented Interfaces:
Task<E>
- Direct Known Subclasses:
BiasedLongJumpTask
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/LongJumpTask
intermediary net/minecraft/class_6030
official bwn
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
private final UniformIntProvider
private final Function
<E, SoundEvent> protected final int
private final BiPredicate
<E, BlockPos> protected static final int
protected final float
protected static final int
private static final int
private static final int
protected List
<LongJumpTask.Target> protected long
protected final int
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionLongJumpTask
(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound) LongJumpTask
(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, BiPredicate<E, BlockPos> jumpToPredicate) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canJumpTo
(ServerWorld world, E entity, BlockPos pos) protected void
findTarget
(ServerWorld world, E entity, long time) getJumpingVelocity
(MobEntity entity, Vec3d targetPos) protected Optional
<LongJumpTask.Target> getTarget
(ServerWorld world) protected void
keepRunning
(ServerWorld serverWorld, E e, long long2) protected void
run
(ServerWorld serverWorld, E e, long long2) static <E extends MobEntity>
booleanshouldJumpTo
(E entity, BlockPos pos) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
finishRunning, getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
MAX_COOLDOWN
protected static final int MAX_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_COOLDOWN
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;MAX_COOLDOWN:I
intermediary field_30135
Lnet/minecraft/class_6030;field_30135:I
official c
Lbwn;c:I
-
TARGET_RETAIN_TIME
private static final int TARGET_RETAIN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named TARGET_RETAIN_TIME
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;TARGET_RETAIN_TIME:I
intermediary field_30136
Lnet/minecraft/class_6030;field_30136:I
official m
Lbwn;m:I
-
PATHING_DISTANCE
protected static final int PATHING_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named PATHING_DISTANCE
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;PATHING_DISTANCE:I
intermediary field_30137
Lnet/minecraft/class_6030;field_30137:I
official d
Lbwn;d:I
-
RUN_TIME
private static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named RUN_TIME
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;RUN_TIME:I
intermediary field_30134
Lnet/minecraft/class_6030;field_30134:I
official n
Lbwn;n:I
-
RAM_RANGES
- Mappings:
Namespace Name Mixin selector named RAM_RANGES
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;RAM_RANGES:Ljava/util/List;
intermediary field_37431
Lnet/minecraft/class_6030;field_37431:Ljava/util/List;
official o
Lbwn;o:Ljava/util/List;
-
cooldownRange
- Mappings:
Namespace Name Mixin selector named cooldownRange
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;cooldownRange:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
intermediary field_30138
Lnet/minecraft/class_6030;field_30138:Lnet/minecraft/class_6019;
official p
Lbwn;p:Lbqh;
-
verticalRange
protected final int verticalRange- Mappings:
Namespace Name Mixin selector named verticalRange
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;verticalRange:I
intermediary field_30139
Lnet/minecraft/class_6030;field_30139:I
official e
Lbwn;e:I
-
horizontalRange
protected final int horizontalRange- Mappings:
Namespace Name Mixin selector named horizontalRange
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;horizontalRange:I
intermediary field_30140
Lnet/minecraft/class_6030;field_30140:I
official f
Lbwn;f:I
-
maxRange
protected final float maxRange- Mappings:
Namespace Name Mixin selector named maxRange
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;maxRange:F
intermediary field_30141
Lnet/minecraft/class_6030;field_30141:F
official g
Lbwn;g:F
-
targets
- Mappings:
Namespace Name Mixin selector named targets
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;targets:Ljava/util/List;
intermediary field_30142
Lnet/minecraft/class_6030;field_30142:Ljava/util/List;
official h
Lbwn;h:Ljava/util/List;
-
lastPos
- Mappings:
Namespace Name Mixin selector named lastPos
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;lastPos:Ljava/util/Optional;
intermediary field_30143
Lnet/minecraft/class_6030;field_30143:Ljava/util/Optional;
official i
Lbwn;i:Ljava/util/Optional;
-
lastTarget
- Mappings:
Namespace Name Mixin selector named lastTarget
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;lastTarget:Lnet/minecraft/util/math/Vec3d;
intermediary field_30144
Lnet/minecraft/class_6030;field_30144:Lnet/minecraft/class_243;
official j
Lbwn;j:Levt;
-
cooldown
protected int cooldown- Mappings:
Namespace Name Mixin selector named cooldown
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;cooldown:I
intermediary field_30145
Lnet/minecraft/class_6030;field_30145:I
official k
Lbwn;k:I
-
targetTime
protected long targetTime- Mappings:
Namespace Name Mixin selector named targetTime
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;targetTime:J
intermediary field_30146
Lnet/minecraft/class_6030;field_30146:J
official l
Lbwn;l:J
-
entityToSound
- Mappings:
Namespace Name Mixin selector named entityToSound
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;entityToSound:Ljava/util/function/Function;
intermediary field_33460
Lnet/minecraft/class_6030;field_33460:Ljava/util/function/Function;
official q
Lbwn;q:Ljava/util/function/Function;
-
jumpToPredicate
- Mappings:
Namespace Name Mixin selector named jumpToPredicate
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;jumpToPredicate:Ljava/util/function/BiPredicate;
intermediary field_37432
Lnet/minecraft/class_6030;field_37432:Ljava/util/function/BiPredicate;
official r
Lbwn;r:Ljava/util/function/BiPredicate;
-
-
Constructor Details
-
LongJumpTask
public LongJumpTask(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;IIFLjava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_6030;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;)V
official <init>
Lbwn;<init>(Lbqh;IIFLjava/util/function/Function;)V
-
LongJumpTask
public LongJumpTask(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, BiPredicate<E, BlockPos> jumpToPredicate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;IIFLjava/util/function/Function;Ljava/util/function/BiPredicate;)V
intermediary <init>
Lnet/minecraft/class_6030;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;Ljava/util/function/BiPredicate;)V
official <init>
Lbwn;<init>(Lbqh;IIFLjava/util/function/Function;Ljava/util/function/BiPredicate;)V
-
-
Method Details
-
shouldJumpTo
- Mappings:
Namespace Name Mixin selector named shouldJumpTo
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;shouldJumpTo(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_45333
Lnet/minecraft/class_6030;method_45333(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Z
official a
Lbwn;a(Lbtt;Liz;)Z
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_35076
Lnet/minecraft/class_6030;method_35076(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official a
Lbwn;a(Larf;Lbtt;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classMultiTickTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
intermediary method_35077
Lnet/minecraft/class_6030;method_35077(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
official b
Lbwn;b(Larf;Lbtt;J)Z
-
run
- Overrides:
run
in classMultiTickTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_35082
Lnet/minecraft/class_6030;method_35082(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official a
Lbwn;a(Larf;Lbtt;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_35083
Lnet/minecraft/class_6030;method_35083(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official c
Lbwn;c(Larf;Lbtt;J)V
-
findTarget
- Mappings:
Namespace Name Mixin selector named findTarget
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;findTarget(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_41342
Lnet/minecraft/class_6030;method_41342(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official d
Lbwn;d(Larf;Lbtt;J)V
-
getTarget
- Mappings:
Namespace Name Mixin selector named getTarget
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;getTarget(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
intermediary method_41336
Lnet/minecraft/class_6030;method_41336(Lnet/minecraft/class_3218;)Ljava/util/Optional;
official a
Lbwn;a(Larf;)Ljava/util/Optional;
-
canJumpTo
- Mappings:
Namespace Name Mixin selector named canJumpTo
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;canJumpTo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_41337
Lnet/minecraft/class_6030;method_41337(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Z
official a
Lbwn;a(Larf;Lbtt;Liz;)Z
-
getJumpingVelocity
- Mappings:
Namespace Name Mixin selector named getJumpingVelocity
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;getJumpingVelocity(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
intermediary method_35078
Lnet/minecraft/class_6030;method_35078(Lnet/minecraft/class_1308;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
official a
Lbwn;a(Lbtt;Levt;)Levt;
-