Package net.minecraft.entity.ai.goal
Class EatGrassGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EatGrassGoal
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/EatGrassGoal
intermediary net/minecraft/class_1345
official cah
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final MobEntity
private static final Predicate
<BlockState> private int
private final World
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, toGoalTicks, toString
-
Field Details
-
MAX_TIMER
private static final int MAX_TIMER- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TIMER
Lnet/minecraft/entity/ai/goal/EatGrassGoal;MAX_TIMER:I
intermediary field_30203
Lnet/minecraft/class_1345;field_30203:I
official a
Lcah;a:I
-
SHORT_GRASS_PREDICATE
- Mappings:
Namespace Name Mixin selector named SHORT_GRASS_PREDICATE
Lnet/minecraft/entity/ai/goal/EatGrassGoal;SHORT_GRASS_PREDICATE:Ljava/util/function/Predicate;
intermediary field_6423
Lnet/minecraft/class_1345;field_6423:Ljava/util/function/Predicate;
official b
Lcah;b:Ljava/util/function/Predicate;
-
mob
- Mappings:
Namespace Name Mixin selector named mob
Lnet/minecraft/entity/ai/goal/EatGrassGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
intermediary field_6424
Lnet/minecraft/class_1345;field_6424:Lnet/minecraft/class_1308;
official c
Lcah;c:Lbtt;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/entity/ai/goal/EatGrassGoal;world:Lnet/minecraft/world/World;
intermediary field_6421
Lnet/minecraft/class_1345;field_6421:Lnet/minecraft/class_1937;
official d
Lcah;d:Ldca;
-
timer
private int timer- Mappings:
Namespace Name Mixin selector named timer
Lnet/minecraft/entity/ai/goal/EatGrassGoal;timer:I
intermediary field_6422
Lnet/minecraft/class_1345;field_6422:I
official e
Lcah;e:I
-
-
Constructor Details
-
EatGrassGoal
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/EatGrassGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
intermediary <init>
Lnet/minecraft/class_1345;<init>(Lnet/minecraft/class_1308;)V
official <init>
Lcah;<init>(Lbtt;)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 named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
official b
Lcap;b()Z
-
getTimer
public int getTimer()- Mappings:
Namespace Name Mixin selector named getTimer
Lnet/minecraft/entity/ai/goal/EatGrassGoal;getTimer()I
intermediary method_6258
Lnet/minecraft/class_1345;method_6258()I
official h
Lcah;h()I
-
tick
public void tick()
-