@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
public class ProcessingRecipeSerializer<T extends ProcessingRecipe<?>>
extends net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.item.crafting.IRecipeSerializer<?>>
implements net.minecraft.item.crafting.IRecipeSerializer<T>
ARMOR_DYE, BANNER_DUPLICATE, BLASTING_RECIPE, BOOK_CLONING, CAMPFIRE_COOKING_RECIPE, FIREWORK_ROCKET, FIREWORK_STAR, FIREWORK_STAR_FADE, MAP_CLONING, MAP_EXTENDING, REPAIR_ITEM, SHAPED_RECIPE, SHAPELESS_RECIPE, SHIELD_DECORATION, SHULKER_BOX_COLORING, SMELTING_RECIPE, SMITHING, SMOKING_RECIPE, STONECUTTER, SUSPICIOUS_STEW, TIPPED_ARROW| Constructor and Description |
|---|
ProcessingRecipeSerializer(ProcessingRecipeBuilder.ProcessingRecipeFactory<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
T |
fromJson(net.minecraft.util.ResourceLocation id,
com.google.gson.JsonObject json) |
T |
fromNetwork(net.minecraft.util.ResourceLocation id,
net.minecraft.network.PacketBuffer buffer) |
ProcessingRecipeBuilder.ProcessingRecipeFactory<T> |
getFactory() |
protected T |
readFromBuffer(net.minecraft.util.ResourceLocation recipeId,
net.minecraft.network.PacketBuffer buffer) |
protected T |
readFromJson(net.minecraft.util.ResourceLocation recipeId,
com.google.gson.JsonObject json) |
void |
toNetwork(net.minecraft.network.PacketBuffer buffer,
T recipe) |
void |
write(com.google.gson.JsonObject json,
T recipe) |
protected void |
writeToBuffer(net.minecraft.network.PacketBuffer buffer,
T recipe) |
protected void |
writeToJson(com.google.gson.JsonObject json,
T recipe) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic ProcessingRecipeSerializer(ProcessingRecipeBuilder.ProcessingRecipeFactory<T> factory)
protected void writeToJson(com.google.gson.JsonObject json,
T recipe)
protected T readFromJson(net.minecraft.util.ResourceLocation recipeId, com.google.gson.JsonObject json)
protected void writeToBuffer(net.minecraft.network.PacketBuffer buffer,
T recipe)
protected T readFromBuffer(net.minecraft.util.ResourceLocation recipeId, net.minecraft.network.PacketBuffer buffer)
public final void write(com.google.gson.JsonObject json,
T recipe)
public final T fromJson(net.minecraft.util.ResourceLocation id, com.google.gson.JsonObject json)
fromJson in interface net.minecraft.item.crafting.IRecipeSerializer<T extends ProcessingRecipe<?>>public final void toNetwork(net.minecraft.network.PacketBuffer buffer,
T recipe)
toNetwork in interface net.minecraft.item.crafting.IRecipeSerializer<T extends ProcessingRecipe<?>>public final T fromNetwork(net.minecraft.util.ResourceLocation id, net.minecraft.network.PacketBuffer buffer)
fromNetwork in interface net.minecraft.item.crafting.IRecipeSerializer<T extends ProcessingRecipe<?>>public ProcessingRecipeBuilder.ProcessingRecipeFactory<T> getFactory()