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 - bnw- intermediary - net/minecraft/class_1383- named - net/minecraft/entity/ai/goal/CrossbowAttackGoal
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.entity.ai.goal.GoalGoal.Control
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Tprivate intprivate intstatic final UniformIntProviderprivate intprivate final doubleprivate final floatprivate CrossbowAttackGoal.Stage
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraft.entity.ai.goal.GoalcanStop, getControls, getTickCount, setControls, start, toGoalTicks, toString
- 
Field Details- 
COOLDOWN_RANGE- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbnw;a:Lbdi;- intermediary - field_25696- Lnet/minecraft/class_1383;field_25696:Lnet/minecraft/class_6019;- named - COOLDOWN_RANGE- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;COOLDOWN_RANGE:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
 
- 
actor- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbnw;b:Lbwc;- intermediary - field_6593- Lnet/minecraft/class_1383;field_6593:Lnet/minecraft/class_1588;- named - actor- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;actor:Lnet/minecraft/entity/mob/HostileEntity;
 
- 
stage- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbnw;c:Lbnw$a;- intermediary - field_16528- Lnet/minecraft/class_1383;field_16528:Lnet/minecraft/class_1383$class_3744;- named - stage- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;stage:Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal$Stage;
 
- 
speedprivate final double speed- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbnw;d:D- intermediary - field_6590- Lnet/minecraft/class_1383;field_6590:D- named - speed- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;speed:D
 
- 
squaredRangeprivate final float squaredRange- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbnw;e:F- intermediary - field_6591- Lnet/minecraft/class_1383;field_6591:F- named - squaredRange- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;squaredRange:F
 
- 
seeingTargetTickerprivate int seeingTargetTicker- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbnw;f:I- intermediary - field_6592- Lnet/minecraft/class_1383;field_6592:I- named - seeingTargetTicker- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;seeingTargetTicker:I
 
- 
chargedTicksLeftprivate int chargedTicksLeft- Mappings:
- Namespace - Name - Mixin selector - official - g- Lbnw;g:I- intermediary - field_16529- Lnet/minecraft/class_1383;field_16529:I- named - chargedTicksLeft- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;chargedTicksLeft:I
 
- 
cooldownprivate int cooldown- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbnw;h:I- intermediary - field_25697- Lnet/minecraft/class_1383;field_25697:I- named - cooldown- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;cooldown:I
 
 
- 
- 
Constructor Details- 
CrossbowAttackGoal- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbnw;<init>(Lbwc;DF)V- intermediary - <init>- Lnet/minecraft/class_1383;<init>(Lnet/minecraft/class_1588;DF)V- named - <init>- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;<init>(Lnet/minecraft/entity/mob/HostileEntity;DF)V
 
 
- 
- 
Method Details- 
canStartpublic boolean canStart()
- 
isEntityHoldingCrossbowprivate boolean isEntityHoldingCrossbow()- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbnw;h()Z- intermediary - method_6310- Lnet/minecraft/class_1383;method_6310()Z- named - isEntityHoldingCrossbow- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isEntityHoldingCrossbow()Z
 
- 
shouldContinuepublic boolean shouldContinue()- Overrides:
- shouldContinuein class- Goal
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbmv;b()Z- intermediary - method_6266- Lnet/minecraft/class_1352;method_6266()Z- named - shouldContinue- Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
 
- 
hasAliveTargetprivate boolean hasAliveTarget()- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbnw;i()Z- intermediary - method_19996- Lnet/minecraft/class_1383;method_19996()Z- named - hasAliveTarget- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;hasAliveTarget()Z
 
- 
stoppublic void stop()
- 
shouldRunEveryTickpublic 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 class- Goal
- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - K_- Lbmv;K_()Z- intermediary - method_38846- Lnet/minecraft/class_1352;method_38846()Z- named - shouldRunEveryTick- Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
 
- 
tickpublic void tick()
- 
isUnchargedprivate boolean isUncharged()- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbnw;k()Z- intermediary - method_16352- Lnet/minecraft/class_1383;method_16352()Z- named - isUncharged- Lnet/minecraft/entity/ai/goal/CrossbowAttackGoal;isUncharged()Z
 
 
-