Class BreedGoal

    • Field Detail

      • PARTNER_TARGETING

        private static final EntityPredicate PARTNER_TARGETING
      • partnerClass

        private final java.lang.Class<? extends AnimalEntity> partnerClass
      • level

        protected final World level
      • loveTime

        private int loveTime
      • speedModifier

        private final double speedModifier
    • Constructor Detail

      • BreedGoal

        public BreedGoal​(AnimalEntity p_i1619_1_,
                         double p_i1619_2_)
      • BreedGoal

        public BreedGoal​(AnimalEntity p_i47306_1_,
                         double p_i47306_2_,
                         java.lang.Class<? extends AnimalEntity> p_i47306_4_)
    • Method Detail

      • canUse

        public boolean canUse()
        Specified by:
        canUse 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()