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 cii
-
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, castToServerWorld, getControls, getServerWorld, 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 aLcii;a:Lcrv;
-
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 bLcii;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 cLcii;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 dLcii;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 eLcii;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 fLcii;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 gLcii;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 hLcii;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 iLcii;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>Lcii;<init>(Lcrv;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 cLcii;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 hLcii;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 cLchi;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 X_Lchi;X_()Z
-
tick
public void tick()
-