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 official biqintermediary net/minecraft/class_1383named 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 official aLbiq;a:Layw;intermediary field_25696Lnet/minecraft/class_1383;field_25696:Lnet/minecraft/class_6019;named COOLDOWN_RANGELnet/minecraft/entity/ai/goal/CrossbowAttackGoal;COOLDOWN_RANGE:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
actor
- Mappings:
Namespace Name Mixin selector official bLbiq;b:Lbqr;intermediary field_6593Lnet/minecraft/class_1383;field_6593:Lnet/minecraft/class_1588;named actorLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;actor:Lnet/minecraft/entity/mob/HostileEntity;
-
stage
- Mappings:
Namespace Name Mixin selector official cLbiq;c:Lbiq$a;intermediary field_16528Lnet/minecraft/class_1383;field_16528:Lnet/minecraft/class_1383$class_3744;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 official dLbiq;d:Dintermediary field_6590Lnet/minecraft/class_1383;field_6590:Dnamed speedLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;speed:D
-
squaredRange
private final float squaredRange- Mappings:
Namespace Name Mixin selector official eLbiq;e:Fintermediary field_6591Lnet/minecraft/class_1383;field_6591:Fnamed squaredRangeLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;squaredRange:F
-
seeingTargetTicker
private int seeingTargetTicker- Mappings:
Namespace Name Mixin selector official fLbiq;f:Iintermediary field_6592Lnet/minecraft/class_1383;field_6592:Inamed seeingTargetTickerLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;seeingTargetTicker:I
-
chargedTicksLeft
private int chargedTicksLeft- Mappings:
Namespace Name Mixin selector official gLbiq;g:Iintermediary field_16529Lnet/minecraft/class_1383;field_16529:Inamed chargedTicksLeftLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;chargedTicksLeft:I
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector official hLbiq;h:Iintermediary field_25697Lnet/minecraft/class_1383;field_25697:Inamed cooldownLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;cooldown:I
-
-
Constructor Details
-
CrossbowAttackGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbiq;<init>(Lbqr;DF)Vintermediary <init>Lnet/minecraft/class_1383;<init>(Lnet/minecraft/class_1588;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 official hLbiq;h()Zintermediary method_6310Lnet/minecraft/class_1383;method_6310()Znamed isEntityHoldingCrossbowLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isEntityHoldingCrossbow()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector official bLbhq;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
hasAliveTarget
private boolean hasAliveTarget()- Mappings:
Namespace Name Mixin selector official iLbiq;i()Zintermediary method_19996Lnet/minecraft/class_1383;method_19996()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 official E_Lbhq;E_()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick() -
isUncharged
private boolean isUncharged()- Mappings:
Namespace Name Mixin selector official kLbiq;k()Zintermediary method_16352Lnet/minecraft/class_1383;method_16352()Znamed isUnchargedLnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isUncharged()Z
-