net.minecraft.entity.ai.goal

public class MeleeAttackGoal

extends Goal

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

Field summary

Modifier and TypeField
protected final PathAwareEntity
mob
field_6503
mob
private final double
speedModifier
field_6500
speed
private final boolean
followingTargetEvenIfNotSeen
field_6502
pauseWhenMobIdle
private Path
path
field_6509
path
private double
pathedTargetX
field_6508
targetX
private double
pathedTargetY
field_6507
targetY
private double
pathedTargetZ
field_6506
targetZ
private int
ticksUntilNextPathRecalculation
field_6501
updateCountdownTicks
private int
ticksUntilNextAttack
field_24667
cooldown
private final int
attackInterval
field_6504
attackIntervalTicks
private long
lastCanUseCheck
field_19200
lastUpdateTime
private static final long
COOLDOWN_BETWEEN_CAN_USE_CHECKS
field_30218
MAX_ATTACK_TIME

Constructor summary

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

Method summary

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