net.minecraft.world.entity.ai.goal

public class SpearUseGoal<T extends Monster>

extends Goal

cpv
net.minecraft.world.entity.ai.goal.SpearUseGoal
net.minecraft.class_12112
net.minecraft.entity.ai.goal.ChargeKineticWeaponGoal
net.minecraft.src.C_432506_
net.minecraft.world.entity.ai.goal.SpearUseGoal

字段概要

修饰符与类型字段
static final int
a
MIN_REPOSITION_DISTANCE
field_64637
field_64637
f_435994_
static final int
b
MAX_REPOSITION_DISTANCE
field_64638
field_64638
f_433143_
static final int
c
MIN_COOLDOWN_DISTANCE
field_64639
field_64639
f_435710_
static final int
d
MAX_COOLDOWN_DISTANCE
field_64640
field_64640
f_437236_
static final double
i
MAX_FLEEING_TIME
field_63311
CHARGING_TIME_TICKS
f_433551_
private final T
j
mob
field_63306
entity
f_434241_
private SpearUseGoal$SpearUseState
k
state
field_64643
data
f_436505_
double
e
speedModifierWhenCharging
field_63307
speed
f_433855_
double
f
speedModifierWhenRepositioning
field_63308
targetFollowingSpeed
f_436293_
float
g
approachDistanceSq
field_64641
maxSquaredDistanceToTarget
f_435902_
float
h
targetInRangeRadiusSq
field_64642
minSquaredDistanceToTarget
f_435523_

构造函数概要

修饰符构造函数
public (T entity, double speed, double targetFollowingSpeed, float maxDistanceToTarget, float minDistanceToTarget)

方法概要

修饰符与类型方法
public boolean
b()
canUse()
method_6264()
canStart()
m_8036_()
private boolean
h()
ableToAttack()
method_75142()
canAttack()
m_446153_()
private int
i()
getKineticWeaponUseDuration()
method_75143()
getUseGoalTicks()
m_446596_()
public boolean
c()
canContinueToUse()
method_6266()
shouldContinue()
m_8045_()
public void
d()
start()
method_6269()
start()
m_8056_()
public void
e()
stop()
method_6270()
stop()
m_8041_()
public void
a()
tick()
method_6268()
tick()
m_8037_()