public class ShapelessRecipes extends IForgeRegistryEntry.Impl<IRecipe> implements IRecipe
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
group |
private boolean |
isSimple |
NonNullList<Ingredient> |
recipeItems |
private ItemStack |
recipeOutput |
delegate| Constructor and Description |
|---|
ShapelessRecipes(java.lang.String group,
ItemStack output,
NonNullList<Ingredient> ingredients) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFit(int width,
int height) |
static ShapelessRecipes |
deserialize(com.google.gson.JsonObject json) |
private static NonNullList<Ingredient> |
deserializeIngredients(com.google.gson.JsonArray array) |
ItemStack |
getCraftingResult(InventoryCrafting inv) |
java.lang.String |
getGroup() |
NonNullList<Ingredient> |
getIngredients() |
ItemStack |
getRecipeOutput() |
NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting inv) |
boolean |
matches(InventoryCrafting inv,
World worldIn) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRegistryName, getRegistryType, setRegistryNameprivate final ItemStack recipeOutput
public final NonNullList<Ingredient> recipeItems
private final java.lang.String group
private final boolean isSimple
public ShapelessRecipes(java.lang.String group,
ItemStack output,
NonNullList<Ingredient> ingredients)
public ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipepublic NonNullList<Ingredient> getIngredients()
getIngredients in interface IRecipepublic NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems in interface IRecipepublic boolean matches(InventoryCrafting inv, World worldIn)
public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult in interface IRecipepublic static ShapelessRecipes deserialize(com.google.gson.JsonObject json)
private static NonNullList<Ingredient> deserializeIngredients(com.google.gson.JsonArray array)