Class LongJumpToRandomPos<E extends Mob>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate Optional<LongJumpToRandomPos.PossibleJump>
private static int
private int
private Function<E,SoundEvent>
private List<LongJumpToRandomPos.PossibleJump>
private float
private int
private int
private static int
private static int
private long
static int
private UniformInt
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionLongJumpToRandomPos(UniformInt p_147637_, int p_147638_, int p_147639_, float p_147640_, Function<E,SoundEvent> p_147641_)
-
Method Summary
Modifier and TypeMethodDescriptioncalculateJumpVectorForAngle(Mob p_147660_, Vec3 p_147661_, int p_147662_)
calculateOptimalJumpVector(Mob p_147657_, Vec3 p_147658_)
protected boolean
canStillUse(ServerLevel p_147653_, Mob p_147654_, long p_147655_)
protected boolean
checkExtraStartConditions(ServerLevel p_147650_, Mob p_147651_)
private boolean
isClearTransition(Mob p_147664_, Vec3 p_147665_, Vec3 p_147666_)
protected void
start(ServerLevel p_147676_, Mob p_147677_, long p_147678_)
protected void
tick(ServerLevel p_147680_, E p_147681_, long p_147682_)
-
Field Details
-
FIND_JUMP_TRIES
private static final int FIND_JUMP_TRIES- See Also:
- Constant Field Values
-
PREPARE_JUMP_DURATION
private static final int PREPARE_JUMP_DURATION- See Also:
- Constant Field Values
-
MIN_PATHFIND_DISTANCE_TO_VALID_JUMP
private static final int MIN_PATHFIND_DISTANCE_TO_VALID_JUMP- See Also:
- Constant Field Values
-
TIME_OUT_DURATION
public static final int TIME_OUT_DURATION- See Also:
- Constant Field Values
-
timeBetweenLongJumps
-
maxLongJumpHeight
private final int maxLongJumpHeight -
maxLongJumpWidth
private final int maxLongJumpWidth -
maxJumpVelocity
private final float maxJumpVelocity -
jumpCandidates
-
initialPosition
-
chosenJump
-
findJumpTries
private int findJumpTries -
prepareJumpStart
private long prepareJumpStart -
getJumpSound
-
-
Constructor Details
-
LongJumpToRandomPos
public LongJumpToRandomPos(UniformInt p_147637_, int p_147638_, int p_147639_, float p_147640_, Function<E,SoundEvent> p_147641_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<E extends Mob>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<E extends Mob>
-
start
-
tick
-
calculateOptimalJumpVector
-
calculateJumpVectorForAngle
-
isClearTransition
-