Class EatGrassGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EatGrassGoal

public class EatGrassGoal extends Goal
  • Field Details

    • IS_TALL_GRASS

      private static final Predicate<BlockState> IS_TALL_GRASS
    • mob

      private final MobEntity mob
    • level

      private final World level
    • eatAnimationTick

      private int eatAnimationTick
  • Constructor Details

    • EatGrassGoal

      public EatGrassGoal(MobEntity p_i45314_1_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • getEatAnimationTick

      public int getEatAnimationTick()
    • tick

      public void tick()
      Overrides:
      tick in class Goal