tutorial:cooking_recipe_type
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:cooking_recipe_type [2021/01/01 08:35] – This is just a minor revision due to some problems with registering the serializer programmingpenguinmc | tutorial:cooking_recipe_type [2021/01/26 12:55] – ytg1234 | ||
---|---|---|---|
Line 124: | Line 124: | ||
===== Creating the recipe serializer ===== | ===== Creating the recipe serializer ===== | ||
- | This is where it get different from a normal recipe type, you can make your own serializer if your furnace works differently from vanilla one or just register a new '' | + | This is where it gets different from a normal recipe type, you can make your own serializer if your furnace works differently from vanilla one or just register a new '' |
<code java CookingRecipeExample.java> | <code java CookingRecipeExample.java> | ||
Line 133: | Line 133: | ||
static { | static { | ||
[...] | [...] | ||
- | | + | TEST_RECIPE_SERIALIZER = Registry.register(Registry.RECIPE_SERIALIZER, |
- | //You have to use RecipeSerializer.register for multiple recipes instead of the Registry.register method | + | |
- | | + | |
- | + | ||
- | | + | |
} | } | ||
} | } |
tutorial/cooking_recipe_type.txt · Last modified: 2022/02/07 12:40 by 127.0.0.1