类 TargetGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
直接已知子类:
DefendVillageTargetGoal, HurtByTargetGoal, NearestAttackableTargetGoal, OwnerHurtByTargetGoal, OwnerHurtTargetGoal, TraderLlama.TraderLlamaDefendWanderingTraderGoal, Vex.VexCopyOwnerTargetGoal

public abstract class TargetGoal extends Goal
  • 字段详细资料

    • EMPTY_REACH_CACHE

      private static final int EMPTY_REACH_CACHE
      另请参阅:
    • CAN_REACH_CACHE

      private static final int CAN_REACH_CACHE
      另请参阅:
    • CANT_REACH_CACHE

      private static final int CANT_REACH_CACHE
      另请参阅:
    • mob

      protected final Mob mob
    • mustSee

      protected final boolean mustSee
    • mustReach

      private final boolean mustReach
    • reachCache

      private int reachCache
    • reachCacheTime

      private int reachCacheTime
    • unseenTicks

      private int unseenTicks
    • targetMob

      @Nullable protected LivingEntity targetMob
    • unseenMemoryTicks

      protected int unseenMemoryTicks
  • 构造器详细资料

    • TargetGoal

      public TargetGoal(Mob p_26140_, boolean p_26141_)
    • TargetGoal

      public TargetGoal(Mob p_26143_, boolean p_26144_, boolean p_26145_)
  • 方法详细资料

    • canContinueToUse

      public boolean canContinueToUse()
      覆盖:
      canContinueToUse 在类中 Goal
    • getFollowDistance

      protected double getFollowDistance()
    • start

      public void start()
      覆盖:
      start 在类中 Goal
    • stop

      public void stop()
      覆盖:
      stop 在类中 Goal
    • canAttack

      protected boolean canAttack(@Nullable LivingEntity p_26151_, TargetingConditions p_26152_)
    • canReach

      private boolean canReach(LivingEntity p_26149_)
    • setUnseenMemoryTicks

      public TargetGoal setUnseenMemoryTicks(int p_26147_)