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.PossibleJumpNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final List<LongJumpToRandomPos.PossibleJump>private final floatFields 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, prepareJumpStartFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition - 
Constructor Summary
ConstructorsConstructorDescriptionLongJumpToPreferredBlock(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 voidstart(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, tickMethods 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:
 startin classLongJumpToRandomPos<E extends Mob>
 - 
getJumpCandidate
- Overrides:
 getJumpCandidatein classLongJumpToRandomPos<E extends Mob>
 
 -