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
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/AnimalMateGoal
intermediary net/minecraft/class_1341
official ccp
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnimalEntity
private final Class
<? extends AnimalEntity> protected @Nullable AnimalEntity
private final double
private int
private static final TargetPredicate
protected final ServerWorld
-
Constructor Summary
ConstructorDescriptionAnimalMateGoal
(AnimalEntity animal, double speed) AnimalMateGoal
(AnimalEntity animal, double speed, Class<? extends AnimalEntity> entityClass) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, shouldRunEveryTick, start, toGoalTicks, toString
-
Field Details
-
VALID_MATE_PREDICATE
- Mappings:
Namespace Name Mixin selector named VALID_MATE_PREDICATE
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;VALID_MATE_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
intermediary field_18086
Lnet/minecraft/class_1341;field_18086:Lnet/minecraft/class_4051;
official d
Lccp;d:Lcgw;
-
animal
- Mappings:
Namespace Name Mixin selector named animal
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;animal:Lnet/minecraft/entity/passive/AnimalEntity;
intermediary field_6404
Lnet/minecraft/class_1341;field_6404:Lnet/minecraft/class_1429;
official a
Lccp;a:Lchw;
-
entityClass
- Mappings:
Namespace Name Mixin selector named entityClass
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;entityClass:Ljava/lang/Class;
intermediary field_6403
Lnet/minecraft/class_1341;field_6403:Ljava/lang/Class;
official e
Lccp;e:Ljava/lang/Class;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;world:Lnet/minecraft/server/world/ServerWorld;
intermediary field_6405
Lnet/minecraft/class_1341;field_6405:Lnet/minecraft/class_3218;
official b
Lccp;b:Lash;
-
mate
- Mappings:
Namespace Name Mixin selector named mate
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;mate:Lnet/minecraft/entity/passive/AnimalEntity;
intermediary field_6406
Lnet/minecraft/class_1341;field_6406:Lnet/minecraft/class_1429;
official c
Lccp;c:Lchw;
-
timer
private int timer- Mappings:
Namespace Name Mixin selector named timer
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;timer:I
intermediary field_6402
Lnet/minecraft/class_1341;field_6402:I
official f
Lccp;f:I
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;speed:D
intermediary field_6407
Lnet/minecraft/class_1341;field_6407:D
official g
Lccp;g:D
-
-
Constructor Details
-
AnimalMateGoal
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;<init>(Lnet/minecraft/entity/passive/AnimalEntity;D)V
intermediary <init>
Lnet/minecraft/class_1341;<init>(Lnet/minecraft/class_1429;D)V
official <init>
Lccp;<init>(Lchw;D)V
-
AnimalMateGoal
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;<init>(Lnet/minecraft/entity/passive/AnimalEntity;DLjava/lang/Class;)V
intermediary <init>
Lnet/minecraft/class_1341;<init>(Lnet/minecraft/class_1429;DLjava/lang/Class;)V
official <init>
Lccp;<init>(Lchw;DLjava/lang/Class;)V
-
-
Method Details
-
canStart
public boolean canStart() -
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 c
Lcdd;c()Z
-
stop
public void stop() -
tick
public void tick() -
findMate
- Mappings:
Namespace Name Mixin selector named findMate
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;findMate()Lnet/minecraft/entity/passive/AnimalEntity;
intermediary method_6250
Lnet/minecraft/class_1341;method_6250()Lnet/minecraft/class_1429;
official h
Lccp;h()Lchw;
-
breed
protected void breed()- Mappings:
Namespace Name Mixin selector named breed
Lnet/minecraft/entity/ai/goal/AnimalMateGoal;breed()V
intermediary method_6249
Lnet/minecraft/class_1341;method_6249()V
official g
Lccp;g()V
-