Class BreedGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.BreedGoal
Direct Known Subclasses:
FoxEntity.MateGoal, PandaEntity.MateGoal, TurtleEntity.MateGoal

public class BreedGoal extends Goal
  • Field Details

    • PARTNER_TARGETING

      private static final EntityPredicate PARTNER_TARGETING
    • animal

      protected final AnimalEntity animal
    • partnerClass

      private final Class<? extends AnimalEntity> partnerClass
    • level

      protected final World level
    • partner

      protected AnimalEntity partner
    • loveTime

      private int loveTime
    • speedModifier

      private final double speedModifier
  • Constructor Details

  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • getFreePartner

      @Nullable private AnimalEntity getFreePartner()
    • breed

      protected void breed()