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
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateOptimalJumpVector
(Breeze pBreeze, RandomSource pRandom, Vec3 pTarget) private static boolean
canJumpFromCurrentPosition
(ServerLevel pLevel, Breeze pBreeze) static boolean
canRun
(ServerLevel pLevel, Breeze pBreeze) protected boolean
canStillUse
(ServerLevel pLevel, Breeze pEntity, long pGameTime) protected boolean
checkExtraStartConditions
(ServerLevel pLevel, Breeze pOwner) private static boolean
isFinishedInhaling
(Breeze pBreeze) private static boolean
isFinishedJumping
(Breeze pBreeze) private static boolean
outOfAggroRange
(Breeze pBreeze, LivingEntity pTarget) private static BlockPos
snapToSurface
(LivingEntity pOwner, Vec3 pTargetPos) protected void
start
(ServerLevel pLevel, Breeze pEntity, long pGameTime) protected void
stop
(ServerLevel pLevel, Breeze pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, Breeze pOwner, long pGameTime) private static boolean
tooCloseForJump
(Breeze pBreeze, LivingEntity pTarget) 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 pBreeze, RandomSource pRandom, Vec3 pTarget)
-