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/BowAttackGoal
intermediary net/minecraft/class_1380
official cbo
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprivate final T
private int
private boolean
private int
private int
private boolean
private final double
private final float
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
protected boolean
void
setAttackInterval
(int attackInterval) boolean
boolean
Returns if the goal should run every tick or not.void
start()
void
stop()
void
tick()
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 actor
Lnet/minecraft/entity/ai/goal/BowAttackGoal;actor:Lnet/minecraft/entity/mob/HostileEntity;
intermediary field_6576
Lnet/minecraft/class_1380;field_6576:Lnet/minecraft/class_1588;
official a
Lcbo;a:Lcke;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/goal/BowAttackGoal;speed:D
intermediary field_6569
Lnet/minecraft/class_1380;field_6569:D
official b
Lcbo;b:D
-
attackInterval
private int attackInterval- Mappings:
Namespace Name Mixin selector named attackInterval
Lnet/minecraft/entity/ai/goal/BowAttackGoal;attackInterval:I
intermediary field_6575
Lnet/minecraft/class_1380;field_6575:I
official c
Lcbo;c:I
-
squaredRange
private final float squaredRange- Mappings:
Namespace Name Mixin selector named squaredRange
Lnet/minecraft/entity/ai/goal/BowAttackGoal;squaredRange:F
intermediary field_6570
Lnet/minecraft/class_1380;field_6570:F
official d
Lcbo;d:F
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector named cooldown
Lnet/minecraft/entity/ai/goal/BowAttackGoal;cooldown:I
intermediary field_6574
Lnet/minecraft/class_1380;field_6574:I
official e
Lcbo;e:I
-
targetSeeingTicker
private int targetSeeingTicker- Mappings:
Namespace Name Mixin selector named targetSeeingTicker
Lnet/minecraft/entity/ai/goal/BowAttackGoal;targetSeeingTicker:I
intermediary field_6572
Lnet/minecraft/class_1380;field_6572:I
official f
Lcbo;f:I
-
movingToLeft
private boolean movingToLeft- Mappings:
Namespace Name Mixin selector named movingToLeft
Lnet/minecraft/entity/ai/goal/BowAttackGoal;movingToLeft:Z
intermediary field_6573
Lnet/minecraft/class_1380;field_6573:Z
official g
Lcbo;g:Z
-
backward
private boolean backward- Mappings:
Namespace Name Mixin selector named backward
Lnet/minecraft/entity/ai/goal/BowAttackGoal;backward:Z
intermediary field_6571
Lnet/minecraft/class_1380;field_6571:Z
official h
Lcbo;h:Z
-
combatTicks
private int combatTicks- Mappings:
Namespace Name Mixin selector named combatTicks
Lnet/minecraft/entity/ai/goal/BowAttackGoal;combatTicks:I
intermediary field_6568
Lnet/minecraft/class_1380;field_6568:I
official i
Lcbo;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)V
intermediary <init>
Lnet/minecraft/class_1380;<init>(Lnet/minecraft/class_1588;DIF)V
official <init>
Lcbo;<init>(Lcke;DIF)V
-
-
Method Details
-
setAttackInterval
public void setAttackInterval(int attackInterval) - Mappings:
Namespace Name Mixin selector named setAttackInterval
Lnet/minecraft/entity/ai/goal/BowAttackGoal;setAttackInterval(I)V
intermediary method_6305
Lnet/minecraft/class_1380;method_6305(I)V
official c
Lcbo;c(I)V
-
canStart
public boolean canStart() -
isHoldingBow
protected boolean isHoldingBow()- Mappings:
Namespace Name Mixin selector named isHoldingBow
Lnet/minecraft/entity/ai/goal/BowAttackGoal;isHoldingBow()Z
intermediary method_6306
Lnet/minecraft/class_1380;method_6306()Z
official h
Lcbo;h()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
official b
Lcao;b()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
false
by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTick
in classGoal
- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRunEveryTick
Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
intermediary method_38846
Lnet/minecraft/class_1352;method_38846()Z
official R_
Lcao;R_()Z
-
tick
public void tick()
-