net.minecraft.entity.ai.brain.task

public class LongJumpTask<E extends MobEntity>

extends MultiTickTask<E>

All mapped superinterfaces:

Task

cdg
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos
net.minecraft.class_6030
net.minecraft.entity.ai.brain.task.LongJumpTask
net.minecraft.unmapped.C_lorklvui
net.minecraft.entity.ai.brain.task.LongJumpTask
net.minecraft.src.C_141082_

Field summary

Modifier and TypeField
protected static final int
c
FIND_JUMP_TRIES
field_30135
MAX_TARGET_SEARCH_TIME
f_ezfoxhnc
MAX_COOLDOWN
f_147623_
private static final int
m
PREPARE_JUMP_DURATION
field_30136
JUMP_WINDUP_TIME
f_cyuyrmqv
TARGET_RETAIN_TIME
f_147624_
protected static final int
d
MIN_PATHFIND_DISTANCE_TO_VALID_JUMP
field_30137
PATHING_DISTANCE
f_ohovpamk
PATHING_DISTANCE
f_147625_
private static final int
n
TIME_OUT_DURATION
field_30134
RUN_TIME
f_bkvdywub
RUN_TIME
f_147622_
private static final List<Integer>
o
ALLOWED_ANGLES
field_37431
RAM_RANGES
f_xfiuyopv
RAMMING_VELOCITIES
f_217289_
private final UniformIntProvider
p
timeBetweenLongJumps
field_30138
cooldownRange
f_ljwlytol
cooldownRange
f_147626_
protected final int
e
maxLongJumpHeight
field_30139
verticalRange
f_xesapfpq
verticalRange
f_147627_
protected final int
f
maxLongJumpWidth
field_30140
horizontalRange
f_tpdxyctz
horizontalRange
f_147628_
protected final float
g
maxJumpVelocityMultiplier
field_30141
maxRange
f_casalqpe
maxVelocityMultiplier
f_316580_
protected List<LongJumpTask$Target>
h
jumpCandidates
field_30142
potentialTargets
f_cnpnjwkj
targets
f_147630_
protected Optional<Vec3d>
i
initialPosition
field_30143
startPos
f_mrqbefwf
lastPos
f_147631_
protected Vec3d
j
chosenJump
field_30144
currentTarget
f_voltlwnj
lastTarget
f_147632_
protected int
k
findJumpTries
field_30145
targetSearchTime
f_icwavajr
cooldown
f_147633_
protected long
l
prepareJumpStart
field_30146
targetPickedTime
f_oqaoaell
targetTime
f_147634_
private final Function<E, SoundEvent>
q
getJumpSound
field_33460
entityToSound
f_eohuokio
jumpSound
f_147635_
private final BiPredicate<E, BlockPos>
r
acceptableLandingSpot
field_37432
jumpToPredicate
f_tnwlshcj
validBlock
f_217290_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <E extends MobEntity> boolean
a(E o, jb o)
defaultAcceptableLandingSpot(E arg0, BlockPos arg1)
method_45333(E arg0, class_2338 arg1)
shouldJumpTo(E entity, BlockPos pos)
m_jnajycle(E arg0, C_hynzadkk arg1)
canJumpTo(E waypoint, BlockPos pos)
m_245086_(E p_251540_, C_4675_ p_248879_)
protected boolean
a(aub o, cao arg1)
checkExtraStartConditions(ServerLevel arg0, Mob arg1)
method_35076(class_3218 arg0, class_1308 arg1)
shouldRun(ServerWorld arg0, MobEntity arg1)
m_wgvqbfjl(C_bdwnwhiu arg0, C_dxkfswlz arg1)
shouldRun(ServerWorld world, MobEntity waypoint)
m_6114_(C_12_ p_147651_, C_526_ arg1)
protected boolean
b(aub o, cao o, 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)
m_xiupcwmr(C_bdwnwhiu arg0, C_dxkfswlz arg1, long arg2)
shouldKeepRunning(ServerWorld world, MobEntity waypoint, long arg2)
m_6737_(C_12_ p_147654_, C_526_ p_147655_, long arg2)
protected void
a(aub o, E o, 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)
m_vctuqbpf(C_bdwnwhiu arg0, E arg1, long arg2)
run(ServerWorld world, E waypoint, long arg2)
m_6735_(C_12_ p_147677_, E p_147678_, long arg2)
protected void
c(aub o, E o, 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)
m_lxstufif(C_bdwnwhiu arg0, E arg1, long arg2)
keepRunning(ServerWorld world, E waypoint, long arg2)
m_6725_(C_12_ p_147681_, E p_147682_, long arg2)
protected void
d(aub o, E o, 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)
m_bxvlvnid(C_bdwnwhiu arg0, E arg1, long arg2)
pickTarget(ServerWorld world, E entity, long time)
m_217318_(C_12_ p_217320_, E p_217321_, long arg2)
protected Optional<LongJumpTask$Target>
a(aub arg0)
getJumpCandidate(ServerLevel arg0)
method_41336(class_3218 arg0)
removeRandomTarget(ServerWorld world)
m_lhfkbmlb(C_bdwnwhiu arg0)
findTarget(ServerWorld world)
m_213675_(C_12_ arg0)
private boolean
a(aub o, E o, jb 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)
m_aqmuqzze(C_bdwnwhiu arg0, E arg1, C_hynzadkk arg2)
canJumpTo(ServerWorld world, E entity, BlockPos pos)
m_213828_(C_12_ p_217301_, E p_217302_, C_4675_ arg2)
protected Vec3d
a(cao o, fis arg1)
calculateOptimalJumpVector(Mob arg0, Vec3 arg1)
method_35078(class_1308 arg0, class_243 arg1)
getJumpingVelocity(MobEntity entity, Vec3d targetPos)
m_uruzcoyz(C_dxkfswlz arg0, C_vgpupfxx arg1)
getRammingVelocity(MobEntity entity, Vec3d pos)
m_217303_(C_526_ p_217305_, C_3046_ arg1)