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 intermediary net/minecraft/class_1383official bnunamed net/minecraft/entity/ai/goal/CrossbowAttackGoal
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Tprivate intprivate intstatic final UniformIntProviderprivate intprivate final doubleprivate final floatprivate CrossbowAttackGoal.Stage -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, start, toGoalTicks, toString
-
Field Details
-
COOLDOWN_RANGE
- Mappings:
Namespace Name Mixin selector intermediary field_25696Lnet/minecraft/class_1383;field_25696:Lnet/minecraft/class_6019;official aLbnu;a:Lbdh;named COOLDOWN_RANGELnet/minecraft/entity/ai/goal/CrossbowAttackGoal;COOLDOWN_RANGE:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
actor
- Mappings:
Namespace Name Mixin selector intermediary field_6593Lnet/minecraft/class_1383;field_6593:Lnet/minecraft/class_1588;official bLbnu;b:Lbwa;named actorLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;actor:Lnet/minecraft/entity/mob/HostileEntity;
-
stage
- Mappings:
Namespace Name Mixin selector intermediary field_16528Lnet/minecraft/class_1383;field_16528:Lnet/minecraft/class_1383$class_3744;official cLbnu;c:Lbnu$a;named stageLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;stage:Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal$Stage;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector intermediary field_6590Lnet/minecraft/class_1383;field_6590:Dofficial dLbnu;d:Dnamed speedLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;speed:D
-
squaredRange
private final float squaredRange- Mappings:
Namespace Name Mixin selector intermediary field_6591Lnet/minecraft/class_1383;field_6591:Fofficial eLbnu;e:Fnamed squaredRangeLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;squaredRange:F
-
seeingTargetTicker
private int seeingTargetTicker- Mappings:
Namespace Name Mixin selector intermediary field_6592Lnet/minecraft/class_1383;field_6592:Iofficial fLbnu;f:Inamed seeingTargetTickerLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;seeingTargetTicker:I
-
chargedTicksLeft
private int chargedTicksLeft- Mappings:
Namespace Name Mixin selector intermediary field_16529Lnet/minecraft/class_1383;field_16529:Iofficial gLbnu;g:Inamed chargedTicksLeftLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;chargedTicksLeft:I
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector intermediary field_25697Lnet/minecraft/class_1383;field_25697:Iofficial hLbnu;h:Inamed cooldownLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;cooldown:I
-
-
Constructor Details
-
CrossbowAttackGoal
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_1383;<init>(Lnet/minecraft/class_1588;DF)Vofficial <init>Lbnu;<init>(Lbwa;DF)Vnamed <init>Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;<init>(Lnet/minecraft/entity/mob/HostileEntity;DF)V
-
-
Method Details
-
canStart
public boolean canStart() -
isEntityHoldingCrossbow
private boolean isEntityHoldingCrossbow()- Mappings:
Namespace Name Mixin selector intermediary method_6310Lnet/minecraft/class_1383;method_6310()Zofficial hLbnu;h()Znamed isEntityHoldingCrossbowLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isEntityHoldingCrossbow()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector intermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial bLbmt;b()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
hasAliveTarget
private boolean hasAliveTarget()- Mappings:
Namespace Name Mixin selector intermediary method_19996Lnet/minecraft/class_1383;method_19996()Zofficial iLbnu;i()Znamed hasAliveTargetLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;hasAliveTarget()Z
-
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 intermediary method_38846Lnet/minecraft/class_1352;method_38846()Zofficial J_Lbmt;J_()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick() -
isUncharged
private boolean isUncharged()- Mappings:
Namespace Name Mixin selector intermediary method_16352Lnet/minecraft/class_1383;method_16352()Zofficial kLbnu;k()Znamed isUnchargedLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isUncharged()Z
-