public abstract class SingleItemRecipe extends java.lang.Object implements IRecipe<IInventory>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
SingleItemRecipe.Serializer<T extends SingleItemRecipe> |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.lang.String |
group |
protected ResourceLocation |
id |
protected Ingredient |
ingredient |
protected ItemStack |
result |
| コンストラクタと説明 |
|---|
SingleItemRecipe(IRecipeType<?> type,
IRecipeSerializer<?> serializer,
ResourceLocation id,
java.lang.String group,
Ingredient ingredient,
ItemStack result) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canFit(int width,
int height)
Used to determine if this recipe can fit in a grid of the given width/height
|
ItemStack |
getCraftingResult(IInventory inv)
Returns an Item that is the result of this recipe
|
java.lang.String |
getGroup()
Recipes with equal group are combined into one button in the recipe book
|
ResourceLocation |
getId() |
NonNullList<Ingredient> |
getIngredients() |
ItemStack |
getRecipeOutput()
Get the result of this recipe, usually for display purposes (e.g. recipe book).
|
IRecipeSerializer<?> |
getSerializer() |
IRecipeType<?> |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIcon, getRemainingItems, isDynamic, matchesprotected final Ingredient ingredient
protected final ItemStack result
protected final ResourceLocation id
protected final java.lang.String group
public SingleItemRecipe(IRecipeType<?> type, IRecipeSerializer<?> serializer, ResourceLocation id, java.lang.String group, Ingredient ingredient, ItemStack result)
public IRecipeType<?> getType()
getType インタフェース内 IRecipe<IInventory>public IRecipeSerializer<?> getSerializer()
getSerializer インタフェース内 IRecipe<IInventory>public ResourceLocation getId()
getId インタフェース内 IRecipe<IInventory>public java.lang.String getGroup()
getGroup インタフェース内 IRecipe<IInventory>public ItemStack getRecipeOutput()
getRecipeOutput インタフェース内 IRecipe<IInventory>public NonNullList<Ingredient> getIngredients()
getIngredients インタフェース内 IRecipe<IInventory>public boolean canFit(int width,
int height)
canFit インタフェース内 IRecipe<IInventory>public ItemStack getCraftingResult(IInventory inv)
getCraftingResult インタフェース内 IRecipe<IInventory>