Class LongJump
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Breeze>
net.minecraft.world.entity.monster.breeze.LongJump
- All Implemented Interfaces:
- BehaviorControl<Breeze>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.objects.ObjectArrayList<Integer>private static final intprivate static final intprivate static final intprivate static final floatprivate static final doubleprivate static final intFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncalculateOptimalJumpVector(Breeze p_312651_, RandomSource p_312364_, Vec3 p_312758_) private static booleancanJumpFromCurrentPosition(ServerLevel p_312261_, Breeze p_312824_) protected booleancanStillUse(ServerLevel p_312482_, Breeze p_312019_, long p_312448_) protected booleancheckExtraStartConditions(ServerLevel p_312131_, Breeze p_312686_) private static booleanfinishedInhaling(Breeze p_312012_) private static booleanfinishedJumping(Breeze p_311829_) static booleanhasLineOfSight(Breeze p_312681_, Vec3 p_311816_) private static booleanoutOfAggroRange(Breeze p_312045_, LivingEntity p_312043_) private static Vec3randomPointBehindTarget(LivingEntity p_311877_, RandomSource p_312549_) private static BlockPossnapToSurface(LivingEntity p_311909_, Vec3 p_312597_) protected voidstart(ServerLevel p_312817_, Breeze p_311902_, long p_312420_) protected voidstop(ServerLevel p_312766_, Breeze p_312924_, long p_312793_) protected voidtick(ServerLevel p_312091_, Breeze p_312923_, long p_312404_) private static booleantooCloseForJump(Breeze p_312356_, LivingEntity p_312654_) Methods inherited from class net.minecraft.world.entity.ai.behavior.BehaviordebugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
- 
Field Details- 
REQUIRED_AIR_BLOCKS_ABOVEprivate static final int REQUIRED_AIR_BLOCKS_ABOVE- See Also:
 
- 
MAX_LINE_OF_SIGHT_TEST_RANGEprivate static final double MAX_LINE_OF_SIGHT_TEST_RANGE- See Also:
 
- 
JUMP_COOLDOWN_TICKSprivate static final int JUMP_COOLDOWN_TICKS- See Also:
 
- 
JUMP_COOLDOWN_WHEN_HURT_TICKSprivate static final int JUMP_COOLDOWN_WHEN_HURT_TICKS- See Also:
 
- 
INHALING_DURATION_TICKSprivate static final int INHALING_DURATION_TICKS
- 
MAX_JUMP_VELOCITYprivate static final float MAX_JUMP_VELOCITY- See Also:
 
- 
ALLOWED_ANGLES
 
- 
- 
Constructor Details- 
LongJumppublic LongJump()
 
- 
- 
Method Details- 
checkExtraStartConditions- Overrides:
- checkExtraStartConditionsin class- Behavior<Breeze>
 
- 
canStillUse- Overrides:
- canStillUsein class- Behavior<Breeze>
 
- 
start
- 
tick
- 
stop
- 
finishedInhaling
- 
finishedJumping
- 
randomPointBehindTarget
- 
snapToSurface
- 
hasLineOfSight
- 
outOfAggroRange
- 
tooCloseForJump
- 
canJumpFromCurrentPosition
- 
calculateOptimalJumpVectorprivate static Optional<Vec3> calculateOptimalJumpVector(Breeze p_312651_, RandomSource p_312364_, Vec3 p_312758_) 
 
-