类 EatBlockGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.EatBlockGoal

public class EatBlockGoal extends Goal
  • 字段详细资料

    • EAT_ANIMATION_TICKS

      private static final int EAT_ANIMATION_TICKS
      另请参阅:
    • IS_EDIBLE

      private static final Predicate<BlockState> IS_EDIBLE
    • mob

      private final Mob mob
    • level

      private final Level level
    • eatAnimationTick

      private int eatAnimationTick
  • 构造器详细资料

    • EatBlockGoal

      public EatBlockGoal(Mob p_25207_)
  • 方法详细资料

    • canUse

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

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

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

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

      public int getEatAnimationTick()
    • tick

      public void tick()
      覆盖:
      tick 在类中 Goal