Class BreedTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<AnimalEntity>
net.minecraft.entity.ai.brain.task.BreedTask

public class BreedTask extends Task<AnimalEntity>
Mappings:
Namespace Name
official ava
intermediary net/minecraft/class_4806
named net/minecraft/entity/ai/brain/task/BreedTask
  • Field Details

    • MAX_RANGE

      private static final int MAX_RANGE
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lava;a:I
      intermediary field_30104 Lnet/minecraft/class_4806;field_30104:I
      named MAX_RANGE Lnet/minecraft/entity/ai/brain/task/BreedTask;MAX_RANGE:I
    • MIN_BREED_TIME

      private static final int MIN_BREED_TIME
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lava;c:I
      intermediary field_30105 Lnet/minecraft/class_4806;field_30105:I
      named MIN_BREED_TIME Lnet/minecraft/entity/ai/brain/task/BreedTask;MIN_BREED_TIME:I
    • RUN_TIME

      private static final int RUN_TIME
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lava;d:I
      intermediary field_30106 Lnet/minecraft/class_4806;field_30106:I
      named RUN_TIME Lnet/minecraft/entity/ai/brain/task/BreedTask;RUN_TIME:I
    • targetType

      private final EntityType<? extends AnimalEntity> targetType
      Mappings:
      Namespace Name Mixin selector
      official e Lava;e:Latj;
      intermediary field_22283 Lnet/minecraft/class_4806;field_22283:Lnet/minecraft/class_1299;
      named targetType Lnet/minecraft/entity/ai/brain/task/BreedTask;targetType:Lnet/minecraft/entity/EntityType;
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official f Lava;f:F
      intermediary field_23129 Lnet/minecraft/class_4806;field_23129:F
      named speed Lnet/minecraft/entity/ai/brain/task/BreedTask;speed:F
    • breedTime

      private long breedTime
      Mappings:
      Namespace Name Mixin selector
      official g Lava;g:J
      intermediary field_22284 Lnet/minecraft/class_4806;field_22284:J
      named breedTime Lnet/minecraft/entity/ai/brain/task/BreedTask;breedTime:J
  • Constructor Details

    • BreedTask

      public BreedTask(EntityType<? extends AnimalEntity> targetType, float speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lava;<init>(Latj;F)V
      intermediary <init> Lnet/minecraft/class_4806;<init>(Lnet/minecraft/class_1299;F)V
      named <init> Lnet/minecraft/entity/ai/brain/task/BreedTask;<init>(Lnet/minecraft/entity/EntityType;F)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, AnimalEntity animalEntity)
      Overrides:
      shouldRun in class Task<AnimalEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lava;a(Labr;Lbdx;)Z
      intermediary method_24543 Lnet/minecraft/class_4806;method_24543(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/BreedTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;)Z
    • run

      protected void run(ServerWorld serverWorld, AnimalEntity animalEntity, long long2)
      Overrides:
      run in class Task<AnimalEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lava;a(Labr;Lbdx;J)V
      intermediary method_24544 Lnet/minecraft/class_4806;method_24544(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)V
      named run Lnet/minecraft/entity/ai/brain/task/BreedTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)V
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, AnimalEntity animalEntity, long long2)
      Overrides:
      shouldKeepRunning in class Task<AnimalEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lava;b(Labr;Lbdx;J)Z
      intermediary method_24547 Lnet/minecraft/class_4806;method_24547(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/BreedTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)Z
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, AnimalEntity animalEntity, long long2)
      Overrides:
      keepRunning in class Task<AnimalEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lava;c(Labr;Lbdx;J)V
      intermediary method_24549 Lnet/minecraft/class_4806;method_24549(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/BreedTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)V
    • finishRunning

      protected void finishRunning(ServerWorld serverWorld, AnimalEntity animalEntity, long long2)
      Overrides:
      finishRunning in class Task<AnimalEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lava;d(Labr;Lbdx;J)V
      intermediary method_24550 Lnet/minecraft/class_4806;method_24550(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/BreedTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;J)V
    • getBreedTarget

      private AnimalEntity getBreedTarget(AnimalEntity animal)
      Mappings:
      Namespace Name Mixin selector
      official a Lava;a(Lbdx;)Lbdx;
      intermediary method_24542 Lnet/minecraft/class_4806;method_24542(Lnet/minecraft/class_1429;)Lnet/minecraft/class_1429;
      named getBreedTarget Lnet/minecraft/entity/ai/brain/task/BreedTask;getBreedTarget(Lnet/minecraft/entity/passive/AnimalEntity;)Lnet/minecraft/entity/passive/AnimalEntity;
    • hasBreedTarget

      private boolean hasBreedTarget(AnimalEntity animal)
      Mappings:
      Namespace Name Mixin selector
      official b Lava;b(Lbdx;)Z
      intermediary method_24546 Lnet/minecraft/class_4806;method_24546(Lnet/minecraft/class_1429;)Z
      named hasBreedTarget Lnet/minecraft/entity/ai/brain/task/BreedTask;hasBreedTarget(Lnet/minecraft/entity/passive/AnimalEntity;)Z
    • findBreedTarget

      private Optional<? extends AnimalEntity> findBreedTarget(AnimalEntity animal)
      Mappings:
      Namespace Name Mixin selector
      official c Lava;c(Lbdx;)Ljava/util/Optional;
      intermediary method_24548 Lnet/minecraft/class_4806;method_24548(Lnet/minecraft/class_1429;)Ljava/util/Optional;
      named findBreedTarget Lnet/minecraft/entity/ai/brain/task/BreedTask;findBreedTarget(Lnet/minecraft/entity/passive/AnimalEntity;)Ljava/util/Optional;