Class VillagerBreedTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.VillagerBreedTask
- All Implemented Interfaces:
Task<VillagerEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/VillagerBreedTask
intermediary net/minecraft/class_4111
official byq
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canReachHome
(VillagerEntity villager, BlockPos pos, RegistryEntry<PointOfInterestType> poiType) private Optional
<VillagerEntity> createChild
(ServerWorld world, VillagerEntity parent, VillagerEntity partner) protected void
finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) getReachableHome
(ServerWorld world, VillagerEntity villager) private void
goHome
(ServerWorld world, VillagerEntity first, VillagerEntity second) private boolean
isReadyToBreed
(VillagerEntity villager) protected void
keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private void
setChildHome
(ServerWorld world, VillagerEntity child, BlockPos pos) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
breedEndTime
private long breedEndTime- Mappings:
Namespace Name Mixin selector named breedEndTime
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;breedEndTime:J
intermediary field_18368
Lnet/minecraft/class_4111;field_18368:J
official c
Lbyq;c:J
-
-
Constructor Details
-
VillagerBreedTask
public VillagerBreedTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
intermediary method_19571
Lnet/minecraft/class_4111;method_19571(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
official a
Lbyq;a(Larf;Lcml;)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
intermediary method_18973
Lnet/minecraft/class_4111;method_18973(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
official a
Lbyq;a(Larf;Lcml;J)Z
-
run
- Overrides:
run
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_18974
Lnet/minecraft/class_4111;method_18974(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official b
Lbyq;b(Larf;Lcml;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_18975
Lnet/minecraft/class_4111;method_18975(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official c
Lbyq;c(Larf;Lcml;J)V
-
goHome
- Mappings:
Namespace Name Mixin selector named goHome
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;goHome(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_20643
Lnet/minecraft/class_4111;method_20643(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;)V
official a
Lbyq;a(Larf;Lcml;Lcml;)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_18976
Lnet/minecraft/class_4111;method_18976(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official d
Lbyq;d(Larf;Lcml;J)V
-
isReadyToBreed
- Mappings:
Namespace Name Mixin selector named isReadyToBreed
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;isReadyToBreed(Lnet/minecraft/entity/passive/VillagerEntity;)Z
intermediary method_18972
Lnet/minecraft/class_4111;method_18972(Lnet/minecraft/class_1646;)Z
official a
Lbyq;a(Lcml;)Z
-
getReachableHome
- Mappings:
Namespace Name Mixin selector named getReachableHome
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;getReachableHome(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Optional;
intermediary method_19573
Lnet/minecraft/class_4111;method_19573(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Ljava/util/Optional;
official b
Lbyq;b(Larf;Lcml;)Ljava/util/Optional;
-
canReachHome
private boolean canReachHome(VillagerEntity villager, BlockPos pos, RegistryEntry<PointOfInterestType> poiType) - Mappings:
Namespace Name Mixin selector named canReachHome
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;canReachHome(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/entry/RegistryEntry;)Z
intermediary method_20642
Lnet/minecraft/class_4111;method_20642(Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;Lnet/minecraft/class_6880;)Z
official a
Lbyq;a(Lcml;Liz;Lji;)Z
-
createChild
private Optional<VillagerEntity> createChild(ServerWorld world, VillagerEntity parent, VillagerEntity partner) - Mappings:
Namespace Name Mixin selector named createChild
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Optional;
intermediary method_18970
Lnet/minecraft/class_4111;method_18970(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;)Ljava/util/Optional;
official b
Lbyq;b(Larf;Lcml;Lcml;)Ljava/util/Optional;
-
setChildHome
- Mappings:
Namespace Name Mixin selector named setChildHome
Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;setChildHome(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_19572
Lnet/minecraft/class_4111;method_19572(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;)V
official a
Lbyq;a(Larf;Lcml;Liz;)V
-