public class SpecialRecipeSerializer<T extends IRecipe<?>> extends ForgeRegistryEntry<IRecipeSerializer<?>> implements IRecipeSerializer<T>
Modifier and Type | Field and Description |
---|---|
private java.util.function.Function<ResourceLocation,T> |
field_222176_t |
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 |
---|
SpecialRecipeSerializer(java.util.function.Function<ResourceLocation,T> p_i50024_1_) |
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 java.util.function.Function<ResourceLocation,T extends IRecipe<?>> field_222176_t
public SpecialRecipeSerializer(java.util.function.Function<ResourceLocation,T> p_i50024_1_)
public T read(ResourceLocation recipeId, com.google.gson.JsonObject json)
read
in interface IRecipeSerializer<T extends IRecipe<?>>
public T read(ResourceLocation recipeId, PacketBuffer buffer)
read
in interface IRecipeSerializer<T extends IRecipe<?>>
public void write(PacketBuffer buffer, T recipe)
write
in interface IRecipeSerializer<T extends IRecipe<?>>