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_HEIGHT
Deprecated.
|
static int |
MAX_CRAFT_GRID_WIDTH
Deprecated.
|
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) |
protected boolean |
checkMatch(InventoryCrafting inv,
int startX,
int startY,
boolean mirror)
|
static ShapedOreRecipe |
factory(JsonContext context,
JsonObject json) |
ItemStack |
getCraftingResult(InventoryCrafting var1) |
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) |
ShapedOreRecipe |
setMirrored(boolean mirror) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRemainingItems, isDynamic
getRegistryName, 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 IRecipe
public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public 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 IShapedRecipe
public static ShapedOreRecipe factory(JsonContext context, JsonObject json)