Package net.minecraft.entity.ai.goal
Class FollowParentGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FollowParentGoal
- Direct Known Subclasses:
FoxEntity.FollowParentGoal
public class FollowParentGoal extends Goal
- Mappings:
Namespace Name official aww
intermediary net/minecraft/class_1353
named net/minecraft/entity/ai/goal/FollowParentGoal
-
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 AnimalEntity
animal
private int
delay
private AnimalEntity
parent
private double
speed
-
Constructor Summary
Constructors Constructor Description FollowParentGoal(AnimalEntity animal, double speed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
animal
- Mappings:
Namespace Name Mixin selector official a
Laww;a:Lbbj;
intermediary field_6455
Lnet/minecraft/class_1353;field_6455:Lnet/minecraft/class_1429;
named animal
Lnet/minecraft/entity/ai/goal/FollowParentGoal;animal:Lnet/minecraft/entity/passive/AnimalEntity;
-
parent
- Mappings:
Namespace Name Mixin selector official b
Laww;b:Lbbj;
intermediary field_6452
Lnet/minecraft/class_1353;field_6452:Lnet/minecraft/class_1429;
named parent
Lnet/minecraft/entity/ai/goal/FollowParentGoal;parent:Lnet/minecraft/entity/passive/AnimalEntity;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector official c
Laww;c:D
intermediary field_6453
Lnet/minecraft/class_1353;field_6453:D
named speed
Lnet/minecraft/entity/ai/goal/FollowParentGoal;speed:D
-
delay
private int delay- Mappings:
Namespace Name Mixin selector official d
Laww;d:I
intermediary field_6454
Lnet/minecraft/class_1353;field_6454:I
named delay
Lnet/minecraft/entity/ai/goal/FollowParentGoal;delay:I
-
-
Constructor Details
-
FollowParentGoal
- Mappings:
Namespace Name Mixin selector official <init>
Laww;<init>(Lbbj;D)V
intermediary <init>
Lnet/minecraft/class_1353;<init>(Lnet/minecraft/class_1429;D)V
named <init>
Lnet/minecraft/entity/ai/goal/FollowParentGoal;<init>(Lnet/minecraft/entity/passive/AnimalEntity;D)V
-
-
Method Details
-
canStart
public boolean canStart() -
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
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-