Package net.minecraft.entity.ai.goal
Class CrossbowAttackGoal<T extends HostileEntity & RangedAttackMob & CrossbowUser>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.CrossbowAttackGoal<T>
public class CrossbowAttackGoal<T extends HostileEntity & RangedAttackMob & CrossbowUser>
extends Goal
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/CrossbowAttackGoal
intermediary net/minecraft/class_1383
official cee
-
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 int
static final UniformIntProvider
private int
private final double
private final float
private CrossbowAttackGoal.Stage
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, start, toGoalTicks, toString
-
Field Details
-
COOLDOWN_RANGE
- Mappings:
Namespace Name Mixin selector named COOLDOWN_RANGE
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;COOLDOWN_RANGE:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
intermediary field_25696
Lnet/minecraft/class_1383;field_25696:Lnet/minecraft/class_6019;
official a
Lcee;a:Lbst;
-
actor
- Mappings:
Namespace Name Mixin selector named actor
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;actor:Lnet/minecraft/entity/mob/HostileEntity;
intermediary field_6593
Lnet/minecraft/class_1383;field_6593:Lnet/minecraft/class_1588;
official b
Lcee;b:Lcmw;
-
stage
- Mappings:
Namespace Name Mixin selector named stage
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;stage:Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal$Stage;
intermediary field_16528
Lnet/minecraft/class_1383;field_16528:Lnet/minecraft/class_1383$class_3744;
official c
Lcee;c:Lcee$a;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;speed:D
intermediary field_6590
Lnet/minecraft/class_1383;field_6590:D
official d
Lcee;d:D
-
squaredRange
private final float squaredRange- Mappings:
Namespace Name Mixin selector named squaredRange
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;squaredRange:F
intermediary field_6591
Lnet/minecraft/class_1383;field_6591:F
official e
Lcee;e:F
-
seeingTargetTicker
private int seeingTargetTicker- Mappings:
Namespace Name Mixin selector named seeingTargetTicker
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;seeingTargetTicker:I
intermediary field_6592
Lnet/minecraft/class_1383;field_6592:I
official f
Lcee;f:I
-
chargedTicksLeft
private int chargedTicksLeft- Mappings:
Namespace Name Mixin selector named chargedTicksLeft
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;chargedTicksLeft:I
intermediary field_16529
Lnet/minecraft/class_1383;field_16529:I
official g
Lcee;g:I
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector named cooldown
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;cooldown:I
intermediary field_25697
Lnet/minecraft/class_1383;field_25697:I
official h
Lcee;h:I
-
-
Constructor Details
-
CrossbowAttackGoal
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;<init>(Lnet/minecraft/entity/mob/HostileEntity;DF)V
intermediary <init>
Lnet/minecraft/class_1383;<init>(Lnet/minecraft/class_1588;DF)V
official <init>
Lcee;<init>(Lcmw;DF)V
-
-
Method Details
-
canStart
public boolean canStart() -
isEntityHoldingCrossbow
private boolean isEntityHoldingCrossbow()- Mappings:
Namespace Name Mixin selector named isEntityHoldingCrossbow
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isEntityHoldingCrossbow()Z
intermediary method_6310
Lnet/minecraft/class_1383;method_6310()Z
official h
Lcee;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 c
Lcdd;c()Z
-
hasAliveTarget
private boolean hasAliveTarget()- Mappings:
Namespace Name Mixin selector named hasAliveTarget
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;hasAliveTarget()Z
intermediary method_19996
Lnet/minecraft/class_1383;method_19996()Z
official i
Lcee;i()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 named shouldRunEveryTick
Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
intermediary method_38846
Lnet/minecraft/class_1352;method_38846()Z
official V_
Lcdd;V_()Z
-
tick
public void tick() -
isUncharged
private boolean isUncharged()- Mappings:
Namespace Name Mixin selector named isUncharged
Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isUncharged()Z
intermediary method_16352
Lnet/minecraft/class_1383;method_16352()Z
official k
Lcee;k()Z
-