net.minecraft.world.entity.ai.behavior

public class PrepareRamNearestTarget<E extends PathfinderMob>

extends Behavior<E>

All mapped superinterfaces:

BehaviorControl

bzo
net.minecraft.world.entity.ai.behavior.PrepareRamNearestTarget
net.minecraft.class_6336
net.minecraft.entity.ai.brain.task.PrepareRamTask
net.minecraft.world.entity.ai.behavior.PrepareRamNearestTarget

Field summary

Modifier and TypeField
public static final int
c
TIME_OUT_DURATION
field_33461
RUN_TIME
private final ToIntFunction<E>
d
getCooldownOnFail
field_33462
cooldownFactory
private final int
e
minRamDistance
field_33463
minRamDistance
private final int
f
maxRamDistance
field_33464
maxRamDistance
private final float
g
walkSpeed
field_33465
speed
private final TargetingConditions
h
ramTargeting
field_33466
targetPredicate
private final int
i
ramPrepareTime
field_33467
prepareTime
private final Function<E, SoundEvent>
j
getPrepareRamSound
field_33468
soundFactory
private Optional<Long>
k
reachedRamPositionTimestamp
field_33469
prepareStartTime
private Optional<PrepareRamNearestTarget$RamCandidate>
l
ramCandidate
field_33470
ram

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(ash arg0, bwo 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)
protected void
b(ash 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)
protected boolean
c(ash arg0, bwo 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)
protected void
d(ash 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)
private Vec3
a(jh arg0, jh arg1)
getEdgeOfBlock(BlockPos arg0, BlockPos arg1)
method_36266(class_2338 arg0, class_2338 arg1)
calculateRamTarget(BlockPos start, BlockPos end)
private Optional<BlockPos>
a(bwo arg0, bwg arg1)
calculateRammingStartPosition(PathfinderMob arg0, LivingEntity arg1)
method_36262(class_1314 arg0, class_1309 arg1)
findRamStart(PathAwareEntity entity, LivingEntity target)
private boolean
a(bwo arg0, jh arg1)
isWalkableBlock(PathfinderMob arg0, BlockPos arg1)
method_36263(class_1314 arg0, class_2338 arg1)
canReach(PathAwareEntity entity, BlockPos target)
private void
b(bwo arg0, bwg arg1)
chooseRamPosition(PathfinderMob arg0, LivingEntity arg1)
method_36268(class_1314 arg0, class_1309 arg1)
findRam(PathAwareEntity entity, LivingEntity target)