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 official bnrintermediary net/minecraft/class_1380named net/minecraft/entity/ai/goal/BowAttackGoal
-
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 official aLbnr;a:Lbvy;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 bLbnr;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 cLbnr;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 dLbnr;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 eLbnr;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 fLbnr;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 gLbnr;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 hLbnr;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 iLbnr;i:Iintermediary field_6568Lnet/minecraft/class_1380;field_6568:Inamed combatTicksLnet/minecraft/entity/ai/goal/BowAttackGoal;combatTicks:I
-
-
Constructor Details
-
BowAttackGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbnr;<init>(Lbvy;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
-
-
Method Details
-
setAttackInterval
public void setAttackInterval(int attackInterval) - Mappings:
Namespace Name Mixin selector official cLbnr;c(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 hLbnr;h()Zintermediary method_6306Lnet/minecraft/class_1380;method_6306()Znamed isHoldingBowLnet/minecraft/entity/ai/goal/BowAttackGoal;isHoldingBow()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector official bLbmr;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() -
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 official J_Lbmr;J_()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick()
-