Class VillagerBreedTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.VillagerBreedTask
- Mappings:
Namespace Name official biiintermediary net/minecraft/class_4111named net/minecraft/entity/ai/brain/task/VillagerBreedTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate longprivate static final intFields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanReachHome(VillagerEntity villager, BlockPos pos, RegistryEntry<PointOfInterestType> poiType) private Optional<VillagerEntity>createChild(ServerWorld world, VillagerEntity parent, VillagerEntity partner) getReachableHome(ServerWorld world, VillagerEntity villager) private voidgoHome(ServerWorld world, VillagerEntity first, VillagerEntity second) private booleanisReadyToBreed(VillagerEntity villager) protected booleanmethod_18973(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected voidmethod_18974(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected voidmethod_18975(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected voidmethod_18976(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected booleanmethod_19571(ServerWorld serverWorld, VillagerEntity villagerEntity) private voidsetChildHome(ServerWorld world, VillagerEntity child, BlockPos pos) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, run, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
MAX_DISTANCE
private static final int MAX_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official aLbii;a:Iintermediary field_30190Lnet/minecraft/class_4111;field_30190:Inamed MAX_DISTANCELnet/minecraft/entity/ai/brain/task/VillagerBreedTask;MAX_DISTANCE:I
-
APPROACH_SPEED
private static final float APPROACH_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official dLbii;d:Fintermediary field_30191Lnet/minecraft/class_4111;field_30191:Fnamed APPROACH_SPEEDLnet/minecraft/entity/ai/brain/task/VillagerBreedTask;APPROACH_SPEED:F
-
breedEndTime
private long breedEndTime- Mappings:
Namespace Name Mixin selector official eLbii;e:Jintermediary field_18368Lnet/minecraft/class_4111;field_18368:Jnamed breedEndTimeLnet/minecraft/entity/ai/brain/task/VillagerBreedTask;breedEndTime:J
-
-
Constructor Details
-
VillagerBreedTask
public VillagerBreedTask()
-
-
Method Details
-
method_19571
- Mappings:
Namespace Name Mixin selector official aLbii;a(Lahb;Lbvf;)Zintermediary method_19571Lnet/minecraft/class_4111;method_19571(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Znamed method_19571Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;method_19571(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
method_18973
- Mappings:
Namespace Name Mixin selector official aLbii;a(Lahb;Lbvf;J)Zintermediary method_18973Lnet/minecraft/class_4111;method_18973(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Znamed method_18973Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;method_18973(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-
method_18974
- Mappings:
Namespace Name Mixin selector official bLbii;b(Lahb;Lbvf;J)Vintermediary method_18974Lnet/minecraft/class_4111;method_18974(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed method_18974Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;method_18974(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
method_18975
- Mappings:
Namespace Name Mixin selector official cLbii;c(Lahb;Lbvf;J)Vintermediary method_18975Lnet/minecraft/class_4111;method_18975(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed method_18975Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;method_18975(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
goHome
- Mappings:
Namespace Name Mixin selector official aLbii;a(Lahb;Lbvf;Lbvf;)Vintermediary method_20643Lnet/minecraft/class_4111;method_20643(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;)Vnamed goHomeLnet/minecraft/entity/ai/brain/task/VillagerBreedTask;goHome(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/passive/VillagerEntity;)V
-
method_18976
- Mappings:
Namespace Name Mixin selector official dLbii;d(Lahb;Lbvf;J)Vintermediary method_18976Lnet/minecraft/class_4111;method_18976(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed method_18976Lnet/minecraft/entity/ai/brain/task/VillagerBreedTask;method_18976(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
isReadyToBreed
- Mappings:
Namespace Name Mixin selector official aLbii;a(Lbvf;)Zintermediary method_18972Lnet/minecraft/class_4111;method_18972(Lnet/minecraft/class_1646;)Znamed isReadyToBreedLnet/minecraft/entity/ai/brain/task/VillagerBreedTask;isReadyToBreed(Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
getReachableHome
- Mappings:
Namespace Name Mixin selector official bLbii;b(Lahb;Lbvf;)Ljava/util/Optional;intermediary method_19573Lnet/minecraft/class_4111;method_19573(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Ljava/util/Optional;named getReachableHomeLnet/minecraft/entity/ai/brain/task/VillagerBreedTask;getReachableHome(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Optional;
-
canReachHome
private boolean canReachHome(VillagerEntity villager, BlockPos pos, RegistryEntry<PointOfInterestType> poiType) - Mappings:
Namespace Name Mixin selector official aLbii;a(Lbvf;Lgr;Lha;)Zintermediary method_20642Lnet/minecraft/class_4111;method_20642(Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;Lnet/minecraft/class_6880;)Znamed canReachHomeLnet/minecraft/entity/ai/brain/task/VillagerBreedTask;canReachHome(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/registry/RegistryEntry;)Z
-
createChild
private Optional<VillagerEntity> createChild(ServerWorld world, VillagerEntity parent, VillagerEntity partner) - Mappings:
Namespace Name Mixin selector official bLbii;b(Lahb;Lbvf;Lbvf;)Ljava/util/Optional;intermediary method_18970Lnet/minecraft/class_4111;method_18970(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;)Ljava/util/Optional;named createChildLnet/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;
-
setChildHome
- Mappings:
Namespace Name Mixin selector official aLbii;a(Lahb;Lbvf;Lgr;)Vintermediary method_19572Lnet/minecraft/class_4111;method_19572(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;)Vnamed setChildHomeLnet/minecraft/entity/ai/brain/task/VillagerBreedTask;setChildHome(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/BlockPos;)V
-