net.minecraft.entity.ai.brain.task

public class DashAttackTask

extends MultiTickTask<AnimalEntity>

All mapped superinterfaces:

Task

net.minecraft.world.entity.ai.behavior.ChargeAttack
net.minecraft.world.entity.ai.behavior.ChargeAttack
net.minecraft.class_12111
net.minecraft.entity.ai.brain.task.DashAttackTask

Field summary

Modifier and TypeField
private final int
timeBetweenAttacks
timeBetweenAttacks
field_63298
cooldownTicks
private final TargetPredicate
chargeTargeting
chargeTargeting
field_63299
predicate
private final float
speed
speed
field_63300
speed
private final float
knockbackForce
knockbackForce
field_63301
knockbackStrength
private final double
maxTargetDetectionDistance
maxTargetDetectionDistance
field_63302
maxDistance
private final double
maxChargeDistance
maxChargeDistance
field_63303
maxEntitySpeed
private final SoundEvent
chargeSound
chargeSound
field_64480
sound
private Vec3d
chargeVelocityVector
chargeVelocityVector
field_63304
velocity
private Vec3d
startPosition
startPosition
field_63305
lastPos

Constructor summary

ModifierConstructor
public (int cooldownTicks, TargetPredicate predicate, float speed, float knockbackStrength, double maxEntitySpeed, double maxDistance, SoundEvent sound)

Method summary

Modifier and TypeMethod
protected boolean
checkExtraStartConditions(ServerLevel level, Animal body)
checkExtraStartConditions(ServerLevel level, Animal body)
method_75134(class_3218 arg0, class_1429 arg1)
shouldRun(ServerWorld arg0, AnimalEntity arg1)
protected boolean
canStillUse(ServerLevel level, Animal body, long timestamp)
canStillUse(ServerLevel level, Animal body, long timestamp)
method_75135(class_3218 arg0, class_1429 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, AnimalEntity arg1, long arg2)
protected void
start(ServerLevel level, Animal body, long timestamp)
start(ServerLevel level, Animal body, long timestamp)
method_75138(class_3218 arg0, class_1429 arg1, long arg2)
run(ServerWorld arg0, AnimalEntity arg1, long arg2)
protected void
tick(ServerLevel level, Animal body, long timestamp)
tick(ServerLevel level, Animal body, long timestamp)
method_75140(class_3218 arg0, class_1429 arg1, long arg2)
keepRunning(ServerWorld arg0, AnimalEntity arg1, long arg2)
private void
dealDamageToTarget(ServerLevel level, Animal body, LivingEntity target)
dealDamageToTarget(ServerLevel level, Animal body, LivingEntity target)
method_75136(class_3218 arg0, class_1429 arg1, class_1309 arg2)
attack(ServerWorld world, AnimalEntity entity, LivingEntity target)
private void
dealKnockBack(ServerLevel level, Animal body, LivingEntity target)
dealKnockBack(ServerLevel level, Animal body, LivingEntity target)
method_75137(class_3218 arg0, class_1429 arg1, class_1309 arg2)
knockbackTarget(ServerWorld world, AnimalEntity entity, LivingEntity target)
protected void
stop(ServerLevel level, Animal body, long timestamp)
stop(ServerLevel level, Animal body, long timestamp)
method_75141(class_3218 arg0, class_1429 arg1, long arg2)
finishRunning(ServerWorld arg0, AnimalEntity arg1, long arg2)