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 Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.objects.ObjectArrayList<Integer>
private static final int
private static final int
private static final int
private static final float
private static final double
private static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateOptimalJumpVector
(Breeze p_312651_, RandomSource p_312364_, Vec3 p_312758_) private static boolean
canJumpFromCurrentPosition
(ServerLevel p_312261_, Breeze p_312824_) protected boolean
canStillUse
(ServerLevel p_312482_, Breeze p_312019_, long p_312448_) protected boolean
checkExtraStartConditions
(ServerLevel p_312131_, Breeze p_312686_) private static boolean
finishedInhaling
(Breeze p_312012_) private static boolean
finishedJumping
(Breeze p_311829_) static boolean
hasLineOfSight
(Breeze p_312681_, Vec3 p_311816_) private static boolean
outOfAggroRange
(Breeze p_312045_, LivingEntity p_312043_) private static Vec3
randomPointBehindTarget
(LivingEntity p_311877_, RandomSource p_312549_) private static BlockPos
snapToSurface
(LivingEntity p_311909_, Vec3 p_312597_) protected void
start
(ServerLevel p_312817_, Breeze p_311902_, long p_312420_) protected void
stop
(ServerLevel p_312766_, Breeze p_312924_, long p_312793_) protected void
tick
(ServerLevel p_312091_, Breeze p_312923_, long p_312404_) private static boolean
tooCloseForJump
(Breeze p_312356_, LivingEntity p_312654_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
REQUIRED_AIR_BLOCKS_ABOVE
private static final int REQUIRED_AIR_BLOCKS_ABOVE- See Also:
-
MAX_LINE_OF_SIGHT_TEST_RANGE
private static final double MAX_LINE_OF_SIGHT_TEST_RANGE- See Also:
-
JUMP_COOLDOWN_TICKS
private static final int JUMP_COOLDOWN_TICKS- See Also:
-
JUMP_COOLDOWN_WHEN_HURT_TICKS
private static final int JUMP_COOLDOWN_WHEN_HURT_TICKS- See Also:
-
INHALING_DURATION_TICKS
private static final int INHALING_DURATION_TICKS -
MAX_JUMP_VELOCITY
private static final float MAX_JUMP_VELOCITY- See Also:
-
ALLOWED_ANGLES
-
-
Constructor Details
-
LongJump
public LongJump()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Breeze>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Breeze>
-
start
-
tick
-
stop
-
finishedInhaling
-
finishedJumping
-
randomPointBehindTarget
-
snapToSurface
-
hasLineOfSight
-
outOfAggroRange
-
tooCloseForJump
-
canJumpFromCurrentPosition
-
calculateOptimalJumpVector
private static Optional<Vec3> calculateOptimalJumpVector(Breeze p_312651_, RandomSource p_312364_, Vec3 p_312758_)
-