Class BiasedLongJumpTask<E extends MobEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.LongJumpTask<E>
net.minecraft.entity.ai.brain.task.BiasedLongJumpTask<E>
- Mappings:
Namespace Name official bes
intermediary net/minecraft/class_7096
named net/minecraft/entity/ai/brain/task/BiasedLongJumpTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.LongJumpTask
LongJumpTask.Target
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private final List<LongJumpTask.Target>
private boolean
Fields inherited from class net.minecraft.entity.ai.brain.task.LongJumpTask
cooldown, horizontalRange, lastPos, lastTarget, MAX_COOLDOWN, maxRange, PATHING_DISTANCE, targets, targetTime, verticalRange
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionBiasedLongJumpTask
(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, TagKey<Block> favoredBlocks, float biasChance, Predicate<BlockState> jumpToPredicate) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canJumpTo
(ServerWorld world, E entity, BlockPos pos) protected Optional<LongJumpTask.Target>
getTarget
(ServerWorld world) private boolean
isFluidStateAndBelowEmpty
(ServerWorld world, BlockPos pos) protected void
run
(ServerWorld serverWorld, E e, long long2) Methods inherited from class net.minecraft.entity.ai.brain.task.LongJumpTask
findTarget, getRammingVelocity, keepRunning, shouldKeepRunning, shouldRun
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
favoredBlocks
- Mappings:
Namespace Name Mixin selector official m
Lbes;m:Lakz;
intermediary field_37427
Lnet/minecraft/class_7096;field_37427:Lnet/minecraft/class_6862;
named favoredBlocks
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;favoredBlocks:Lnet/minecraft/tag/TagKey;
-
biasChance
private final float biasChance- Mappings:
Namespace Name Mixin selector official n
Lbes;n:F
intermediary field_37428
Lnet/minecraft/class_7096;field_37428:F
named biasChance
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;biasChance:F
-
unfavoredTargets
- Mappings:
Namespace Name Mixin selector official o
Lbes;o:Ljava/util/List;
intermediary field_37429
Lnet/minecraft/class_7096;field_37429:Ljava/util/List;
named unfavoredTargets
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;unfavoredTargets:Ljava/util/List;
-
useBias
private boolean useBias- Mappings:
Namespace Name Mixin selector official p
Lbes;p:Z
intermediary field_37430
Lnet/minecraft/class_7096;field_37430:Z
named useBias
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;useBias:Z
-
-
Constructor Details
-
BiasedLongJumpTask
public BiasedLongJumpTask(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, TagKey<Block> favoredBlocks, float biasChance, Predicate<BlockState> jumpToPredicate) - Mappings:
Namespace Name Mixin selector official <init>
Lbes;<init>(Lazu;IIFLjava/util/function/Function;Lakz;FLjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_7096;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;Lnet/minecraft/class_6862;FLjava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;IIFLjava/util/function/Function;Lnet/minecraft/tag/TagKey;FLjava/util/function/Predicate;)V
-
-
Method Details
-
run
- Overrides:
run
in classLongJumpTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official method_35082
Lbes;method_35082(Lagg;Lbce;J)V
intermediary method_35082
Lnet/minecraft/class_7096;method_35082(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named run
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
getTarget
- Overrides:
getTarget
in classLongJumpTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbet;a(Lagg;)Ljava/util/Optional;
intermediary method_41336
Lnet/minecraft/class_6030;method_41336(Lnet/minecraft/class_3218;)Ljava/util/Optional;
named getTarget
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;getTarget(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
-
canJumpTo
- Overrides:
canJumpTo
in classLongJumpTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbet;a(Lagg;Lbce;Lgt;)Z
intermediary method_41337
Lnet/minecraft/class_6030;method_41337(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Z
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
-
isFluidStateAndBelowEmpty
- Mappings:
Namespace Name Mixin selector official a
Lbes;a(Lagg;Lgt;)Z
intermediary method_41338
Lnet/minecraft/class_7096;method_41338(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
named isFluidStateAndBelowEmpty
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;isFluidStateAndBelowEmpty(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
-