net.minecraft.world.entity.ai.behavior

public class PrepareRamNearestTarget<E extends PathfinderMob>

extends Behavior<E>

All mapped superinterfaces:

BehaviorControl

bhi
net.minecraft.world.entity.ai.behavior.PrepareRamNearestTarget
net.minecraft.class_6336
net.minecraft.unmapped.C_efxxxmpi
net.minecraft.entity.ai.brain.task.PrepareRamTask
net.minecraft.entity.ai.brain.task.PrepareRamTask
net.minecraft.src.C_141084_
net.minecraft.world.entity.ai.behavior.PrepareRamNearestTarget

Field summary

Modifier and TypeField
public static final int
c
TIME_OUT_DURATION
field_33461
f_kuorbmlx
RUN_TIME
RUN_TIME
f_147713_
private final ToIntFunction<E>
d
getCooldownOnFail
field_33462
f_cbwankhz
cooldownFactory
cooldownFactory
f_147714_
private final int
e
minRamDistance
field_33463
f_zbbmikya
minRamDistance
minRamDistance
f_147715_
private final int
f
maxRamDistance
field_33464
f_pquwdtmr
maxRamDistance
maxRamDistance
f_147716_
private final float
g
walkSpeed
field_33465
f_nwophvqq
speed
speed
f_147717_
private final TargetingConditions
h
ramTargeting
field_33466
f_flneuefi
targetPredicate
targetPredicate
f_147718_
private final int
i
ramPrepareTime
field_33467
f_ukzigqtj
prepareTime
prepareTime
f_147719_
private final Function<E, SoundEvent>
j
getPrepareRamSound
field_33468
f_psdwehxs
soundFactory
soundFactory
f_147720_
private Optional<Long>
k
reachedRamPositionTimestamp
field_33469
f_xgkhixvm
prepareStartTime
prepareStartTime
f_147721_
private Optional<PrepareRamNearestTarget$RamCandidate>
l
ramCandidate
field_33470
f_puwdgtrt
ram
ram
f_147722_

Constructor summary

ModifierConstructor
public (ToIntFunction<E> cooldownFactory, int minDistance, int maxDistance, float speed, TargetingConditions targetPredicate, int prepareTime, Function<E, SoundEvent> soundFactory)

Method summary

Modifier and TypeMethod
protected void
a(ahm arg0, bep arg1, long arg2)
start(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_36260(class_3218 arg0, class_1314 arg1, long arg2)
m_tkbvcqsc(C_bdwnwhiu arg0, C_hqdayibh arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6735_(C_12_ p_147737_, C_533_ p_147738_, long arg2)
protected void
b(ahm arg0, E arg1, long arg2)
stop(ServerLevel arg0, E arg1, long arg2)
method_36267(class_3218 arg0, E arg1, long arg2)
m_hqmhkmgb(C_bdwnwhiu arg0, E arg1, long arg2)
finishRunning(ServerWorld arg0, E arg1, long arg2)
finishRunning(ServerWorld arg0, E arg1, long arg2)
m_6732_(C_12_ p_147763_, E p_147764_, long arg2)
protected boolean
c(ahm arg0, bep arg1, long arg2)
canStillUse(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_36269(class_3218 arg0, class_1314 arg1, long arg2)
m_rmchnuep(C_bdwnwhiu arg0, C_hqdayibh arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6737_(C_12_ p_147774_, C_533_ p_147775_, long arg2)
protected void
d(ahm arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_36271(class_3218 arg0, E arg1, long arg2)
m_abcmkcut(C_bdwnwhiu arg0, E arg1, long arg2)
keepRunning(ServerWorld arg0, E arg1, long arg2)
keepRunning(ServerWorld arg0, E arg1, long arg2)
m_6725_(C_12_ p_147785_, E p_147786_, long arg2)
private Vec3
a(gp arg0, gp arg1)
getEdgeOfBlock(BlockPos arg0, BlockPos arg1)
method_36266(class_2338 arg0, class_2338 arg1)
m_jejctbcm(C_hynzadkk arg0, C_hynzadkk arg1)
calculateRamTarget(BlockPos start, BlockPos end)
calculateRamTarget(BlockPos start, BlockPos end)
m_147754_(C_4675_ p_147756_, C_4675_ arg1)
private Optional<BlockPos>
a(bep arg0, beg arg1)
calculateRammingStartPosition(PathfinderMob arg0, LivingEntity arg1)
method_36262(class_1314 arg0, class_1309 arg1)
m_tamhuoqp(C_hqdayibh arg0, C_usxaxydn arg1)
findRamStart(PathAwareEntity entity, LivingEntity target)
findRamStart(PathAwareEntity entity, LivingEntity target)
m_147742_(C_533_ p_147744_, C_524_ arg1)
private boolean
a(bep arg0, gp arg1)
isWalkableBlock(PathfinderMob arg0, BlockPos arg1)
method_36263(class_1314 arg0, class_2338 arg1)
m_tfmdxwnn(C_hqdayibh arg0, C_hynzadkk arg1)
canReach(PathAwareEntity entity, BlockPos target)
canReach(PathAwareEntity entity, BlockPos target)
m_147745_(C_533_ p_147747_, C_4675_ arg1)
private void
b(bep arg0, beg arg1)
chooseRamPosition(PathfinderMob arg0, LivingEntity arg1)
method_36268(class_1314 arg0, class_1309 arg1)
m_egozrfmc(C_hqdayibh arg0, C_usxaxydn arg1)
findRam(PathAwareEntity entity, LivingEntity target)
findRam(PathAwareEntity entity, LivingEntity target)
m_147765_(C_533_ p_147767_, C_524_ arg1)