Interface IWindfallFarmableBuilder


public interface IWindfallFarmableBuilder
Allows customization of an IFarmable that has windfall items. Windfall items are items that drop from a farmable but aren't directly harvested by the farm (ex. decaying leaves). Primarily used when adding modded windfall items is necessary. For example, the Arboretum has IFarmable instances for all vanilla tree species, but it does not collect modded leaf drops like the items from Delightful or Twig. This interface exposes the list of windfall items passed to the final IFarmable through IFarmTypeBuilder.modifyWindfallFarmable(net.minecraft.world.item.Item, java.util.function.Consumer<forestry.api.plugin.IWindfallFarmableBuilder>).
  • Method Details

    • addWindfall

      IWindfallFarmableBuilder addWindfall(net.minecraft.world.item.Item windfall)
      Adds a windfall item to this farmable.
      Parameters:
      windfall - The windfall item to add.
    • addWindfall

      IWindfallFarmableBuilder addWindfall(Iterable<? extends net.minecraft.world.item.Item> windfall)
      Adds multiple windfall items to this farmable.
      Parameters:
      windfall - The collection of windfall items to add.