Class ConditionalRecipe.Serializer<T extends Recipe<?>>
java.lang.Object
net.minecraftforge.common.crafting.ConditionalRecipe.Serializer<T>
- All Implemented Interfaces:
RecipeSerializer<T>
,IForgeRecipeSerializer<T>
- Enclosing class:
- ConditionalRecipe
public static class ConditionalRecipe.Serializer<T extends Recipe<?>>
extends Object
implements RecipeSerializer<T>
-
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.RecipeSerializer
ARMOR_DYE, BANNER_DUPLICATE, BLASTING_RECIPE, BOOK_CLONING, CAMPFIRE_COOKING_RECIPE, DECORATED_POT_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, SMITHING_TRANSFORM, SMITHING_TRIM, SMOKING_RECIPE, STONECUTTER, SUSPICIOUS_STEW, TIPPED_ARROW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(ResourceLocation recipeId, com.google.gson.JsonObject json) fromJson
(ResourceLocation recipeId, com.google.gson.JsonObject json, ICondition.IContext context) fromNetwork
(ResourceLocation recipeId, FriendlyByteBuf buffer) void
toNetwork
(FriendlyByteBuf buffer, T recipe)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
fromJson
- Specified by:
fromJson
in interfaceRecipeSerializer<T extends Recipe<?>>
-
fromJson
public T fromJson(ResourceLocation recipeId, com.google.gson.JsonObject json, ICondition.IContext context) - Specified by:
fromJson
in interfaceIForgeRecipeSerializer<T extends Recipe<?>>
-
fromNetwork
- Specified by:
fromNetwork
in interfaceRecipeSerializer<T extends Recipe<?>>
-
toNetwork
- Specified by:
toNetwork
in interfaceRecipeSerializer<T extends Recipe<?>>
-