Package net.minecraft.entity.ai.goal
Class MeleeAttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MeleeAttackGoal
- Direct Known Subclasses:
BeeEntity.StingGoal
,FoxEntity.AttackGoal
,PandaEntity.AttackGoal
,PolarBearEntity.AttackGoal
,RabbitEntity.RabbitAttackGoal
,RavagerEntity.AttackGoal
,SpiderEntity.AttackGoal
,VindicatorEntity.AttackGoal
,ZombieAttackGoal
public class MeleeAttackGoal extends Goal
- Mappings:
Namespace Name official axh
intermediary net/minecraft/class_1366
named net/minecraft/entity/ai/goal/MeleeAttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private int
attackIntervalTicks
private int
field_24667
private long
lastUpdateTime
protected PathAwareEntity
mob
private Path
path
private boolean
pauseWhenMobIdle
private double
speed
private double
targetX
private double
targetY
private double
targetZ
private int
updateCountdownTicks
-
Constructor Summary
Constructors Constructor Description MeleeAttackGoal(PathAwareEntity mob, double speed, boolean pauseWhenMobIdle)
-
Method Summary
Modifier and Type Method Description protected void
attack(LivingEntity target, double squaredDistance)
boolean
canStart()
protected double
getSquaredMaxAttackDistance(LivingEntity entity)
protected void
method_28346()
protected boolean
method_28347()
protected int
method_28348()
protected int
method_28349()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Laxh;a:Larq;
intermediary field_6503
Lnet/minecraft/class_1366;field_6503:Lnet/minecraft/class_1314;
named mob
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector official b
Laxh;b:D
intermediary field_6500
Lnet/minecraft/class_1366;field_6500:D
named speed
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;speed:D
-
pauseWhenMobIdle
private final boolean pauseWhenMobIdle- Mappings:
Namespace Name Mixin selector official c
Laxh;c:Z
intermediary field_6502
Lnet/minecraft/class_1366;field_6502:Z
named pauseWhenMobIdle
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;pauseWhenMobIdle:Z
-
path
- Mappings:
Namespace Name Mixin selector official d
Laxh;d:Ldct;
intermediary field_6509
Lnet/minecraft/class_1366;field_6509:Lnet/minecraft/class_11;
named path
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;path:Lnet/minecraft/entity/ai/pathing/Path;
-
targetX
private double targetX- Mappings:
Namespace Name Mixin selector official e
Laxh;e:D
intermediary field_6508
Lnet/minecraft/class_1366;field_6508:D
named targetX
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetX:D
-
targetY
private double targetY- Mappings:
Namespace Name Mixin selector official f
Laxh;f:D
intermediary field_6507
Lnet/minecraft/class_1366;field_6507:D
named targetY
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetY:D
-
targetZ
private double targetZ- Mappings:
Namespace Name Mixin selector official g
Laxh;g:D
intermediary field_6506
Lnet/minecraft/class_1366;field_6506:D
named targetZ
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetZ:D
-
updateCountdownTicks
private int updateCountdownTicks- Mappings:
Namespace Name Mixin selector official h
Laxh;h:I
intermediary field_6501
Lnet/minecraft/class_1366;field_6501:I
named updateCountdownTicks
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;updateCountdownTicks:I
-
field_24667
private int field_24667- Mappings:
Namespace Name Mixin selector official i
Laxh;i:I
intermediary field_24667
Lnet/minecraft/class_1366;field_24667:I
named field_24667
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;field_24667:I
-
attackIntervalTicks
private final int attackIntervalTicks- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official j
Laxh;j:I
intermediary field_6504
Lnet/minecraft/class_1366;field_6504:I
named attackIntervalTicks
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;attackIntervalTicks:I
-
lastUpdateTime
private long lastUpdateTime- Mappings:
Namespace Name Mixin selector official k
Laxh;k:J
intermediary field_19200
Lnet/minecraft/class_1366;field_19200:J
named lastUpdateTime
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;lastUpdateTime:J
-
-
Constructor Details
-
MeleeAttackGoal
- Mappings:
Namespace Name Mixin selector official <init>
Laxh;<init>(Larq;DZ)V
intermediary <init>
Lnet/minecraft/class_1366;<init>(Lnet/minecraft/class_1314;DZ)V
named <init>
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DZ)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
attack
- Mappings:
Namespace Name Mixin selector official a
Laxh;a(Lari;D)V
intermediary method_6288
Lnet/minecraft/class_1366;method_6288(Lnet/minecraft/class_1309;D)V
named attack
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;attack(Lnet/minecraft/entity/LivingEntity;D)V
-
method_28346
protected void method_28346()- Mappings:
Namespace Name Mixin selector official g
Laxh;g()V
intermediary method_28346
Lnet/minecraft/class_1366;method_28346()V
named method_28346
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;method_28346()V
-
method_28347
protected boolean method_28347()- Mappings:
Namespace Name Mixin selector official h
Laxh;h()Z
intermediary method_28347
Lnet/minecraft/class_1366;method_28347()Z
named method_28347
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;method_28347()Z
-
method_28348
protected int method_28348()- Mappings:
Namespace Name Mixin selector official j
Laxh;j()I
intermediary method_28348
Lnet/minecraft/class_1366;method_28348()I
named method_28348
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;method_28348()I
-
method_28349
protected int method_28349()- Mappings:
Namespace Name Mixin selector official k
Laxh;k()I
intermediary method_28349
Lnet/minecraft/class_1366;method_28349()I
named method_28349
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;method_28349()I
-
getSquaredMaxAttackDistance
- Mappings:
Namespace Name Mixin selector official a
Laxh;a(Lari;)D
intermediary method_6289
Lnet/minecraft/class_1366;method_6289(Lnet/minecraft/class_1309;)D
named getSquaredMaxAttackDistance
Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;getSquaredMaxAttackDistance(Lnet/minecraft/entity/LivingEntity;)D
-