public class ShapelessOreRecipe extends IForgeRegistryEntry.Impl<IRecipe> implements IRecipe
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description |
|---|---|
protected ResourceLocation |
group |
protected NonNullList<Ingredient> |
input |
protected boolean |
isSimple |
protected ItemStack |
output |
delegate| Constructor and Description |
|---|
ShapelessOreRecipe(ResourceLocation group,
Block result,
java.lang.Object... recipe) |
ShapelessOreRecipe(ResourceLocation group,
Item result,
java.lang.Object... recipe) |
ShapelessOreRecipe(ResourceLocation group,
ItemStack result,
java.lang.Object... recipe) |
ShapelessOreRecipe(ResourceLocation group,
NonNullList<Ingredient> input,
ItemStack result) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFit(int width,
int height)
Used to determine if this recipe can fit in a grid of the given width/height
|
static ShapelessOreRecipe |
factory(JsonContext context,
JsonObject json) |
ItemStack |
getCraftingResult(InventoryCrafting var1)
Returns an Item that is the result of this recipe
|
java.lang.String |
getGroup() |
NonNullList<Ingredient> |
getIngredients() |
ItemStack |
getRecipeOutput() |
boolean |
matches(InventoryCrafting inv,
World world)
Used to check if a recipe matches current crafting inventory
|
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRemainingItems, isDynamicgetRegistryName, getRegistryType, setRegistryNameprotected ItemStack output
protected NonNullList<Ingredient> input
protected ResourceLocation group
protected boolean isSimple
public ShapelessOreRecipe(ResourceLocation group, Block result, java.lang.Object... recipe)
public ShapelessOreRecipe(ResourceLocation group, Item result, java.lang.Object... recipe)
public ShapelessOreRecipe(ResourceLocation group, NonNullList<Ingredient> input, ItemStack result)
public ShapelessOreRecipe(ResourceLocation group, ItemStack result, java.lang.Object... recipe)
public ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipepublic ItemStack getCraftingResult(InventoryCrafting var1)
getCraftingResult in interface IRecipepublic boolean matches(InventoryCrafting inv, World world)
public NonNullList<Ingredient> getIngredients()
getIngredients in interface IRecipepublic boolean canFit(int width,
int height)
public static ShapelessOreRecipe factory(JsonContext context, JsonObject json)