tutorial:recipe_type
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:recipe_type [2021/12/01 11:34] – corrected three more compiler errors ayutac | tutorial:recipe_type [2026/04/11 19:44] (current) – Docs redirect cassiancc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~REDIRECT> | ||
| + | |||
| ====== Creating a Custom Recipe Type ====== | ====== Creating a Custom Recipe Type ====== | ||
| In this page, we will create our own custom recipe type, including the shapeless version! | In this page, we will create our own custom recipe type, including the shapeless version! | ||
| Line 102: | Line 104: | ||
| public ItemStack craft(CraftingInventory inv) { | public ItemStack craft(CraftingInventory inv) { | ||
| return this.getOutput().copy(); | return this.getOutput().copy(); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean fits(int width, int height) { | ||
| + | return true; | ||
| } | } | ||
| } | } | ||
| Line 136: | Line 143: | ||
| </ | </ | ||
| + | What's still missing is the RecipeSerializer, | ||
| SOURCE: | SOURCE: | ||
| [[https:// | [[https:// | ||
tutorial/recipe_type.1638358491.txt.gz · Last modified: 2021/12/01 11:34 by ayutac