Package net.minecraft.entity.ai.goal
Class ProjectileAttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.ProjectileAttackGoal
- Direct Known Subclasses:
DrownedEntity.TridentAttackGoal
- Mappings:
Namespace Name official biq
intermediary net/minecraft/class_1381
named net/minecraft/entity/ai/goal/ProjectileAttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
private final int
private final MobEntity
private final double
private final RangedAttackMob
private int
private final float
private @Nullable LivingEntity
private int
-
Constructor Summary
ConstructorDescriptionProjectileAttackGoal
(RangedAttackMob mob, double mobSpeed, int intervalTicks, float maxShootRange) ProjectileAttackGoal
(RangedAttackMob mob, double mobSpeed, int minIntervalTicks, int maxIntervalTicks, float maxShootRange) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, start, toGoalTicks, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Lbiq;a:Lbbh;
intermediary field_6583
Lnet/minecraft/class_1381;field_6583:Lnet/minecraft/class_1308;
named mob
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
owner
- Mappings:
Namespace Name Mixin selector official b
Lbiq;b:Lbqx;
intermediary field_6582
Lnet/minecraft/class_1381;field_6582:Lnet/minecraft/class_1603;
named owner
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;owner:Lnet/minecraft/entity/ai/RangedAttackMob;
-
target
- Mappings:
Namespace Name Mixin selector official c
Lbiq;c:Lbbf;
intermediary field_6580
Lnet/minecraft/class_1381;field_6580:Lnet/minecraft/class_1309;
named target
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;target:Lnet/minecraft/entity/LivingEntity;
-
updateCountdownTicks
private int updateCountdownTicks- Mappings:
Namespace Name Mixin selector official d
Lbiq;d:I
intermediary field_6581
Lnet/minecraft/class_1381;field_6581:I
named updateCountdownTicks
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;updateCountdownTicks:I
-
mobSpeed
private final double mobSpeed- Mappings:
Namespace Name Mixin selector official e
Lbiq;e:D
intermediary field_6586
Lnet/minecraft/class_1381;field_6586:D
named mobSpeed
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;mobSpeed:D
-
seenTargetTicks
private int seenTargetTicks- Mappings:
Namespace Name Mixin selector official f
Lbiq;f:I
intermediary field_6579
Lnet/minecraft/class_1381;field_6579:I
named seenTargetTicks
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;seenTargetTicks:I
-
minIntervalTicks
private final int minIntervalTicks- Mappings:
Namespace Name Mixin selector official g
Lbiq;g:I
intermediary field_6578
Lnet/minecraft/class_1381;field_6578:I
named minIntervalTicks
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;minIntervalTicks:I
-
maxIntervalTicks
private final int maxIntervalTicks- Mappings:
Namespace Name Mixin selector official h
Lbiq;h:I
intermediary field_6577
Lnet/minecraft/class_1381;field_6577:I
named maxIntervalTicks
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;maxIntervalTicks:I
-
maxShootRange
private final float maxShootRange- Mappings:
Namespace Name Mixin selector official i
Lbiq;i:F
intermediary field_6585
Lnet/minecraft/class_1381;field_6585:F
named maxShootRange
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;maxShootRange:F
-
squaredMaxShootRange
private final float squaredMaxShootRange- Mappings:
Namespace Name Mixin selector official j
Lbiq;j:F
intermediary field_6584
Lnet/minecraft/class_1381;field_6584:F
named squaredMaxShootRange
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;squaredMaxShootRange:F
-
-
Constructor Details
-
ProjectileAttackGoal
public ProjectileAttackGoal(RangedAttackMob mob, double mobSpeed, int intervalTicks, float maxShootRange) - Mappings:
Namespace Name Mixin selector official <init>
Lbiq;<init>(Lbqx;DIF)V
intermediary <init>
Lnet/minecraft/class_1381;<init>(Lnet/minecraft/class_1603;DIF)V
named <init>
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;<init>(Lnet/minecraft/entity/ai/RangedAttackMob;DIF)V
-
ProjectileAttackGoal
public ProjectileAttackGoal(RangedAttackMob mob, double mobSpeed, int minIntervalTicks, int maxIntervalTicks, float maxShootRange) - Mappings:
Namespace Name Mixin selector official <init>
Lbiq;<init>(Lbqx;DIIF)V
intermediary <init>
Lnet/minecraft/class_1381;<init>(Lnet/minecraft/class_1603;DIIF)V
named <init>
Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;<init>(Lnet/minecraft/entity/ai/RangedAttackMob;DIIF)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lbhs;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
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 official E_
Lbhs;E_()Z
intermediary method_38846
Lnet/minecraft/class_1352;method_38846()Z
named shouldRunEveryTick
Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick()
-