Class EatGrassGoal


  • public class EatGrassGoal
    extends Goal
    • Field Detail

      • IS_TALL_GRASS

        private static final java.util.function.Predicate<BlockState> IS_TALL_GRASS
      • level

        private final World level
      • eatAnimationTick

        private int eatAnimationTick
    • Constructor Detail

      • EatGrassGoal

        public EatGrassGoal​(MobEntity p_i45314_1_)
    • Method Detail

      • 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
      • getEatAnimationTick

        public int getEatAnimationTick()
      • tick

        public void tick()
        Overrides:
        tick in class Goal