Package net.minecraft.entity.ai.goal
Class BowAttackGoal<T extends HostileEntity & RangedAttackMob>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.BowAttackGoal<T>
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/BowAttackGoalintermediary net/minecraft/class_1380official cbm
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Tprivate intprivate booleanprivate intprivate intprivate booleanprivate final doubleprivate final floatprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStart()protected booleanvoidsetAttackInterval(int attackInterval) booleanbooleanReturns if the goal should run every tick or not.voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, toGoalTicks, toString
-
Field Details
-
actor
- Mappings:
Namespace Name Mixin selector named actorLnet/minecraft/entity/ai/goal/BowAttackGoal;actor:Lnet/minecraft/entity/mob/HostileEntity;intermediary field_6576Lnet/minecraft/class_1380;field_6576:Lnet/minecraft/class_1588;official aLcbm;a:Lckd;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector named speedLnet/minecraft/entity/ai/goal/BowAttackGoal;speed:Dintermediary field_6569Lnet/minecraft/class_1380;field_6569:Dofficial bLcbm;b:D
-
attackInterval
private int attackInterval- Mappings:
Namespace Name Mixin selector named attackIntervalLnet/minecraft/entity/ai/goal/BowAttackGoal;attackInterval:Iintermediary field_6575Lnet/minecraft/class_1380;field_6575:Iofficial cLcbm;c:I
-
squaredRange
private final float squaredRange- Mappings:
Namespace Name Mixin selector named squaredRangeLnet/minecraft/entity/ai/goal/BowAttackGoal;squaredRange:Fintermediary field_6570Lnet/minecraft/class_1380;field_6570:Fofficial dLcbm;d:F
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector named cooldownLnet/minecraft/entity/ai/goal/BowAttackGoal;cooldown:Iintermediary field_6574Lnet/minecraft/class_1380;field_6574:Iofficial eLcbm;e:I
-
targetSeeingTicker
private int targetSeeingTicker- Mappings:
Namespace Name Mixin selector named targetSeeingTickerLnet/minecraft/entity/ai/goal/BowAttackGoal;targetSeeingTicker:Iintermediary field_6572Lnet/minecraft/class_1380;field_6572:Iofficial fLcbm;f:I
-
movingToLeft
private boolean movingToLeft- Mappings:
Namespace Name Mixin selector named movingToLeftLnet/minecraft/entity/ai/goal/BowAttackGoal;movingToLeft:Zintermediary field_6573Lnet/minecraft/class_1380;field_6573:Zofficial gLcbm;g:Z
-
backward
private boolean backward- Mappings:
Namespace Name Mixin selector named backwardLnet/minecraft/entity/ai/goal/BowAttackGoal;backward:Zintermediary field_6571Lnet/minecraft/class_1380;field_6571:Zofficial hLcbm;h:Z
-
combatTicks
private int combatTicks- Mappings:
Namespace Name Mixin selector named combatTicksLnet/minecraft/entity/ai/goal/BowAttackGoal;combatTicks:Iintermediary field_6568Lnet/minecraft/class_1380;field_6568:Iofficial iLcbm;i:I
-
-
Constructor Details
-
BowAttackGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/BowAttackGoal;<init>(Lnet/minecraft/entity/mob/HostileEntity;DIF)Vintermediary <init>Lnet/minecraft/class_1380;<init>(Lnet/minecraft/class_1588;DIF)Vofficial <init>Lcbm;<init>(Lckd;DIF)V
-
-
Method Details
-
setAttackInterval
public void setAttackInterval(int attackInterval) - Mappings:
Namespace Name Mixin selector named setAttackIntervalLnet/minecraft/entity/ai/goal/BowAttackGoal;setAttackInterval(I)Vintermediary method_6305Lnet/minecraft/class_1380;method_6305(I)Vofficial cLcbm;c(I)V
-
canStart
public boolean canStart() -
isHoldingBow
protected boolean isHoldingBow()- Mappings:
Namespace Name Mixin selector named isHoldingBowLnet/minecraft/entity/ai/goal/BowAttackGoal;isHoldingBow()Zintermediary method_6306Lnet/minecraft/class_1380;method_6306()Zofficial hLcbm;h()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector named shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial cLcam;c()Z
-
start
public void start() -
stop
public void stop() -
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTickin classGoal- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Zofficial V_Lcam;V_()Z
-
tick
public void tick()
-