类 BowAttackGoal<T extends HostileEntity & RangedAttackMob>
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.BowAttackGoal<T>
-
public class BowAttackGoal<T extends HostileEntity & RangedAttackMob> extends Goal
- Mappings:
Namespace Name official azpintermediary net/minecraft/class_1380named net/minecraft/entity/ai/goal/BowAttackGoal
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.goal.Goal
Goal.Control
-
-
字段概要
字段 修饰符和类型 字段 说明 private Tactorprivate intattackIntervalprivate booleanbackwardprivate intcombatTicksprivate intcooldownprivate booleanmovingToLeftprivate doublespeedprivate floatsquaredRangeprivate inttargetSeeingTicker
-
构造器概要
构造器 构造器 说明 BowAttackGoal(T actor, double speed, int attackInterval, float range)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanStart()protected booleanisHoldingBow()voidsetAttackInterval(int attackInterval)booleanshouldContinue()voidstart()voidstop()voidtick()-
从类继承的方法 net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
-
-
-
字段详细资料
-
actor
private final T extends HostileEntity & RangedAttackMob actor
- Mappings:
Namespace Name Mixin selector official aLazp;a:Lbgz;intermediary field_6576Lnet/minecraft/class_1380;field_6576:Lnet/minecraft/class_1588;named actorLnet/minecraft/entity/ai/goal/BowAttackGoal;actor:Lnet/minecraft/entity/mob/HostileEntity;
-
speed
private final double speed
- Mappings:
Namespace Name Mixin selector official bLazp;b:Dintermediary field_6569Lnet/minecraft/class_1380;field_6569:Dnamed speedLnet/minecraft/entity/ai/goal/BowAttackGoal;speed:D
-
attackInterval
private int attackInterval
- Mappings:
Namespace Name Mixin selector official cLazp;c:Iintermediary field_6575Lnet/minecraft/class_1380;field_6575:Inamed attackIntervalLnet/minecraft/entity/ai/goal/BowAttackGoal;attackInterval:I
-
squaredRange
private final float squaredRange
- Mappings:
Namespace Name Mixin selector official dLazp;d:Fintermediary field_6570Lnet/minecraft/class_1380;field_6570:Fnamed squaredRangeLnet/minecraft/entity/ai/goal/BowAttackGoal;squaredRange:F
-
cooldown
private int cooldown
- Mappings:
Namespace Name Mixin selector official eLazp;e:Iintermediary field_6574Lnet/minecraft/class_1380;field_6574:Inamed cooldownLnet/minecraft/entity/ai/goal/BowAttackGoal;cooldown:I
-
targetSeeingTicker
private int targetSeeingTicker
- Mappings:
Namespace Name Mixin selector official fLazp;f:Iintermediary field_6572Lnet/minecraft/class_1380;field_6572:Inamed targetSeeingTickerLnet/minecraft/entity/ai/goal/BowAttackGoal;targetSeeingTicker:I
-
movingToLeft
private boolean movingToLeft
- Mappings:
Namespace Name Mixin selector official gLazp;g:Zintermediary field_6573Lnet/minecraft/class_1380;field_6573:Znamed movingToLeftLnet/minecraft/entity/ai/goal/BowAttackGoal;movingToLeft:Z
-
backward
private boolean backward
- Mappings:
Namespace Name Mixin selector official hLazp;h:Zintermediary field_6571Lnet/minecraft/class_1380;field_6571:Znamed backwardLnet/minecraft/entity/ai/goal/BowAttackGoal;backward:Z
-
combatTicks
private int combatTicks
- Mappings:
Namespace Name Mixin selector official iLazp;i:Iintermediary field_6568Lnet/minecraft/class_1380;field_6568:Inamed combatTicksLnet/minecraft/entity/ai/goal/BowAttackGoal;combatTicks:I
-
-
构造器详细资料
-
BowAttackGoal
public BowAttackGoal(T actor, double speed, int attackInterval, float range)
- Mappings:
Namespace Name Mixin selector official <init>Lazp;<init>(Lbgz;DIF)Vintermediary <init>Lnet/minecraft/class_1380;<init>(Lnet/minecraft/class_1588;DIF)Vnamed <init>Lnet/minecraft/entity/ai/goal/BowAttackGoal;<init>(Lnet/minecraft/entity/mob/HostileEntity;DIF)V
-
-
方法详细资料
-
setAttackInterval
public void setAttackInterval(int attackInterval)
- Mappings:
Namespace Name Mixin selector official aLazp;a(I)Vintermediary method_6305Lnet/minecraft/class_1380;method_6305(I)Vnamed setAttackIntervalLnet/minecraft/entity/ai/goal/BowAttackGoal;setAttackInterval(I)V
-
canStart
public boolean canStart()
-
isHoldingBow
protected boolean isHoldingBow()
- Mappings:
Namespace Name Mixin selector official gLazp;g()Zintermediary method_6306Lnet/minecraft/class_1380;method_6306()Znamed isHoldingBowLnet/minecraft/entity/ai/goal/BowAttackGoal;isHoldingBow()Z
-
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()
-
-