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 SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.LongJumpToRandomPosLongJumpToRandomPos.PossibleJumpNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate final List<LongJumpToRandomPos.PossibleJump>private final floatFields inherited from class net.minecraft.world.entity.ai.behavior.LongJumpToRandomPoschosenJump, FIND_JUMP_TRIES, findJumpTries, initialPosition, jumpCandidates, maxJumpVelocity, maxLongJumpHeight, maxLongJumpWidth, MIN_PATHFIND_DISTANCE_TO_VALID_JUMP, prepareJumpStartFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructorsConstructorDescriptionLongJumpToPreferredBlock(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 SummaryModifier and TypeMethodDescriptionprotected Optional<LongJumpToRandomPos.PossibleJump>getJumpCandidate(ServerLevel p_217273_) protected voidstart(ServerLevel p_217279_, E p_217280_, long p_217281_) Methods inherited from class net.minecraft.world.entity.ai.behavior.LongJumpToRandomPoscalculateOptimalJumpVector, canStillUse, checkExtraStartConditions, defaultAcceptableLandingSpot, pickCandidate, tickMethods inherited from class net.minecraft.world.entity.ai.behavior.BehaviordebugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart
- 
Field Details- 
preferredBlockTag
- 
preferredBlocksChanceprivate final float preferredBlocksChance
- 
notPrefferedJumpCandidates
- 
currentlyWantingPreferredOnesprivate boolean currentlyWantingPreferredOnes
 
- 
- 
Constructor Details- 
LongJumpToPreferredBlockpublic 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:
- startin class- LongJumpToRandomPos<E extends Mob>
 
- 
getJumpCandidate- Overrides:
- getJumpCandidatein class- LongJumpToRandomPos<E extends Mob>
 
 
-