Class BreedTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<AnimalEntity>
net.minecraft.entity.ai.brain.task.BreedTask
- All Implemented Interfaces:
Task<AnimalEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/BreedTask
intermediary net/minecraft/class_4806
official bvd
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private long
private static final int
private static final int
private static final int
private static final int
private final float
private final EntityType
<? extends AnimalEntity> Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionBreedTask
(EntityType<? extends AnimalEntity> targetType) BreedTask
(EntityType<? extends AnimalEntity> targetType, float speed, int approachDistance) -
Method Summary
Modifier and TypeMethodDescriptionprivate Optional
<? extends AnimalEntity> findBreedTarget
(AnimalEntity animal) protected void
finishRunning
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) private AnimalEntity
getBreedTarget
(AnimalEntity animal) private boolean
hasBreedTarget
(AnimalEntity animal) protected void
keepRunning
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected void
run
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, AnimalEntity animalEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, AnimalEntity animalEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
MAX_RANGE
private static final int MAX_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RANGE
Lnet/minecraft/entity/ai/brain/task/BreedTask;MAX_RANGE:I
intermediary field_30104
Lnet/minecraft/class_4806;field_30104:I
official c
Lbvd;c:I
-
MIN_BREED_TIME
private static final int MIN_BREED_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_BREED_TIME
Lnet/minecraft/entity/ai/brain/task/BreedTask;MIN_BREED_TIME:I
intermediary field_30105
Lnet/minecraft/class_4806;field_30105:I
official d
Lbvd;d:I
-
RUN_TIME
private static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named RUN_TIME
Lnet/minecraft/entity/ai/brain/task/BreedTask;RUN_TIME:I
intermediary field_30106
Lnet/minecraft/class_4806;field_30106:I
official e
Lbvd;e:I
-
DEFAULT_APPROACH_DISTANCE
private static final int DEFAULT_APPROACH_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_APPROACH_DISTANCE
Lnet/minecraft/entity/ai/brain/task/BreedTask;DEFAULT_APPROACH_DISTANCE:I
intermediary field_48328
Lnet/minecraft/class_4806;field_48328:I
official i
Lbvd;i:I
-
targetType
- Mappings:
Namespace Name Mixin selector named targetType
Lnet/minecraft/entity/ai/brain/task/BreedTask;targetType:Lnet/minecraft/entity/EntityType;
intermediary field_22283
Lnet/minecraft/class_4806;field_22283:Lnet/minecraft/class_1299;
official f
Lbvd;f:Lbtb;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/brain/task/BreedTask;speed:F
intermediary field_23129
Lnet/minecraft/class_4806;field_23129:F
official g
Lbvd;g:F
-
approachDistance
private final int approachDistance- Mappings:
Namespace Name Mixin selector named approachDistance
Lnet/minecraft/entity/ai/brain/task/BreedTask;approachDistance:I
intermediary field_48327
Lnet/minecraft/class_4806;field_48327:I
official h
Lbvd;h:I
-
breedTime
private long breedTime- Mappings:
Namespace Name Mixin selector named breedTime
Lnet/minecraft/entity/ai/brain/task/BreedTask;breedTime:J
intermediary field_22284
Lnet/minecraft/class_4806;field_22284:J
official j
Lbvd;j:J
-
-
Constructor Details
-
BreedTask
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/BreedTask;<init>(Lnet/minecraft/entity/EntityType;)V
intermediary <init>
Lnet/minecraft/class_4806;<init>(Lnet/minecraft/class_1299;)V
official <init>
Lbvd;<init>(Lbtb;)V
-
BreedTask
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/BreedTask;<init>(Lnet/minecraft/entity/EntityType;FI)V
intermediary <init>
Lnet/minecraft/class_4806;<init>(Lnet/minecraft/class_1299;FI)V
official <init>
Lbvd;<init>(Lbtb;FI)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<AnimalEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/BreedTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;)Z
intermediary method_24543
Lnet/minecraft/class_4806;method_24543(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;)Z
official a
Lbvd;a(Larf;Lcfg;)Z
-
run
- Overrides:
run
in classMultiTickTask<AnimalEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/BreedTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)V
intermediary method_24544
Lnet/minecraft/class_4806;method_24544(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)V
official a
Lbvd;a(Larf;Lcfg;J)V
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classMultiTickTask<AnimalEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/BreedTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)Z
intermediary method_24547
Lnet/minecraft/class_4806;method_24547(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)Z
official b
Lbvd;b(Larf;Lcfg;J)Z
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<AnimalEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/BreedTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)V
intermediary method_24549
Lnet/minecraft/class_4806;method_24549(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)V
official c
Lbvd;c(Larf;Lcfg;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<AnimalEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/BreedTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)V
intermediary method_24550
Lnet/minecraft/class_4806;method_24550(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)V
official d
Lbvd;d(Larf;Lcfg;J)V
-
getBreedTarget
- Mappings:
Namespace Name Mixin selector named getBreedTarget
Lnet/minecraft/entity/ai/brain/task/BreedTask;getBreedTarget(Lnet/minecraft/entity/passive/AnimalEntity;)Lnet/minecraft/entity/passive/AnimalEntity;
intermediary method_24542
Lnet/minecraft/class_4806;method_24542(Lnet/minecraft/class_1429;)Lnet/minecraft/class_1429;
official a
Lbvd;a(Lcfg;)Lcfg;
-
hasBreedTarget
- Mappings:
Namespace Name Mixin selector named hasBreedTarget
Lnet/minecraft/entity/ai/brain/task/BreedTask;hasBreedTarget(Lnet/minecraft/entity/passive/AnimalEntity;)Z
intermediary method_24546
Lnet/minecraft/class_4806;method_24546(Lnet/minecraft/class_1429;)Z
official b
Lbvd;b(Lcfg;)Z
-
findBreedTarget
- Mappings:
Namespace Name Mixin selector named findBreedTarget
Lnet/minecraft/entity/ai/brain/task/BreedTask;findBreedTarget(Lnet/minecraft/entity/passive/AnimalEntity;)Ljava/util/Optional;
intermediary method_24548
Lnet/minecraft/class_4806;method_24548(Lnet/minecraft/class_1429;)Ljava/util/Optional;
official c
Lbvd;c(Lcfg;)Ljava/util/Optional;
-