Interface IFarmingManager


public interface IFarmingManager
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<IFarmable>
    getFarmables(net.minecraft.resources.ResourceLocation farmTypeId)
     
    getFarmType(net.minecraft.resources.ResourceLocation id)
     
    int
    getFertilizeValue(net.minecraft.world.item.ItemStack stack)
     
    default boolean
    Used to check whether the farms jar is installed.
  • Method Details

    • isLoaded

      default boolean isLoaded()
      Used to check whether the farms jar is installed. Base ships a no-op farming manager, so this returns false rather than the getter returning null or throwing. Every other api manager comes from base and is always real.
      Returns:
      Whether a real implementation is installed
      Since:
      2.10.0
    • getFarmables

      default List<IFarmable> getFarmables(net.minecraft.resources.ResourceLocation farmTypeId)
    • getFertilizeValue

      int getFertilizeValue(net.minecraft.world.item.ItemStack stack)
      Returns:
      The value of the fertilizer when used in a farm.
    • getFarmType

      @Nullable IFarmType getFarmType(net.minecraft.resources.ResourceLocation id)