Class LongJumpTask<E extends MobEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.LongJumpTask<E>
- Direct Known Subclasses:
BiasedLongJumpTask
- Mappings:
Namespace Name official bgeintermediary net/minecraft/class_6030named net/minecraft/entity/ai/brain/task/LongJumpTask
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprivate final UniformIntProviderprivate final Function<E,SoundEvent> protected final intprivate final BiPredicate<E,BlockPos> protected static final intprotected final floatprotected static final intprivate static final intprivate static final intprotected List<LongJumpTask.Target>protected longprotected final intFields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
ConstructorsConstructorDescriptionLongJumpTask(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 booleancanJumpTo(ServerWorld world, E entity, BlockPos pos) private booleancanReach(MobEntity entity, EntityDimensions dimensions, Vec3d vec3d, Vec3d vec3d2) protected voidfindTarget(ServerWorld world, E entity, long time) getJumpingVelocity(MobEntity entity, Vec3d pos) getJumpingVelocity(MobEntity entity, Vec3d pos, int range) protected Optional<LongJumpTask.Target>getTarget(ServerWorld world) protected booleanmethod_35076(ServerWorld serverWorld, MobEntity mobEntity) protected booleanmethod_35077(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected voidmethod_35082(ServerWorld serverWorld, E e, long long2) protected voidmethod_35083(ServerWorld serverWorld, E e, long long2) static <E extends MobEntity>
booleanshouldJumpTo(E entity, BlockPos pos) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, run, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
MAX_COOLDOWN
protected static final int MAX_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector official aLbge;a:Iintermediary field_30135Lnet/minecraft/class_6030;field_30135:Inamed MAX_COOLDOWNLnet/minecraft/entity/ai/brain/task/LongJumpTask;MAX_COOLDOWN:I
-
TARGET_RETAIN_TIME
private static final int TARGET_RETAIN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official mLbge;m:Iintermediary field_30136Lnet/minecraft/class_6030;field_30136:Inamed TARGET_RETAIN_TIMELnet/minecraft/entity/ai/brain/task/LongJumpTask;TARGET_RETAIN_TIME:I
-
PATHING_DISTANCE
protected static final int PATHING_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official dLbge;d:Iintermediary field_30137Lnet/minecraft/class_6030;field_30137:Inamed PATHING_DISTANCELnet/minecraft/entity/ai/brain/task/LongJumpTask;PATHING_DISTANCE:I
-
RUN_TIME
private static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official nLbge;n:Iintermediary field_30134Lnet/minecraft/class_6030;field_30134:Inamed RUN_TIMELnet/minecraft/entity/ai/brain/task/LongJumpTask;RUN_TIME:I
-
RAM_RANGES
- Mappings:
Namespace Name Mixin selector official oLbge;o:Ljava/util/List;intermediary field_37431Lnet/minecraft/class_6030;field_37431:Ljava/util/List;named RAM_RANGESLnet/minecraft/entity/ai/brain/task/LongJumpTask;RAM_RANGES:Ljava/util/List;
-
cooldownRange
- Mappings:
Namespace Name Mixin selector official pLbge;p:Lbbf;intermediary field_30138Lnet/minecraft/class_6030;field_30138:Lnet/minecraft/class_6019;named cooldownRangeLnet/minecraft/entity/ai/brain/task/LongJumpTask;cooldownRange:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
verticalRange
protected final int verticalRange- Mappings:
Namespace Name Mixin selector official eLbge;e:Iintermediary field_30139Lnet/minecraft/class_6030;field_30139:Inamed verticalRangeLnet/minecraft/entity/ai/brain/task/LongJumpTask;verticalRange:I
-
horizontalRange
protected final int horizontalRange- Mappings:
Namespace Name Mixin selector official fLbge;f:Iintermediary field_30140Lnet/minecraft/class_6030;field_30140:Inamed horizontalRangeLnet/minecraft/entity/ai/brain/task/LongJumpTask;horizontalRange:I
-
maxRange
protected final float maxRange- Mappings:
Namespace Name Mixin selector official gLbge;g:Fintermediary field_30141Lnet/minecraft/class_6030;field_30141:Fnamed maxRangeLnet/minecraft/entity/ai/brain/task/LongJumpTask;maxRange:F
-
targets
- Mappings:
Namespace Name Mixin selector official hLbge;h:Ljava/util/List;intermediary field_30142Lnet/minecraft/class_6030;field_30142:Ljava/util/List;named targetsLnet/minecraft/entity/ai/brain/task/LongJumpTask;targets:Ljava/util/List;
-
lastPos
- Mappings:
Namespace Name Mixin selector official iLbge;i:Ljava/util/Optional;intermediary field_30143Lnet/minecraft/class_6030;field_30143:Ljava/util/Optional;named lastPosLnet/minecraft/entity/ai/brain/task/LongJumpTask;lastPos:Ljava/util/Optional;
-
lastTarget
- Mappings:
Namespace Name Mixin selector official jLbge;j:Ldze;intermediary field_30144Lnet/minecraft/class_6030;field_30144:Lnet/minecraft/class_243;named lastTargetLnet/minecraft/entity/ai/brain/task/LongJumpTask;lastTarget:Lnet/minecraft/util/math/Vec3d;
-
cooldown
protected int cooldown- Mappings:
Namespace Name Mixin selector official kLbge;k:Iintermediary field_30145Lnet/minecraft/class_6030;field_30145:Inamed cooldownLnet/minecraft/entity/ai/brain/task/LongJumpTask;cooldown:I
-
targetTime
protected long targetTime- Mappings:
Namespace Name Mixin selector official lLbge;l:Jintermediary field_30146Lnet/minecraft/class_6030;field_30146:Jnamed targetTimeLnet/minecraft/entity/ai/brain/task/LongJumpTask;targetTime:J
-
entityToSound
- Mappings:
Namespace Name Mixin selector official qLbge;q:Ljava/util/function/Function;intermediary field_33460Lnet/minecraft/class_6030;field_33460:Ljava/util/function/Function;named entityToSoundLnet/minecraft/entity/ai/brain/task/LongJumpTask;entityToSound:Ljava/util/function/Function;
-
jumpToPredicate
- Mappings:
Namespace Name Mixin selector official rLbge;r:Ljava/util/function/BiPredicate;intermediary field_37432Lnet/minecraft/class_6030;field_37432:Ljava/util/function/BiPredicate;named jumpToPredicateLnet/minecraft/entity/ai/brain/task/LongJumpTask;jumpToPredicate: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 official <init>Lbge;<init>(Lbbf;IIFLjava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_6030;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/LongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;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 official <init>Lbge;<init>(Lbbf;IIFLjava/util/function/Function;Ljava/util/function/BiPredicate;)Vintermediary <init>Lnet/minecraft/class_6030;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;Ljava/util/function/BiPredicate;)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/LongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;IIFLjava/util/function/Function;Ljava/util/function/BiPredicate;)V
-
-
Method Details
-
shouldJumpTo
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbdp;Lgr;)Zintermediary method_45333Lnet/minecraft/class_6030;method_45333(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Znamed shouldJumpToLnet/minecraft/entity/ai/brain/task/LongJumpTask;shouldJumpTo(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Z
-
method_35076
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lahb;Lbdp;)Zintermediary method_35076Lnet/minecraft/class_6030;method_35076(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Znamed method_35076Lnet/minecraft/entity/ai/brain/task/LongJumpTask;method_35076(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
-
method_35077
- Mappings:
Namespace Name Mixin selector official bLbge;b(Lahb;Lbdp;J)Zintermediary method_35077Lnet/minecraft/class_6030;method_35077(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Znamed method_35077Lnet/minecraft/entity/ai/brain/task/LongJumpTask;method_35077(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
-
method_35082
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lahb;Lbdp;J)Vintermediary method_35082Lnet/minecraft/class_6030;method_35082(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Vnamed method_35082Lnet/minecraft/entity/ai/brain/task/LongJumpTask;method_35082(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
method_35083
- Mappings:
Namespace Name Mixin selector official cLbge;c(Lahb;Lbdp;J)Vintermediary method_35083Lnet/minecraft/class_6030;method_35083(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Vnamed method_35083Lnet/minecraft/entity/ai/brain/task/LongJumpTask;method_35083(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
findTarget
- Mappings:
Namespace Name Mixin selector official dLbge;d(Lahb;Lbdp;J)Vintermediary method_41342Lnet/minecraft/class_6030;method_41342(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Vnamed findTargetLnet/minecraft/entity/ai/brain/task/LongJumpTask;findTarget(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
getTarget
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lahb;)Ljava/util/Optional;intermediary method_41336Lnet/minecraft/class_6030;method_41336(Lnet/minecraft/class_3218;)Ljava/util/Optional;named getTargetLnet/minecraft/entity/ai/brain/task/LongJumpTask;getTarget(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
-
canJumpTo
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lahb;Lbdp;Lgr;)Zintermediary method_41337Lnet/minecraft/class_6030;method_41337(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Znamed canJumpToLnet/minecraft/entity/ai/brain/task/LongJumpTask;canJumpTo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Z
-
getJumpingVelocity
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbdp;Ldze;)Ldze;intermediary method_35078Lnet/minecraft/class_6030;method_35078(Lnet/minecraft/class_1308;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;named getJumpingVelocityLnet/minecraft/entity/ai/brain/task/LongJumpTask;getJumpingVelocity(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
-
getJumpingVelocity
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbdp;Ldze;I)Ldze;intermediary method_35079Lnet/minecraft/class_6030;method_35079(Lnet/minecraft/class_1308;Lnet/minecraft/class_243;I)Lnet/minecraft/class_243;named getJumpingVelocityLnet/minecraft/entity/ai/brain/task/LongJumpTask;getJumpingVelocity(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/Vec3d;I)Lnet/minecraft/util/math/Vec3d;
-
canReach
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbdp;Lbcz;Ldze;Ldze;)Zintermediary method_35080Lnet/minecraft/class_6030;method_35080(Lnet/minecraft/class_1308;Lnet/minecraft/class_4048;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Znamed canReachLnet/minecraft/entity/ai/brain/task/LongJumpTask;canReach(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/EntityDimensions;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
-