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, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRegistryName, getRegistryType, setRegistryName
private 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 IRecipe
public NonNullList<Ingredient> getIngredients()
getIngredients
in interface IRecipe
public NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems
in interface IRecipe
public boolean matches(InventoryCrafting inv, World worldIn)
public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult
in interface IRecipe
public static ShapelessRecipes deserialize(com.google.gson.JsonObject json)
private static NonNullList<Ingredient> deserializeIngredients(com.google.gson.JsonArray array)