Class BiasedLongJumpTask<E extends MobEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
net.minecraft.entity.ai.brain.task.LongJumpTask<E>
net.minecraft.entity.ai.brain.task.BiasedLongJumpTask<E>
- All Implemented Interfaces:
Task<E>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/BiasedLongJumpTask
intermediary net/minecraft/class_7096
official bza
-
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.MultiTickTask
MultiTickTask.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
currentTarget, horizontalRange, MAX_TARGET_SEARCH_TIME, maxRange, PATHING_DISTANCE, potentialTargets, startPos, targetPickedTime, targetSearchTime, verticalRange
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionBiasedLongJumpTask
(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, TagKey<Block> favoredBlocks, float biasChance, BiPredicate<E, BlockPos> jumpToPredicate) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional
<LongJumpTask.Target> removeRandomTarget
(ServerWorld world) protected void
run
(ServerWorld serverWorld, E e, long long2) Methods inherited from class net.minecraft.entity.ai.brain.task.LongJumpTask
getJumpingVelocity, keepRunning, pickTarget, shouldJumpTo, shouldKeepRunning, shouldRun
Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
finishRunning, getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
favoredBlocks
- Mappings:
Namespace Name Mixin selector named favoredBlocks
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;favoredBlocks:Lnet/minecraft/registry/tag/TagKey;
intermediary field_37427
Lnet/minecraft/class_7096;field_37427:Lnet/minecraft/class_6862;
official m
Lbza;m:Layk;
-
biasChance
private final float biasChance- Mappings:
Namespace Name Mixin selector named biasChance
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;biasChance:F
intermediary field_37428
Lnet/minecraft/class_7096;field_37428:F
official n
Lbza;n:F
-
unfavoredTargets
- Mappings:
Namespace Name Mixin selector named unfavoredTargets
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;unfavoredTargets:Ljava/util/List;
intermediary field_37429
Lnet/minecraft/class_7096;field_37429:Ljava/util/List;
official o
Lbza;o:Ljava/util/List;
-
useBias
private boolean useBias- Mappings:
Namespace Name Mixin selector named useBias
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;useBias:Z
intermediary field_37430
Lnet/minecraft/class_7096;field_37430:Z
official p
Lbza;p:Z
-
-
Constructor Details
-
BiasedLongJumpTask
public BiasedLongJumpTask(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, TagKey<Block> favoredBlocks, float biasChance, BiPredicate<E, BlockPos> jumpToPredicate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;IIFLjava/util/function/Function;Lnet/minecraft/registry/tag/TagKey;FLjava/util/function/BiPredicate;)V
intermediary <init>
Lnet/minecraft/class_7096;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;Lnet/minecraft/class_6862;FLjava/util/function/BiPredicate;)V
official <init>
Lbza;<init>(Lbst;IIFLjava/util/function/Function;Layk;FLjava/util/function/BiPredicate;)V
-
-
Method Details
-
run
- Overrides:
run
in classLongJumpTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_35082
Lnet/minecraft/class_7096;method_35082(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official method_35082
Lbza;method_35082(Lash;Lbwh;J)V
-
removeRandomTarget
- Overrides:
removeRandomTarget
in classLongJumpTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector named removeRandomTarget
Lnet/minecraft/entity/ai/brain/task/LongJumpTask;removeRandomTarget(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
Lbzb;a(Lash;)Ljava/util/Optional;
-