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, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRegistryName, getRegistryType, setRegistryNamepublic 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 IRecipepublic NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems in interface IRecipepublic NonNullList<Ingredient> getIngredients()
getIngredients in interface IRecipepublic boolean matches(InventoryCrafting inv, World worldIn)
public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult in interface IRecipepublic 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 IShapedRecipepublic int getRecipeHeight()
getRecipeHeight in interface IShapedRecipe