Class LongJumpToPreferredBlock<E extends Mob>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos<E>
net.minecraft.world.entity.ai.behavior.LongJumpToPreferredBlock<E>
- All Implemented Interfaces:
BehaviorControl<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos
LongJumpToRandomPos.PossibleJump
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final List<LongJumpToRandomPos.PossibleJump>
private final float
Fields inherited from class net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos
chosenJump, FIND_JUMP_TRIES, findJumpTries, initialPosition, jumpCandidates, maxJumpVelocity, maxLongJumpHeight, maxLongJumpWidth, MIN_PATHFIND_DISTANCE_TO_VALID_JUMP, prepareJumpStart
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionLongJumpToPreferredBlock
(UniformInt p_250024_, int p_249524_, int p_250434_, float p_252307_, Function<E, SoundEvent> p_248661_, TagKey<Block> p_251760_, float p_249002_, BiPredicate<E, BlockPos> p_251818_) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<LongJumpToRandomPos.PossibleJump>
getJumpCandidate
(ServerLevel p_217273_) protected void
start
(ServerLevel p_217279_, E p_217280_, long p_217281_) Methods inherited from class net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos
calculateOptimalJumpVector, canStillUse, checkExtraStartConditions, defaultAcceptableLandingSpot, pickCandidate, tick
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart
-
Field Details
-
preferredBlockTag
-
preferredBlocksChance
private final float preferredBlocksChance -
notPrefferedJumpCandidates
-
currentlyWantingPreferredOnes
private boolean currentlyWantingPreferredOnes
-
-
Constructor Details
-
LongJumpToPreferredBlock
public LongJumpToPreferredBlock(UniformInt p_250024_, int p_249524_, int p_250434_, float p_252307_, Function<E, SoundEvent> p_248661_, TagKey<Block> p_251760_, float p_249002_, BiPredicate<E, BlockPos> p_251818_)
-
-
Method Details
-
start
- Overrides:
start
in classLongJumpToRandomPos<E extends Mob>
-
getJumpCandidate
- Overrides:
getJumpCandidate
in classLongJumpToRandomPos<E extends Mob>
-