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 p_194133_1_,
int p_194133_2_) |
protected boolean |
checkMatch(InventoryCrafting inv,
int startX,
int startY,
boolean mirror)
|
static ShapedOreRecipe |
factory(JsonContext context,
com.google.gson.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
@Nonnull 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, @Nonnull ItemStack result, java.lang.Object... recipe)
public ShapedOreRecipe(ResourceLocation group, @Nonnull ItemStack result, CraftingHelper.ShapedPrimer primer)
@Nonnull public ItemStack getCraftingResult(@Nonnull InventoryCrafting var1)
getCraftingResult
in interface IRecipe
@Nonnull public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public boolean matches(@Nonnull InventoryCrafting inv, @Nonnull World world)
protected boolean checkMatch(InventoryCrafting inv, int startX, int startY, boolean mirror)
public ShapedOreRecipe setMirrored(boolean mirror)
@Nonnull 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 boolean canFit(int p_194133_1_, int p_194133_2_)
public static ShapedOreRecipe factory(JsonContext context, com.google.gson.JsonObject json)