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:42] – [Adding the Block] namutree0345ko_kr:tutorial:recipe_type [2021/03/01 05:35] (current) – external edit 127.0.0.1
Line 45: Line 45:
 </code> </code>
  
-===== Creating the Recipe Class ===== +===== 레시피 클래스 생성 ===== 
-Now we will do the most fun part of this page, creating the recipe class.+이제 이 페이지에서 **가장 재미있는!!** 부분입니다. 레시피 클래스를 만들어 봅시다. 
 +==== 모양이 있는 레시피 클래스 생성 ==== 
 +모양이 있는 레시피는 특정 슬롯이나 패턴에 아이템이 있어야 하는 레시피 유형입니다. 그것은 제작대 레시피같은 그리드 방식의 레시피에 대부분 사용됩니다.
  
-==== Creating the Shaped Recipe Class ==== +Recipe 인터페이스에서는 Inventory 클래스를 형식 매개 변수로 사용합니다어떤 레시피를 위해 인벤토리Any inventory that contains the ingredients
-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 class as a type parameter. 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.1613569367.txt.gz · Last modified: 2021/02/17 13:42 by namutree0345