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 int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateOptimalJumpVector
(Breeze p_310143_, RandomSource p_313023_, Vec3 p_309973_) private static boolean
canJumpFromCurrentPosition
(ServerLevel p_312023_, Breeze p_313218_) static boolean
canRun
(ServerLevel p_328434_, Breeze p_330036_) protected boolean
canStillUse
(ServerLevel p_310673_, Breeze p_311330_, long p_310051_) protected boolean
checkExtraStartConditions
(ServerLevel p_312411_, Breeze p_309539_) private static boolean
isFinishedInhaling
(Breeze p_330141_) private static boolean
isFinishedJumping
(Breeze p_330755_) private static boolean
outOfAggroRange
(Breeze p_310244_, LivingEntity p_309508_) private static BlockPos
snapToSurface
(LivingEntity p_312785_, Vec3 p_311613_) protected void
start
(ServerLevel p_310741_, Breeze p_312948_, long p_311377_) protected void
stop
(ServerLevel p_309511_, Breeze p_311681_, long p_312980_) protected void
tick
(ServerLevel p_312629_, Breeze p_310204_, long p_313176_) private static boolean
tooCloseForJump
(Breeze p_310091_, LivingEntity p_311303_) 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:
-
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
-
canRun
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Breeze>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Breeze>
-
start
-
tick
-
stop
-
isFinishedInhaling
-
isFinishedJumping
-
snapToSurface
-
outOfAggroRange
-
tooCloseForJump
-
canJumpFromCurrentPosition
-
calculateOptimalJumpVector
private static Optional<Vec3> calculateOptimalJumpVector(Breeze p_310143_, RandomSource p_313023_, Vec3 p_309973_)
-