Interface IRegistryExportable

All Known Implementing Classes:
RegistryExportableAbstractCookingRecipe, RegistryExportableCraftingRecipe, RegistryExportableFluidTranslationKeys, RegistryExportableItemTranslationKeys, RegistryExportableRecipeAbstract

public interface IRegistryExportable
A registry export handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.gson.JsonObject
     
     
    static com.google.gson.JsonObject
    serializeFluidStack(net.minecraftforge.fluids.FluidStack fluidStack)
     
    static com.google.gson.JsonObject
    serializeItemStack(net.minecraft.world.item.ItemStack itemStack)
     
  • Method Details

    • export

      com.google.gson.JsonObject export()
      Returns:
      A JSON representation of the registry.
    • getName

      String getName()
      Returns:
      The unique name of this registry (to be used in file names).
    • serializeItemStack

      static com.google.gson.JsonObject serializeItemStack(net.minecraft.world.item.ItemStack itemStack)
    • serializeFluidStack

      static com.google.gson.JsonObject serializeFluidStack(net.minecraftforge.fluids.FluidStack fluidStack)