User Tools

Site Tools


ko_kr:tutorial:recipe_type

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ko_kr:tutorial:recipe_type [2021/02/17 13:43] – [Creating the Recipe Class] namutree0345ko_kr:tutorial:recipe_type [2021/03/01 05:35] (current) – external edit 127.0.0.1
Line 47: Line 47:
 ===== 레시피 클래스 생성 ===== ===== 레시피 클래스 생성 =====
 이제 이 페이지에서 **가장 재미있는!!** 부분입니다. 레시피 클래스를 만들어 봅시다. 이제 이 페이지에서 **가장 재미있는!!** 부분입니다. 레시피 클래스를 만들어 봅시다.
-==== Creating the Shaped Recipe Class ==== +==== 모양이 있는 레시피 클래스 생성 ==== 
-Shaped recipes are a recipe type that requires an item to be in that specific slot or patternIt is mostly used on +모양이 있는 레시피는 특정 슬롯이나 패턴에 아이템이 있어야 하는 레시피 유형입니다그것은 제작대 레시피같은 그리드 방식의 레시피에 대부분 사용됩니다.
-grid recipes such as Crafting Recipe.+
  
-The Recipe interface expects an Inventory class as a type parameter. Any inventory that contains the ingredients+Recipe 인터페이스에서는 Inventory 클래스를 형식 매개 변수로 사용합니다어떤 레시피를 위해 인벤토리Any inventory that contains the ingredients
 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<CraftingInventory> { public class TestRecipe implements Recipe<CraftingInventory> {
- //You can add as much inputs as you want here+ //원하는 입력을 넣을 수 있습니다
- //It is important to always use Ingredient, so you can support tags.+        //Ingredient를 사용하면 태그를 지원 할 수 있어서 사용하는 것이 중요합니다. 
 + //위에 문장 이상하면 고쳐주세요. 원문: It is important to always use Ingredient, so you can support tags.
  private final Ingredient inputA;  private final Ingredient inputA;
  private final Ingredient inputB;  private final Ingredient inputB;
ko_kr/tutorial/recipe_type.1613569422.txt.gz · Last modified: 2021/02/17 13:43 by namutree0345