public abstract class SingleItemRecipe extends java.lang.Object implements IRecipe<IInventory>
Modifier and Type | Class and Description |
---|---|
static class |
SingleItemRecipe.Serializer<T extends SingleItemRecipe> |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
group |
protected ResourceLocation |
id |
protected Ingredient |
ingredient |
protected ItemStack |
result |
private IRecipeSerializer<?> |
serializer |
private IRecipeType<?> |
type |
Constructor and Description |
---|
SingleItemRecipe(IRecipeType<?> type,
IRecipeSerializer<?> serializer,
ResourceLocation id,
java.lang.String group,
Ingredient ingredient,
ItemStack result) |
Modifier and Type | Method and Description |
---|---|
boolean |
canFit(int width,
int height) |
ItemStack |
getCraftingResult(IInventory inv) |
java.lang.String |
getGroup() |
ResourceLocation |
getId() |
NonNullList<Ingredient> |
getIngredients() |
ItemStack |
getRecipeOutput() |
IRecipeSerializer<?> |
getSerializer() |
IRecipeType<?> |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIcon, getRemainingItems, isDynamic, matches
protected final Ingredient ingredient
protected final ItemStack result
private final IRecipeType<?> type
private final IRecipeSerializer<?> serializer
protected final ResourceLocation id
protected final java.lang.String group
public SingleItemRecipe(IRecipeType<?> type, IRecipeSerializer<?> serializer, ResourceLocation id, java.lang.String group, Ingredient ingredient, ItemStack result)
public IRecipeType<?> getType()
getType
in interface IRecipe<IInventory>
public IRecipeSerializer<?> getSerializer()
getSerializer
in interface IRecipe<IInventory>
public ResourceLocation getId()
getId
in interface IRecipe<IInventory>
public java.lang.String getGroup()
getGroup
in interface IRecipe<IInventory>
public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe<IInventory>
public NonNullList<Ingredient> getIngredients()
getIngredients
in interface IRecipe<IInventory>
public boolean canFit(int width, int height)
canFit
in interface IRecipe<IInventory>
public ItemStack getCraftingResult(IInventory inv)
getCraftingResult
in interface IRecipe<IInventory>