public class CookingRecipeSerializer<T extends AbstractCookingRecipe> extends ForgeRegistryEntry<IRecipeSerializer<?>> implements IRecipeSerializer<T>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
CookingRecipeSerializer.IFactory<T extends AbstractCookingRecipe> |
Modifier and Type | Field and Description |
---|---|
private int |
cookingTime |
private CookingRecipeSerializer.IFactory<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
Constructor and Description |
---|
CookingRecipeSerializer(CookingRecipeSerializer.IFactory<T> p_i50025_1_,
int p_i50025_2_) |
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
private final int cookingTime
private final CookingRecipeSerializer.IFactory<T extends AbstractCookingRecipe> factory
public CookingRecipeSerializer(CookingRecipeSerializer.IFactory<T> p_i50025_1_, int p_i50025_2_)
public T read(ResourceLocation recipeId, com.google.gson.JsonObject json)
read
in interface IRecipeSerializer<T extends AbstractCookingRecipe>
public T read(ResourceLocation recipeId, PacketBuffer buffer)
read
in interface IRecipeSerializer<T extends AbstractCookingRecipe>
public void write(PacketBuffer buffer, T recipe)
write
in interface IRecipeSerializer<T extends AbstractCookingRecipe>