net.minecraft.world.entity.ai.behavior

public class PrepareRamNearestTarget<E extends PathfinderMob>

extends Behavior<E>

awr
net.minecraft.world.entity.ai.behavior.PrepareRamNearestTarget
net.minecraft.class_6336
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
a
TIME_OUT_DURATION
field_33461
RUN_TIME
f_147713_
private final ToIntFunction<E>
c
getCooldownOnFail
field_33462
cooldownFactory
f_147714_
private final int
d
minRamDistance
field_33463
minRamDistance
f_147715_
private final int
e
maxRamDistance
field_33464
maxRamDistance
f_147716_
private final float
f
walkSpeed
field_33465
speed
f_147717_
private final TargetingConditions
g
ramTargeting
field_33466
targetPredicate
f_147718_
private final int
h
ramPrepareTime
field_33467
prepareTime
f_147719_
private final Function<E, SoundEvent>
i
getPrepareRamSound
field_33468
soundFactory
f_147720_
private Optional<Long>
j
reachedRamPositionTimestamp
field_33469
prepareStartTime
f_147721_
private Optional<PrepareRamNearestTarget$RamCandidate>
k
ramCandidate
field_33470
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(abr arg0, auc arg1, long arg2)
start(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_36260(class_3218 arg0, class_1314 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(abr arg0, E arg1, long arg2)
stop(ServerLevel arg0, E arg1, long arg2)
method_36267(class_3218 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(abr arg0, auc arg1, long arg2)
canStillUse(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_36269(class_3218 arg0, class_1314 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(abr arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_36271(class_3218 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(gg arg0, gg arg1)
getEdgeOfBlock(BlockPos arg0, BlockPos arg1)
method_36266(class_2338 arg0, class_2338 arg1)
calculateRamTarget(BlockPos start, BlockPos end)
m_147754_(C_4675_ p_147756_, C_4675_ arg1)
private Optional<BlockPos>
a(auc arg0, att arg1)
calculateRammingStartPosition(PathfinderMob arg0, LivingEntity arg1)
method_36262(class_1314 arg0, class_1309 arg1)
findRamStart(PathAwareEntity entity, LivingEntity target)
m_147742_(C_533_ p_147744_, C_524_ arg1)
private boolean
a(auc arg0, gg arg1)
isWalkableBlock(PathfinderMob arg0, BlockPos arg1)
method_36263(class_1314 arg0, class_2338 arg1)
canReach(PathAwareEntity entity, BlockPos target)
m_147745_(C_533_ p_147747_, C_4675_ arg1)
private void
b(auc arg0, att arg1)
chooseRamPosition(PathfinderMob arg0, LivingEntity arg1)
method_36268(class_1314 arg0, class_1309 arg1)
findRam(PathAwareEntity entity, LivingEntity target)
m_147765_(C_533_ p_147767_, C_524_ arg1)