Package org.cyclops.cyclopscore.metadata
Interface IRegistryExportable
- All Known Implementing Classes:
RegistryExportableAbstractCookingRecipe
,RegistryExportableCraftingRecipe
,RegistryExportableFluidTranslationKeys
,RegistryExportableItemTranslationKeys
,RegistryExportableRecipeAbstract
public interface IRegistryExportable
A registry export handler.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
export()
getName()
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)
-