Class EatGrassGoal

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

public class EatGrassGoal extends Goal
Mappings:
Namespace Name
official bpt
intermediary net/minecraft/class_1345
named net/minecraft/entity/ai/goal/EatGrassGoal
  • Field Details

    • MAX_TIMER

      private static final int MAX_TIMER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbpt;a:I
      intermediary field_30203 Lnet/minecraft/class_1345;field_30203:I
      named MAX_TIMER Lnet/minecraft/entity/ai/goal/EatGrassGoal;MAX_TIMER:I
    • GRASS_PREDICATE

      private static final Predicate<BlockState> GRASS_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      official b Lbpt;b:Ljava/util/function/Predicate;
      intermediary field_6423 Lnet/minecraft/class_1345;field_6423:Ljava/util/function/Predicate;
      named GRASS_PREDICATE Lnet/minecraft/entity/ai/goal/EatGrassGoal;GRASS_PREDICATE:Ljava/util/function/Predicate;
    • mob

      private final MobEntity mob
      Mappings:
      Namespace Name Mixin selector
      official c Lbpt;c:Lbji;
      intermediary field_6424 Lnet/minecraft/class_1345;field_6424:Lnet/minecraft/class_1308;
      named mob Lnet/minecraft/entity/ai/goal/EatGrassGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official d Lbpt;d:Lcpv;
      intermediary field_6421 Lnet/minecraft/class_1345;field_6421:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/entity/ai/goal/EatGrassGoal;world:Lnet/minecraft/world/World;
    • timer

      private int timer
      Mappings:
      Namespace Name Mixin selector
      official e Lbpt;e:I
      intermediary field_6422 Lnet/minecraft/class_1345;field_6422:I
      named timer Lnet/minecraft/entity/ai/goal/EatGrassGoal;timer:I
  • Constructor Details

    • EatGrassGoal

      public EatGrassGoal(MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpt;<init>(Lbji;)V
      intermediary <init> Lnet/minecraft/class_1345;<init>(Lnet/minecraft/class_1308;)V
      named <init> Lnet/minecraft/entity/ai/goal/EatGrassGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbqb;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      official c Lbqb;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      official d Lbqb;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      official b Lbqb;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • getTimer

      public int getTimer()
      Mappings:
      Namespace Name Mixin selector
      official h Lbpt;h()I
      intermediary method_6258 Lnet/minecraft/class_1345;method_6258()I
      named getTimer Lnet/minecraft/entity/ai/goal/EatGrassGoal;getTimer()I
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lbqb;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V