public class ShapedRecipes extends IForgeRegistryEntry.Impl<IRecipe> implements IShapedRecipe
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
group |
int |
recipeHeight |
NonNullList<Ingredient> |
recipeItems |
private ItemStack |
recipeOutput |
int |
recipeWidth |
delegate
Constructor and Description |
---|
ShapedRecipes(java.lang.String group,
int width,
int height,
NonNullList<Ingredient> ingredients,
ItemStack result) |
Modifier and Type | Method and Description |
---|---|
boolean |
canFit(int width,
int height) |
private boolean |
checkMatch(InventoryCrafting p_77573_1_,
int p_77573_2_,
int p_77573_3_,
boolean p_77573_4_) |
static ShapedRecipes |
deserialize(com.google.gson.JsonObject p_193362_0_) |
static Ingredient |
deserializeIngredient(com.google.gson.JsonElement p_193361_0_) |
private static NonNullList<Ingredient> |
deserializeIngredients(java.lang.String[] p_192402_0_,
java.util.Map<java.lang.String,Ingredient> p_192402_1_,
int p_192402_2_,
int p_192402_3_) |
static ItemStack |
deserializeItem(com.google.gson.JsonObject p_192405_0_,
boolean useCount) |
private static java.util.Map<java.lang.String,Ingredient> |
deserializeKey(com.google.gson.JsonObject p_192408_0_) |
private static int |
firstNonSpace(java.lang.String str) |
ItemStack |
getCraftingResult(InventoryCrafting inv) |
java.lang.String |
getGroup() |
int |
getHeight() |
NonNullList<Ingredient> |
getIngredients() |
int |
getRecipeHeight() |
ItemStack |
getRecipeOutput() |
int |
getRecipeWidth() |
NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting inv) |
int |
getWidth() |
private static int |
lastNonSpace(java.lang.String str) |
boolean |
matches(InventoryCrafting inv,
World worldIn) |
private static java.lang.String[] |
patternFromJson(com.google.gson.JsonArray p_192407_0_) |
(package private) static java.lang.String[] |
shrink(java.lang.String... p_194134_0_) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRegistryName, getRegistryType, setRegistryName
public final int recipeWidth
public final int recipeHeight
public final NonNullList<Ingredient> recipeItems
private final ItemStack recipeOutput
private final java.lang.String group
public ShapedRecipes(java.lang.String group, int width, int height, NonNullList<Ingredient> ingredients, ItemStack result)
public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems
in interface IRecipe
public NonNullList<Ingredient> getIngredients()
getIngredients
in interface IRecipe
public boolean matches(InventoryCrafting inv, World worldIn)
private boolean checkMatch(InventoryCrafting p_77573_1_, int p_77573_2_, int p_77573_3_, boolean p_77573_4_)
public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult
in interface IRecipe
public int getWidth()
public int getHeight()
public static ShapedRecipes deserialize(com.google.gson.JsonObject p_193362_0_)
private static NonNullList<Ingredient> deserializeIngredients(java.lang.String[] p_192402_0_, java.util.Map<java.lang.String,Ingredient> p_192402_1_, int p_192402_2_, int p_192402_3_)
static java.lang.String[] shrink(java.lang.String... p_194134_0_)
private static int firstNonSpace(java.lang.String str)
private static int lastNonSpace(java.lang.String str)
private static java.lang.String[] patternFromJson(com.google.gson.JsonArray p_192407_0_)
private static java.util.Map<java.lang.String,Ingredient> deserializeKey(com.google.gson.JsonObject p_192408_0_)
public static Ingredient deserializeIngredient(@Nullable com.google.gson.JsonElement p_193361_0_)
public static ItemStack deserializeItem(com.google.gson.JsonObject p_192405_0_, boolean useCount)
public int getRecipeWidth()
getRecipeWidth
in interface IShapedRecipe
public int getRecipeHeight()
getRecipeHeight
in interface IShapedRecipe