类 NearestAttackableTargetGoal<T extends LivingEntity>

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T>
直接已知子类:
Bee.BeeBecomeAngryTargetGoal, EnderMan.EndermanLookForPlayerGoal, Fox.DefendTrustedTargetGoal, Llama.LlamaAttackWolfGoal, NearestAttackableWitchTargetGoal, NearestHealableRaiderTargetGoal, NonTameRandomTargetGoal, PolarBear.PolarBearAttackPlayersGoal, Shulker.ShulkerDefenseAttackGoal, Shulker.ShulkerNearestAttackGoal, Spider.SpiderTargetGoal, Vindicator.VindicatorJohnnyAttackGoal

public class NearestAttackableTargetGoal<T extends LivingEntity> extends TargetGoal
  • 字段详细资料

    • DEFAULT_RANDOM_INTERVAL

      private static final int DEFAULT_RANDOM_INTERVAL
      另请参阅:
    • targetType

      protected final Class<T extends LivingEntity> targetType
    • randomInterval

      protected final int randomInterval
    • target

      @Nullable protected LivingEntity target
    • targetConditions

      protected TargetingConditions targetConditions
  • 构造器详细资料

    • NearestAttackableTargetGoal

      public NearestAttackableTargetGoal(Mob p_26060_, Class<T> p_26061_, boolean p_26062_)
    • NearestAttackableTargetGoal

      public NearestAttackableTargetGoal(Mob p_199891_, Class<T> p_199892_, boolean p_199893_, TargetingConditions.Selector p_365854_)
    • NearestAttackableTargetGoal

      public NearestAttackableTargetGoal(Mob p_26064_, Class<T> p_26065_, boolean p_26066_, boolean p_26067_)
    • NearestAttackableTargetGoal

      public NearestAttackableTargetGoal(Mob p_26053_, Class<T> p_26054_, int p_26055_, boolean p_26056_, boolean p_26057_, @Nullable TargetingConditions.Selector p_365081_)
  • 方法详细资料

    • canUse

      public boolean canUse()
      指定者:
      canUse 在类中 Goal
    • getTargetSearchArea

      protected AABB getTargetSearchArea(double p_26069_)
    • findTarget

      protected void findTarget()
    • start

      public void start()
      覆盖:
      start 在类中 TargetGoal
    • setTarget

      public void setTarget(@Nullable LivingEntity p_26071_)
    • getTargetConditions

      private TargetingConditions getTargetConditions()