public static class SingleItemRecipe.Serializer<T extends SingleItemRecipe> extends ForgeRegistryEntry<IRecipeSerializer<?>> implements IRecipeSerializer<T>
delegateBLASTING, 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_SHIELD, CRAFTING_SPECIAL_SHULKERBOXCOLORING, CRAFTING_SPECIAL_SUSPICIOUSSTEW, CRAFTING_SPECIAL_TIPPEDARROW, field_223550_o, SMELTING, SMOKING, STONECUTTING| Modifier | Constructor and Description |
|---|---|
protected |
Serializer(net.minecraft.item.crafting.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, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregistergetRegistryName, getRegistryType, setRegistryNameprotected Serializer(net.minecraft.item.crafting.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>