类 MeleeAttackGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MeleeAttackGoal
-
- 直接已知子类:
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 azaintermediary net/minecraft/class_1366named net/minecraft/entity/ai/goal/MeleeAttackGoal
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.goal.Goal
Goal.Control
-
-
字段概要
字段 修饰符和类型 字段 说明 private intattackIntervalTicksprivate intcooldownprivate static longfield_30218private longlastUpdateTimeprotected PathAwareEntitymobprivate Pathpathprivate booleanpauseWhenMobIdleprivate doublespeedprivate doubletargetXprivate doubletargetYprivate doubletargetZprivate intupdateCountdownTicks
-
构造器概要
构造器 构造器 说明 MeleeAttackGoal(PathAwareEntity mob, double speed, boolean pauseWhenMobIdle)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidattack(LivingEntity target, double squaredDistance)booleancanStart()protected intgetCooldown()protected intgetMaxCooldown()protected doublegetSquaredMaxAttackDistance(LivingEntity entity)protected booleanisCooledDown()protected voidsetMaxCooldown()booleanshouldContinue()voidstart()voidstop()voidtick()-
从类继承的方法 net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
-
-
-
字段详细资料
-
field_30218
private static final long field_30218
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official lLaza;l:Jintermediary field_30218Lnet/minecraft/class_1366;field_30218:Jnamed field_30218Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;field_30218:J
-
mob
protected final PathAwareEntity mob
- Mappings:
Namespace Name Mixin selector official aLaza;a:Latg;intermediary field_6503Lnet/minecraft/class_1366;field_6503:Lnet/minecraft/class_1314;named mobLnet/minecraft/entity/ai/goal/MeleeAttackGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
speed
private final double speed
- Mappings:
Namespace Name Mixin selector official bLaza;b:Dintermediary field_6500Lnet/minecraft/class_1366;field_6500:Dnamed speedLnet/minecraft/entity/ai/goal/MeleeAttackGoal;speed:D
-
pauseWhenMobIdle
private final boolean pauseWhenMobIdle
- Mappings:
Namespace Name Mixin selector official cLaza;c:Zintermediary field_6502Lnet/minecraft/class_1366;field_6502:Znamed pauseWhenMobIdleLnet/minecraft/entity/ai/goal/MeleeAttackGoal;pauseWhenMobIdle:Z
-
path
private Path path
- Mappings:
Namespace Name Mixin selector official dLaza;d:Ldga;intermediary field_6509Lnet/minecraft/class_1366;field_6509:Lnet/minecraft/class_11;named pathLnet/minecraft/entity/ai/goal/MeleeAttackGoal;path:Lnet/minecraft/entity/ai/pathing/Path;
-
targetX
private double targetX
- Mappings:
Namespace Name Mixin selector official eLaza;e:Dintermediary field_6508Lnet/minecraft/class_1366;field_6508:Dnamed targetXLnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetX:D
-
targetY
private double targetY
- Mappings:
Namespace Name Mixin selector official fLaza;f:Dintermediary field_6507Lnet/minecraft/class_1366;field_6507:Dnamed targetYLnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetY:D
-
targetZ
private double targetZ
- Mappings:
Namespace Name Mixin selector official gLaza;g:Dintermediary field_6506Lnet/minecraft/class_1366;field_6506:Dnamed targetZLnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetZ:D
-
updateCountdownTicks
private int updateCountdownTicks
- Mappings:
Namespace Name Mixin selector official hLaza;h:Iintermediary field_6501Lnet/minecraft/class_1366;field_6501:Inamed updateCountdownTicksLnet/minecraft/entity/ai/goal/MeleeAttackGoal;updateCountdownTicks:I
-
cooldown
private int cooldown
- Mappings:
Namespace Name Mixin selector official iLaza;i:Iintermediary field_24667Lnet/minecraft/class_1366;field_24667:Inamed cooldownLnet/minecraft/entity/ai/goal/MeleeAttackGoal;cooldown:I
-
attackIntervalTicks
private final int attackIntervalTicks
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official jLaza;j:Iintermediary field_6504Lnet/minecraft/class_1366;field_6504:Inamed attackIntervalTicksLnet/minecraft/entity/ai/goal/MeleeAttackGoal;attackIntervalTicks:I
-
lastUpdateTime
private long lastUpdateTime
- Mappings:
Namespace Name Mixin selector official kLaza;k:Jintermediary field_19200Lnet/minecraft/class_1366;field_19200:Jnamed lastUpdateTimeLnet/minecraft/entity/ai/goal/MeleeAttackGoal;lastUpdateTime:J
-
-
构造器详细资料
-
MeleeAttackGoal
public MeleeAttackGoal(PathAwareEntity mob, double speed, boolean pauseWhenMobIdle)
- Mappings:
Namespace Name Mixin selector official <init>Laza;<init>(Latg;DZ)Vintermediary <init>Lnet/minecraft/class_1366;<init>(Lnet/minecraft/class_1314;DZ)Vnamed <init>Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DZ)V
-
-
方法详细资料
-
canStart
public boolean canStart()
-
shouldContinue
public boolean shouldContinue()
- 覆盖:
shouldContinue在类中Goal- Mappings:
Namespace Name Mixin selector official bLayq;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start()
-
stop
public void stop()
-
tick
public void tick()
-
attack
protected void attack(LivingEntity target, double squaredDistance)
- Mappings:
Namespace Name Mixin selector official aLaza;a(Lasy;D)Vintermediary method_6288Lnet/minecraft/class_1366;method_6288(Lnet/minecraft/class_1309;D)Vnamed attackLnet/minecraft/entity/ai/goal/MeleeAttackGoal;attack(Lnet/minecraft/entity/LivingEntity;D)V
-
setMaxCooldown
protected void setMaxCooldown()
- Mappings:
Namespace Name Mixin selector official gLaza;g()Vintermediary method_28346Lnet/minecraft/class_1366;method_28346()Vnamed setMaxCooldownLnet/minecraft/entity/ai/goal/MeleeAttackGoal;setMaxCooldown()V
-
isCooledDown
protected boolean isCooledDown()
- Mappings:
Namespace Name Mixin selector official hLaza;h()Zintermediary method_28347Lnet/minecraft/class_1366;method_28347()Znamed isCooledDownLnet/minecraft/entity/ai/goal/MeleeAttackGoal;isCooledDown()Z
-
getCooldown
protected int getCooldown()
- Mappings:
Namespace Name Mixin selector official jLaza;j()Iintermediary method_28348Lnet/minecraft/class_1366;method_28348()Inamed getCooldownLnet/minecraft/entity/ai/goal/MeleeAttackGoal;getCooldown()I
-
getMaxCooldown
protected int getMaxCooldown()
- Mappings:
Namespace Name Mixin selector official kLaza;k()Iintermediary method_28349Lnet/minecraft/class_1366;method_28349()Inamed getMaxCooldownLnet/minecraft/entity/ai/goal/MeleeAttackGoal;getMaxCooldown()I
-
getSquaredMaxAttackDistance
protected double getSquaredMaxAttackDistance(LivingEntity entity)
- Mappings:
Namespace Name Mixin selector official aLaza;a(Lasy;)Dintermediary method_6289Lnet/minecraft/class_1366;method_6289(Lnet/minecraft/class_1309;)Dnamed getSquaredMaxAttackDistanceLnet/minecraft/entity/ai/goal/MeleeAttackGoal;getSquaredMaxAttackDistance(Lnet/minecraft/entity/LivingEntity;)D
-
-