net.minecraft.world.entity.ai.behavior

public class LongJumpToRandomPos<E extends Mob>

extends Behavior<E>

All mapped superinterfaces:

BehaviorControl

bzc
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos
net.minecraft.class_6030
net.minecraft.entity.ai.brain.task.LongJumpTask
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos

Field summary

Modifier and TypeField
protected static final int
c
FIND_JUMP_TRIES
field_30135
MAX_TARGET_SEARCH_TIME
private static final int
m
PREPARE_JUMP_DURATION
field_30136
JUMP_WINDUP_TIME
protected static final int
d
MIN_PATHFIND_DISTANCE_TO_VALID_JUMP
field_30137
PATHING_DISTANCE
private static final int
n
TIME_OUT_DURATION
field_30134
RUN_TIME
private static final List<Integer>
o
ALLOWED_ANGLES
field_37431
RAM_RANGES
private final UniformInt
p
timeBetweenLongJumps
field_30138
cooldownRange
protected final int
e
maxLongJumpHeight
field_30139
verticalRange
protected final int
f
maxLongJumpWidth
field_30140
horizontalRange
protected final float
g
maxJumpVelocityMultiplier
field_30141
maxRange
protected List<LongJumpToRandomPos$PossibleJump>
h
jumpCandidates
field_30142
potentialTargets
protected Optional<Vec3>
i
initialPosition
field_30143
startPos
protected Vec3
j
chosenJump
field_30144
currentTarget
protected int
k
findJumpTries
field_30145
targetSearchTime
protected long
l
prepareJumpStart
field_30146
targetPickedTime
private final Function<E, SoundEvent>
q
getJumpSound
field_33460
entityToSound
private final BiPredicate<E, BlockPos>
r
acceptableLandingSpot
field_37432
jumpToPredicate

Constructor summary

ModifierConstructor
public (UniformInt cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound)
public (UniformInt cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, BiPredicate<E, BlockPos> jumpToPredicate)

Method summary

Modifier and TypeMethod
public static <E extends Mob> boolean
a(E arg0, jh arg1)
defaultAcceptableLandingSpot(E arg0, BlockPos arg1)
method_45333(E arg0, class_2338 arg1)
shouldJumpTo(E entity, BlockPos pos)
protected boolean
a(ash arg0, bwi arg1)
checkExtraStartConditions(ServerLevel arg0, Mob arg1)
method_35076(class_3218 arg0, class_1308 arg1)
shouldRun(ServerWorld arg0, MobEntity arg1)
protected boolean
b(ash arg0, bwi arg1, long arg2)
canStillUse(ServerLevel arg0, Mob arg1, long arg2)
method_35077(class_3218 arg0, class_1308 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, MobEntity arg1, long arg2)
protected void
a(ash arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_35082(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
protected void
c(ash arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_35083(class_3218 arg0, E arg1, long arg2)
keepRunning(ServerWorld arg0, E arg1, long arg2)
protected void
d(ash arg0, E arg1, long arg2)
pickCandidate(ServerLevel arg0, E arg1, long arg2)
method_41342(class_3218 arg0, E arg1, long arg2)
pickTarget(ServerWorld world, E entity, long time)
protected Optional<LongJumpToRandomPos$PossibleJump>
a(ash arg0)
getJumpCandidate(ServerLevel arg0)
method_41336(class_3218 arg0)
removeRandomTarget(ServerWorld world)
private boolean
a(ash arg0, E arg1, jh arg2)
isAcceptableLandingPosition(ServerLevel arg0, E arg1, BlockPos arg2)
method_41337(class_3218 arg0, E arg1, class_2338 arg2)
canJumpTo(ServerWorld world, E entity, BlockPos pos)
protected Vec3
a(bwi arg0, fby arg1)
calculateOptimalJumpVector(Mob arg0, Vec3 arg1)
method_35078(class_1308 arg0, class_243 arg1)
getJumpingVelocity(MobEntity entity, Vec3d targetPos)