ko_kr:tutorial:recipe_type
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
ko_kr:tutorial:recipe_type [2021/02/16 08:48] – created themovieayt | ko_kr:tutorial:recipe_type [2021/03/01 05:35] – themovieayt | ||
---|---|---|---|
Line 3: | Line 3: | ||
We won't use any vanilla Minecraft classes, it will be a fully custom recipe type. | We won't use any vanilla Minecraft classes, it will be a fully custom recipe type. | ||
- | ===== Adding the Block ===== | + | ===== 블럭 추가 |
- | We will need to create a block to open the recipe gui. Some of the classes will be created later. | + | 레시피 GUI를 열기 위한 블럭을 만들어야됩니다. 몇몇 다른 클래스는 추후에 만들것 입니다. |
<code java TestRecipeBlock.java> | <code java TestRecipeBlock.java> | ||
Line 33: | Line 33: | ||
</ | </ | ||
- | Now we need to register the Block and BlockItem. | + | 이제 |
<code java ExampleCustomRecipeMod.java> | <code java ExampleCustomRecipeMod.java> | ||
public class ExampleCustomRecipeMod implements ModInitializer { | public class ExampleCustomRecipeMod implements ModInitializer { | ||
Line 45: | Line 45: | ||
</ | </ | ||
- | ===== Creating the Recipe Class ===== | + | ===== 레시피 클래스 생성 |
- | Now we will do the most fun part of this page, creating the recipe class. | + | 이제 이 페이지에서 **가장 재미있는!!** 부분입니다. 레시피 클래스를 만들어 봅시다. |
+ | ==== 모양이 있는 레시피 클래스 생성 ==== | ||
+ | 모양이 있는 레시피는 특정 슬롯이나 패턴에 아이템이 있어야 하는 레시피 유형입니다. 그것은 제작대 레시피같은 그리드 방식의 레시피에 대부분 사용됩니다. | ||
- | ==== Creating the Shaped | + | Recipe |
- | Shaped recipes are a recipe type that requires an item to be in that specific slot or pattern. It is mostly used on | + | |
- | grid recipes such as Crafting Recipe. | + | |
- | + | ||
- | The Recipe interface expects an Inventory | + | |
for the recipe would work. But we will be using CraftingInventory. | for the recipe would work. But we will be using CraftingInventory. | ||
<code java TestRecipe.java> | <code java TestRecipe.java> | ||
public class TestRecipe implements Recipe< | public class TestRecipe implements Recipe< | ||
- | //You can add as much inputs as you want here. | + | //원하는 입력을 넣을 수 있습니다. |
- | //It is important to always use Ingredient, so you can support tags. | + | //Ingredient를 사용하면 태그를 지원 할 수 있어서 사용하는 것이 중요합니다. |
+ | //위에 문장 이상하면 고쳐주세요. 원문: | ||
private final Ingredient inputA; | private final Ingredient inputA; | ||
private final Ingredient inputB; | private final Ingredient inputB; |
ko_kr/tutorial/recipe_type.txt · Last modified: 2021/03/01 05:35 by 127.0.0.1