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 Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.objects.ObjectArrayList<Integer> private static final floatprivate static final floatprivate static final intprivate static final intprivate static final intprivate static final floatprivate static final intFields inherited from class Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateOptimalJumpVector(Breeze body, RandomSource random, Vec3 targetPos) private static booleancanJumpFromCurrentPosition(ServerLevel level, Breeze breeze) static booleancanRun(ServerLevel level, Breeze breeze) protected booleancanStillUse(ServerLevel level, Breeze breeze, long timestamp) protected booleancheckExtraStartConditions(ServerLevel level, Breeze breeze) private static booleanisFinishedInhaling(Breeze breeze) private static booleanisFinishedJumping(Breeze breeze) private static booleanoutOfAggroRange(Breeze breeze, LivingEntity attackTarget) private static @Nullable BlockPossnapToSurface(LivingEntity entity, Vec3 target) protected voidstart(ServerLevel level, Breeze breeze, long timestamp) protected voidstop(ServerLevel level, Breeze breeze, long timestamp) protected voidtick(ServerLevel level, Breeze breeze, long timestamp) private static booleantooCloseForJump(Breeze breeze, LivingEntity attackTarget) Methods inherited from class Behavior
debugString, doStop, getRequiredMemories, 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 -
DEFAULT_FOLLOW_RANGE
private static final float DEFAULT_FOLLOW_RANGE- See Also:
-
DEFAULT_MAX_JUMP_VELOCITY
private static final float DEFAULT_MAX_JUMP_VELOCITY- See Also:
-
MAX_JUMP_VELOCITY_MULTIPLIER
private static final float MAX_JUMP_VELOCITY_MULTIPLIER- See Also:
-
ALLOWED_ANGLES
-
-
Constructor Details
-
LongJump
public LongJump()
-
-
Method Details
-
canRun
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<Breeze>
-
canStillUse
- Overrides:
canStillUsein classBehavior<Breeze>
-
start
-
tick
-
stop
-
isFinishedInhaling
-
isFinishedJumping
-
snapToSurface
-
outOfAggroRange
-
tooCloseForJump
-
canJumpFromCurrentPosition
-
calculateOptimalJumpVector
private static Optional<Vec3> calculateOptimalJumpVector(Breeze body, RandomSource random, Vec3 targetPos)
-