public class ShapedRecipes extends IForgeRegistryEntry.Impl<IRecipe> implements IShapedRecipe
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
int |
recipeHeight |
NonNullList<Ingredient> |
recipeItems |
int |
recipeWidth |
delegate
Constructor and Description |
---|
ShapedRecipes(java.lang.String group,
int width,
int height,
NonNullList<Ingredient> ingredients,
ItemStack result) |
Modifier and Type | Method and Description |
---|---|
boolean |
canFit(int width,
int height) |
static ShapedRecipes |
deserialize(com.google.gson.JsonObject p_193362_0_) |
static Ingredient |
deserializeIngredient(com.google.gson.JsonElement p_193361_0_) |
static ItemStack |
deserializeItem(com.google.gson.JsonObject p_192405_0_,
boolean useCount) |
ItemStack |
getCraftingResult(InventoryCrafting inv) |
java.lang.String |
getGroup() |
int |
getHeight() |
NonNullList<Ingredient> |
getIngredients() |
int |
getRecipeHeight() |
ItemStack |
getRecipeOutput() |
int |
getRecipeWidth() |
NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting inv) |
int |
getWidth() |
boolean |
matches(InventoryCrafting inv,
World worldIn) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRegistryName, getRegistryType, setRegistryName
public final int recipeWidth
public final int recipeHeight
public final NonNullList<Ingredient> recipeItems
public ShapedRecipes(java.lang.String group, int width, int height, NonNullList<Ingredient> ingredients, ItemStack result)
public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems
in interface IRecipe
public NonNullList<Ingredient> getIngredients()
getIngredients
in interface IRecipe
public boolean matches(InventoryCrafting inv, World worldIn)
public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult
in interface IRecipe
public int getWidth()
public int getHeight()
public static ShapedRecipes deserialize(com.google.gson.JsonObject p_193362_0_)
public static Ingredient deserializeIngredient(@Nullable com.google.gson.JsonElement p_193361_0_)
public static ItemStack deserializeItem(com.google.gson.JsonObject p_192405_0_, boolean useCount)
public int getRecipeWidth()
getRecipeWidth
in interface IShapedRecipe
public int getRecipeHeight()
getRecipeHeight
in interface IShapedRecipe