net.minecraft.world.entity.ai.goal

public class MeleeAttackGoal

extends Goal

cdo
net.minecraft.world.entity.ai.goal.MeleeAttackGoal
net.minecraft.class_1366
net.minecraft.entity.ai.goal.MeleeAttackGoal
net.minecraft.world.entity.ai.goal.PathfinderGoalMeleeAttack

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
b()
canUse()
method_6264()
canStart()
public boolean
c()
canContinueToUse()
method_6266()
shouldContinue()
public void
d()
start()
method_6269()
start()
public void
e()
stop()
method_6270()
stop()
public boolean
V_()
requiresUpdateEveryTick()
method_38846()
shouldRunEveryTick()
public void
a()
tick()
method_6268()
tick()
protected void
a(bwg arg0)
checkAndPerformAttack(LivingEntity arg0)
method_6288(class_1309 arg0)
attack(LivingEntity target)
protected void
h()
resetAttackCooldown()
method_28346()
resetCooldown()
protected boolean
i()
isTimeToAttack()
method_28347()
isCooledDown()
protected boolean
b(bwg arg0)
canPerformAttack(LivingEntity arg0)
method_53715(class_1309 arg0)
canAttack(LivingEntity target)
protected int
k()
getTicksUntilNextAttack()
method_28348()
getCooldown()
protected int
l()
getAttackInterval()
method_28349()
getMaxCooldown()