net.minecraft.entity.ai.goal

public class ChargeKineticWeaponGoal<T extends HostileEntity>

extends Goal

net.minecraft.world.entity.ai.goal.SpearUseGoal
net.minecraft.class_12112
net.minecraft.entity.ai.goal.ChargeKineticWeaponGoal

Field summary

Modifier and TypeField
static final int
MIN_REPOSITION_DISTANCE
field_64637
field_64637
static final int
MAX_REPOSITION_DISTANCE
field_64638
field_64638
static final int
MIN_COOLDOWN_DISTANCE
field_64639
field_64639
static final int
MAX_COOLDOWN_DISTANCE
field_64640
field_64640
private static final double
MAX_FLEEING_TIME
field_63311
CHARGING_TIME_TICKS
private final T
mob
field_63306
entity
private ChargeKineticWeaponGoal$Data
state
field_64643
data
private final double
speedModifierWhenCharging
field_63307
speed
private final double
speedModifierWhenRepositioning
field_63308
targetFollowingSpeed
private final float
approachDistanceSq
field_64641
maxSquaredDistanceToTarget
private final float
targetInRangeRadiusSq
field_64642
minSquaredDistanceToTarget

Constructor summary

ModifierConstructor
public (T entity, double speed, double targetFollowingSpeed, float maxDistanceToTarget, float minDistanceToTarget)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
private boolean
ableToAttack()
method_75142()
canAttack()
private int
getKineticWeaponUseDuration()
method_75143()
getUseGoalTicks()
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()
public void
tick()
method_6268()
tick()