Class RegistryExportableRecipeAbstract<T extends net.minecraft.world.item.crafting.RecipeType<? extends R>,R extends net.minecraft.world.item.crafting.Recipe<C>,C extends net.minecraft.world.Container>

java.lang.Object
org.cyclops.cyclopscore.metadata.RegistryExportableRecipeAbstract<T,R,C>
All Implemented Interfaces:
IRegistryExportable
Direct Known Subclasses:
RegistryExportableAbstractCookingRecipe, RegistryExportableCraftingRecipe

public abstract class RegistryExportableRecipeAbstract<T extends net.minecraft.world.item.crafting.RecipeType<? extends R>,R extends net.minecraft.world.item.crafting.Recipe<C>,C extends net.minecraft.world.Container> extends Object implements IRegistryExportable
An abstract recipe exporter for Recipe recipes.
  • Constructor Details

    • RegistryExportableRecipeAbstract

      protected RegistryExportableRecipeAbstract(Supplier<T> recipeType)
  • Method Details

    • getRecipeType

      public T getRecipeType()
    • export

      public com.google.gson.JsonObject export()
      Specified by:
      export in interface IRegistryExportable
      Returns:
      A JSON representation of the registry.
    • getName

      public String getName()
      Specified by:
      getName in interface IRegistryExportable
      Returns:
      The unique name of this registry (to be used in file names).
    • serializeRecipe

      public abstract com.google.gson.JsonObject serializeRecipe(R recipe)