public abstract class FuelRecipe
extends java.lang.Object
implements net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
Modifier and Type | Class and Description |
---|---|
static class |
FuelRecipe.Serializer<T extends FuelRecipe> |
Modifier and Type | Field and Description |
---|---|
protected int |
fuel |
protected java.lang.String |
group |
protected net.minecraft.util.ResourceLocation |
id |
protected net.minecraft.item.crafting.Ingredient |
ingredient |
Constructor and Description |
---|
FuelRecipe(net.minecraft.util.ResourceLocation id,
java.lang.String group,
net.minecraft.item.crafting.Ingredient ingredient,
int fuel) |
Modifier and Type | Method and Description |
---|---|
boolean |
canFit(int width,
int height) |
net.minecraft.item.ItemStack |
getCraftingResult(net.minecraft.inventory.IInventory inv) |
int |
getFuel() |
java.lang.String |
getGroup() |
net.minecraft.util.ResourceLocation |
getId() |
net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> |
getIngredients() |
net.minecraft.item.ItemStack |
getRecipeOutput() |
boolean |
matches(net.minecraft.inventory.IInventory inv,
net.minecraft.world.World world) |
protected final net.minecraft.item.crafting.Ingredient ingredient
protected final int fuel
protected final net.minecraft.util.ResourceLocation id
protected final java.lang.String group
public FuelRecipe(net.minecraft.util.ResourceLocation id, java.lang.String group, net.minecraft.item.crafting.Ingredient ingredient, int fuel)
public net.minecraft.util.ResourceLocation getId()
getId
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public java.lang.String getGroup()
getGroup
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public net.minecraft.item.ItemStack getRecipeOutput()
getRecipeOutput
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> getIngredients()
getIngredients
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public boolean canFit(int width, int height)
canFit
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public net.minecraft.item.ItemStack getCraftingResult(net.minecraft.inventory.IInventory inv)
getCraftingResult
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public boolean matches(net.minecraft.inventory.IInventory inv, net.minecraft.world.World world)
matches
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public int getFuel()