类 MeleeAttackGoal

    • 字段详细资料

      • field_30218

        private static final long field_30218
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official l Laza;l:J
        intermediary field_30218 Lnet/minecraft/class_1366;field_30218:J
        named field_30218 Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;field_30218:J
      • mob

        protected final PathAwareEntity mob
        Mappings:
        Namespace Name Mixin selector
        official a Laza;a:Latg;
        intermediary field_6503 Lnet/minecraft/class_1366;field_6503:Lnet/minecraft/class_1314;
        named mob Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
      • speed

        private final double speed
        Mappings:
        Namespace Name Mixin selector
        official b Laza;b:D
        intermediary field_6500 Lnet/minecraft/class_1366;field_6500:D
        named speed Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;speed:D
      • pauseWhenMobIdle

        private final boolean pauseWhenMobIdle
        Mappings:
        Namespace Name Mixin selector
        official c Laza;c:Z
        intermediary field_6502 Lnet/minecraft/class_1366;field_6502:Z
        named pauseWhenMobIdle Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;pauseWhenMobIdle:Z
      • path

        private Path path
        Mappings:
        Namespace Name Mixin selector
        official d Laza;d:Ldga;
        intermediary field_6509 Lnet/minecraft/class_1366;field_6509:Lnet/minecraft/class_11;
        named path Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;path:Lnet/minecraft/entity/ai/pathing/Path;
      • targetX

        private double targetX
        Mappings:
        Namespace Name Mixin selector
        official e Laza;e:D
        intermediary field_6508 Lnet/minecraft/class_1366;field_6508:D
        named targetX Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetX:D
      • targetY

        private double targetY
        Mappings:
        Namespace Name Mixin selector
        official f Laza;f:D
        intermediary field_6507 Lnet/minecraft/class_1366;field_6507:D
        named targetY Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetY:D
      • targetZ

        private double targetZ
        Mappings:
        Namespace Name Mixin selector
        official g Laza;g:D
        intermediary field_6506 Lnet/minecraft/class_1366;field_6506:D
        named targetZ Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;targetZ:D
      • updateCountdownTicks

        private int updateCountdownTicks
        Mappings:
        Namespace Name Mixin selector
        official h Laza;h:I
        intermediary field_6501 Lnet/minecraft/class_1366;field_6501:I
        named updateCountdownTicks Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;updateCountdownTicks:I
      • cooldown

        private int cooldown
        Mappings:
        Namespace Name Mixin selector
        official i Laza;i:I
        intermediary field_24667 Lnet/minecraft/class_1366;field_24667:I
        named cooldown Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;cooldown:I
      • attackIntervalTicks

        private final int attackIntervalTicks
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official j Laza;j:I
        intermediary field_6504 Lnet/minecraft/class_1366;field_6504:I
        named attackIntervalTicks Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;attackIntervalTicks:I
      • lastUpdateTime

        private long lastUpdateTime
        Mappings:
        Namespace Name Mixin selector
        official k Laza;k:J
        intermediary field_19200 Lnet/minecraft/class_1366;field_19200:J
        named lastUpdateTime Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;lastUpdateTime:J
    • 构造器详细资料

      • MeleeAttackGoal

        public MeleeAttackGoal​(PathAwareEntity mob,
                               double speed,
                               boolean pauseWhenMobIdle)
        Mappings:
        Namespace Name Mixin selector
        official <init> Laza;<init>(Latg;DZ)V
        intermediary <init> Lnet/minecraft/class_1366;<init>(Lnet/minecraft/class_1314;DZ)V
        named <init> Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DZ)V
    • 方法详细资料

      • canStart

        public boolean canStart()
        指定者:
        canStart 在类中 Goal
        Mappings:
        Namespace Name Mixin selector
        official a Layq;a()Z
        intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
        named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
      • shouldContinue

        public boolean shouldContinue()
        覆盖:
        shouldContinue 在类中 Goal
        Mappings:
        Namespace Name Mixin selector
        official b Layq;b()Z
        intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
        named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
      • start

        public void start()
        覆盖:
        start 在类中 Goal
        Mappings:
        Namespace Name Mixin selector
        official c Layq;c()V
        intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
        named start Lnet/minecraft/entity/ai/goal/Goal;start()V
      • stop

        public void stop()
        覆盖:
        stop 在类中 Goal
        Mappings:
        Namespace Name Mixin selector
        official d Layq;d()V
        intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
        named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
      • tick

        public void tick()
        覆盖:
        tick 在类中 Goal
        Mappings:
        Namespace Name Mixin selector
        official e Layq;e()V
        intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
        named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
      • attack

        protected void attack​(LivingEntity target,
                              double squaredDistance)
        Mappings:
        Namespace Name Mixin selector
        official a Laza;a(Lasy;D)V
        intermediary method_6288 Lnet/minecraft/class_1366;method_6288(Lnet/minecraft/class_1309;D)V
        named attack Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;attack(Lnet/minecraft/entity/LivingEntity;D)V
      • setMaxCooldown

        protected void setMaxCooldown()
        Mappings:
        Namespace Name Mixin selector
        official g Laza;g()V
        intermediary method_28346 Lnet/minecraft/class_1366;method_28346()V
        named setMaxCooldown Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;setMaxCooldown()V
      • isCooledDown

        protected boolean isCooledDown()
        Mappings:
        Namespace Name Mixin selector
        official h Laza;h()Z
        intermediary method_28347 Lnet/minecraft/class_1366;method_28347()Z
        named isCooledDown Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;isCooledDown()Z
      • getCooldown

        protected int getCooldown()
        Mappings:
        Namespace Name Mixin selector
        official j Laza;j()I
        intermediary method_28348 Lnet/minecraft/class_1366;method_28348()I
        named getCooldown Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;getCooldown()I
      • getMaxCooldown

        protected int getMaxCooldown()
        Mappings:
        Namespace Name Mixin selector
        official k Laza;k()I
        intermediary method_28349 Lnet/minecraft/class_1366;method_28349()I
        named getMaxCooldown Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;getMaxCooldown()I
      • getSquaredMaxAttackDistance

        protected double getSquaredMaxAttackDistance​(LivingEntity entity)
        Mappings:
        Namespace Name Mixin selector
        official a Laza;a(Lasy;)D
        intermediary method_6289 Lnet/minecraft/class_1366;method_6289(Lnet/minecraft/class_1309;)D
        named getSquaredMaxAttackDistance Lnet/minecraft/entity/ai/goal/MeleeAttackGoal;getSquaredMaxAttackDistance(Lnet/minecraft/entity/LivingEntity;)D