Package org.cyclops.cyclopscore.metadata
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
export()
getName()
abstract com.google.gson.JsonObject
serializeRecipe
(R recipe)
-
Constructor Details
-
RegistryExportableRecipeAbstract
-
-
Method Details
-
getRecipeType
-
export
public com.google.gson.JsonObject export()- Specified by:
export
in interfaceIRegistryExportable
- Returns:
- A JSON representation of the registry.
-
getName
- Specified by:
getName
in interfaceIRegistryExportable
- Returns:
- The unique name of this registry (to be used in file names).
-
serializeRecipe
-