net.minecraft.world.entity.ai.goal

public class MeleeAttackGoal

extends Goal

biz
net.minecraft.world.entity.ai.goal.MeleeAttackGoal
net.minecraft.class_1366
net.minecraft.entity.ai.goal.MeleeAttackGoal
net.minecraft.src.C_703_
net.minecraft.world.entity.ai.goal.PathfinderGoalMeleeAttack

Field summary

Modifier and TypeField
protected final PathfinderMob
a
mob
field_6503
mob
f_25540_
private final double
b
speedModifier
field_6500
speed
f_25541_
private final boolean
c
followingTargetEvenIfNotSeen
field_6502
pauseWhenMobIdle
f_25542_
private Path
d
path
field_6509
path
f_25543_
private double
e
pathedTargetX
field_6508
targetX
f_25544_
private double
f
pathedTargetY
field_6507
targetY
f_25545_
private double
g
pathedTargetZ
field_6506
targetZ
f_25546_
private int
h
ticksUntilNextPathRecalculation
field_6501
updateCountdownTicks
f_25547_
private int
i
ticksUntilNextAttack
field_24667
cooldown
f_25548_
private final int
j
attackInterval
field_6504
attackIntervalTicks
f_25549_
private long
k
lastCanUseCheck
field_19200
lastUpdateTime
f_25550_
private static final long
l
COOLDOWN_BETWEEN_CAN_USE_CHECKS
field_30218
MAX_ATTACK_TIME
f_148125_

Constructor summary

ModifierConstructor
public (PathfinderMob mob, double speed, boolean pauseWhenMobIdle)

Method summary

Modifier and TypeMethod
public boolean
a()
canUse()
method_6264()
canStart()
m_8036_()
public boolean
b()
canContinueToUse()
method_6266()
shouldContinue()
m_8045_()
public void
c()
start()
method_6269()
start()
m_8056_()
public void
d()
stop()
method_6270()
stop()
m_8041_()
public boolean
E_()
requiresUpdateEveryTick()
method_38846()
shouldRunEveryTick()
m_183429_()
public void
e()
tick()
method_6268()
tick()
m_8037_()
protected void
a(bcc arg0, double arg1)
checkAndPerformAttack(LivingEntity arg0, double arg1)
method_6288(class_1309 arg0, double arg1)
attack(LivingEntity target, double squaredDistance)
m_6739_(C_524_ p_25558_, double arg1)
protected void
h()
resetAttackCooldown()
method_28346()
resetCooldown()
m_25563_()
protected boolean
i()
isTimeToAttack()
method_28347()
isCooledDown()
m_25564_()
protected int
k()
getTicksUntilNextAttack()
method_28348()
getCooldown()
m_25565_()
protected int
l()
getAttackInterval()
method_28349()
getMaxCooldown()
m_25566_()
protected double
a(bcc arg0)
getAttackReachSqr(LivingEntity arg0)
method_6289(class_1309 arg0)
getSquaredMaxAttackDistance(LivingEntity entity)
m_6639_(C_524_ arg0)