Package net.minecraft.entity.ai.goal
Class AnimalMateGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.AnimalMateGoal
- Direct Known Subclasses:
FoxEntity.MateGoal
,PandaEntity.PandaMateGoal
,TurtleEntity.MateGoal
public class AnimalMateGoal extends Goal
- Mappings:
Namespace Name official awk
intermediary net/minecraft/class_1341
named net/minecraft/entity/ai/goal/AnimalMateGoal
-
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 protected AnimalEntity
animal
private double
chance
private Class<? extends AnimalEntity>
entityClass
protected AnimalEntity
mate
private int
timer
private static TargetPredicate
VALID_MATE_PREDICATE
protected World
world
-
Constructor Summary
Constructors Constructor Description AnimalMateGoal(AnimalEntity animal, double chance)
AnimalMateGoal(AnimalEntity animal, double chance, Class<? extends AnimalEntity> entityClass)
-
Method Summary
Modifier and Type Method Description protected void
breed()
boolean
canStart()
private AnimalEntity
findMate()
boolean
shouldContinue()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, start, toString
-
Field Details
-
VALID_MATE_PREDICATE
- Mappings:
Namespace Name Mixin selector official d
Lawk;d:Lbal;
intermediary field_18086
Lnet/minecraft/class_1341;field_18086:Lnet/minecraft/class_4051;
named VALID_MATE_PREDICATE
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;VALID_MATE_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
-
animal
- Mappings:
Namespace Name Mixin selector official a
Lawk;a:Lbbj;
intermediary field_6404
Lnet/minecraft/class_1341;field_6404:Lnet/minecraft/class_1429;
named animal
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;animal:Lnet/minecraft/entity/passive/AnimalEntity;
-
entityClass
- Mappings:
Namespace Name Mixin selector official e
Lawk;e:Ljava/lang/Class;
intermediary field_6403
Lnet/minecraft/class_1341;field_6403:Ljava/lang/Class;
named entityClass
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;entityClass:Ljava/lang/Class;
-
world
- Mappings:
Namespace Name Mixin selector official b
Lawk;b:Lbtv;
intermediary field_6405
Lnet/minecraft/class_1341;field_6405:Lnet/minecraft/class_1937;
named world
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;world:Lnet/minecraft/world/World;
-
mate
- Mappings:
Namespace Name Mixin selector official c
Lawk;c:Lbbj;
intermediary field_6406
Lnet/minecraft/class_1341;field_6406:Lnet/minecraft/class_1429;
named mate
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;mate:Lnet/minecraft/entity/passive/AnimalEntity;
-
timer
private int timer- Mappings:
Namespace Name Mixin selector official f
Lawk;f:I
intermediary field_6402
Lnet/minecraft/class_1341;field_6402:I
named timer
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;timer:I
-
chance
private final double chance- Mappings:
Namespace Name Mixin selector official g
Lawk;g:D
intermediary field_6407
Lnet/minecraft/class_1341;field_6407:D
named chance
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;chance:D
-
-
Constructor Details
-
AnimalMateGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lawk;<init>(Lbbj;D)V
intermediary <init>
Lnet/minecraft/class_1341;<init>(Lnet/minecraft/class_1429;D)V
named <init>
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;<init>(Lnet/minecraft/entity/passive/AnimalEntity;D)V
-
AnimalMateGoal
public AnimalMateGoal(AnimalEntity animal, double chance, Class<? extends AnimalEntity> entityClass)- Mappings:
Namespace Name Mixin selector official <init>
Lawk;<init>(Lbbj;DLjava/lang/Class;)V
intermediary <init>
Lnet/minecraft/class_1341;<init>(Lnet/minecraft/class_1429;DLjava/lang/Class;)V
named <init>
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;<init>(Lnet/minecraft/entity/passive/AnimalEntity;DLjava/lang/Class;)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
-
stop
public void stop() -
tick
public void tick() -
findMate
- Mappings:
Namespace Name Mixin selector official h
Lawk;h()Lbbj;
intermediary method_6250
Lnet/minecraft/class_1341;method_6250()Lnet/minecraft/class_1429;
named findMate
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;findMate()Lnet/minecraft/entity/passive/AnimalEntity;
-
breed
protected void breed()- Mappings:
Namespace Name Mixin selector official g
Lawk;g()V
intermediary method_6249
Lnet/minecraft/class_1341;method_6249()V
named breed
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;breed()V
-