Package net.minecraft.entity.ai.goal
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 awp
intermediary net/minecraft/class_1345
named net/minecraft/entity/ai/goal/EatGrassGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private static Predicate<BlockState>
GRASS_PREDICATE
private MobEntity
mob
private int
timer
private World
world
-
Constructor Summary
Constructors Constructor Description EatGrassGoal(MobEntity mob)
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
GRASS_PREDICATE
- Mappings:
Namespace Name Mixin selector official a
Lawp;a: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
- Mappings:
Namespace Name Mixin selector official b
Lawp;b:Larj;
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
- Mappings:
Namespace Name Mixin selector official c
Lawp;c:Lbtv;
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 d
Lawp;d:I
intermediary field_6422
Lnet/minecraft/class_1345;field_6422:I
named timer
Lnet/minecraft/entity/ai/goal/EatGrassGoal;timer:I
-
-
Constructor Details
-
EatGrassGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lawp;<init>(Larj;)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() -
start
public void start() -
stop
public void stop() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;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 g
Lawp;g()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()
-