public class ShapedOreRecipe extends IForgeRegistryEntry.Impl<IRecipe> implements IShapedRecipe
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description | 
|---|---|
| protected ResourceLocation | group | 
| protected int | height | 
| protected NonNullList<Ingredient> | input | 
| static int | MAX_CRAFT_GRID_HEIGHTDeprecated.  | 
| static int | MAX_CRAFT_GRID_WIDTHDeprecated.  | 
| protected boolean | mirrored | 
| protected ItemStack | output | 
| protected int | width | 
delegate| Constructor and Description | 
|---|
| ShapedOreRecipe(ResourceLocation group,
               Block result,
               java.lang.Object... recipe) | 
| ShapedOreRecipe(ResourceLocation group,
               Item result,
               java.lang.Object... recipe) | 
| ShapedOreRecipe(ResourceLocation group,
               ItemStack result,
               CraftingHelper.ShapedPrimer primer) | 
| ShapedOreRecipe(ResourceLocation group,
               ItemStack result,
               java.lang.Object... recipe) | 
| 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 | 
| protected boolean | checkMatch(InventoryCrafting inv,
          int startX,
          int startY,
          boolean mirror) | 
| static ShapedOreRecipe | factory(JsonContext context,
       JsonObject json) | 
| ItemStack | getCraftingResult(InventoryCrafting var1)Returns an Item that is the result of this recipe | 
| java.lang.String | getGroup() | 
| int | getHeight()Deprecated.  | 
| NonNullList<Ingredient> | getIngredients() | 
| int | getRecipeHeight() | 
| ItemStack | getRecipeOutput() | 
| int | getRecipeWidth() | 
| int | getWidth()Deprecated.  | 
| boolean | matches(InventoryCrafting inv,
       World world)Used to check if a recipe matches current crafting inventory | 
| ShapedOreRecipe | setMirrored(boolean mirror) | 
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRemainingItems, isDynamicgetRegistryName, getRegistryType, setRegistryName@Deprecated public static final int MAX_CRAFT_GRID_WIDTH
@Deprecated public static final int MAX_CRAFT_GRID_HEIGHT
protected ItemStack output
protected NonNullList<Ingredient> input
protected int width
protected int height
protected boolean mirrored
protected ResourceLocation group
public ShapedOreRecipe(ResourceLocation group, Block result, java.lang.Object... recipe)
public ShapedOreRecipe(ResourceLocation group, Item result, java.lang.Object... recipe)
public ShapedOreRecipe(ResourceLocation group, ItemStack result, java.lang.Object... recipe)
public ShapedOreRecipe(ResourceLocation group, ItemStack result, CraftingHelper.ShapedPrimer primer)
public ItemStack getCraftingResult(InventoryCrafting var1)
getCraftingResult in interface IRecipepublic ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipepublic boolean matches(InventoryCrafting inv, World world)
protected boolean checkMatch(InventoryCrafting inv, int startX, int startY, boolean mirror)
public ShapedOreRecipe setMirrored(boolean mirror)
public NonNullList<Ingredient> getIngredients()
getIngredients in interface IRecipe@Deprecated public int getWidth()
public int getRecipeWidth()
getRecipeWidth in interface IShapedRecipe@Deprecated public int getHeight()
public int getRecipeHeight()
getRecipeHeight in interface IShapedRecipepublic boolean canFit(int width,
                      int height)
public static ShapedOreRecipe factory(JsonContext context, JsonObject json)