public static class SingleItemRecipe.Serializer<T extends SingleItemRecipe> extends ForgeRegistryEntry<IRecipeSerializer<?>> implements IRecipeSerializer<T>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
SingleItemRecipe.Serializer.IRecipeFactory<T extends SingleItemRecipe> |
Modifier and Type | Field and Description |
---|---|
(package private) SingleItemRecipe.Serializer.IRecipeFactory<T> |
factory |
delegate
BLASTING, CAMPFIRE_COOKING, CRAFTING_SHAPED, CRAFTING_SHAPELESS, CRAFTING_SPECIAL_ARMORDYE, CRAFTING_SPECIAL_BANNERDUPLICATE, CRAFTING_SPECIAL_BOOKCLONING, CRAFTING_SPECIAL_FIREWORK_ROCKET, CRAFTING_SPECIAL_FIREWORK_STAR, CRAFTING_SPECIAL_FIREWORK_STAR_FADE, CRAFTING_SPECIAL_MAPCLONING, CRAFTING_SPECIAL_MAPEXTENDING, CRAFTING_SPECIAL_REPAIRITEM, CRAFTING_SPECIAL_SHIELD, CRAFTING_SPECIAL_SHULKERBOXCOLORING, CRAFTING_SPECIAL_SUSPICIOUSSTEW, CRAFTING_SPECIAL_TIPPEDARROW, SMELTING, SMOKING, STONECUTTING
Modifier | Constructor and Description |
---|---|
protected |
Serializer(SingleItemRecipe.Serializer.IRecipeFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
T |
read(ResourceLocation recipeId,
com.google.gson.JsonObject json) |
T |
read(ResourceLocation recipeId,
PacketBuffer buffer) |
void |
write(PacketBuffer buffer,
T recipe) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
register
getRegistryName, getRegistryType, setRegistryName
final SingleItemRecipe.Serializer.IRecipeFactory<T extends SingleItemRecipe> factory
protected Serializer(SingleItemRecipe.Serializer.IRecipeFactory<T> factory)
public T read(ResourceLocation recipeId, com.google.gson.JsonObject json)
read
in interface IRecipeSerializer<T extends SingleItemRecipe>
public T read(ResourceLocation recipeId, PacketBuffer buffer)
read
in interface IRecipeSerializer<T extends SingleItemRecipe>
public void write(PacketBuffer buffer, T recipe)
write
in interface IRecipeSerializer<T extends SingleItemRecipe>