Interface Animal

    • Method Detail

      • isFood

        boolean isFood​(ItemStack stack)
        Determines if the ItemStack is considered to be food by this animal.
        Parameters:
        stack - The stack
        Returns:
        True if food, false if not
      • canBreedWith

        boolean canBreedWith​(Animal other)
        Determines if this animal can be bred with the provided animal. In vanilla, two animals can only be breed if they are the same EntityType and are adults.
        Parameters:
        other - The animal
        Returns:
        True if can breed with, false if not
      • breedWith

        void breedWith​(Animal animal)
        Instructs this animal to breed with the provided animal.
        Parameters:
        animal - The animal to breed with