public abstract class MachineRecipe
extends java.lang.Object
implements net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
Modifier and Type | Field and Description |
---|---|
protected int |
consumptionOnStart |
protected int |
consumptionPerTick |
protected net.minecraft.util.ResourceLocation |
location |
protected net.minecraft.item.crafting.IRecipeSerializer<?> |
serializer |
protected int |
totalTime |
protected net.minecraft.item.crafting.IRecipeType<?> |
type |
Constructor and Description |
---|
MachineRecipe(net.minecraft.util.ResourceLocation location,
net.minecraft.item.crafting.IRecipeType<?> type,
net.minecraft.item.crafting.IRecipeSerializer<?> serializer,
net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> ingredients,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> outputs,
int totalTime,
int consumptionOnStart,
int consumptionPerTick) |
Modifier and Type | Method and Description |
---|---|
boolean |
canFit(int width,
int height)
Is only needed for crafting recipes
|
int |
getConsumptionOnStart() |
int |
getConsumptionPerTick() |
net.minecraft.item.ItemStack |
getCraftingResult(net.minecraft.inventory.IInventory inventory) |
net.minecraft.util.ResourceLocation |
getId() |
abstract net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> |
getIngredients() |
abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getOutput(net.minecraft.inventory.IInventory inventory) |
net.minecraft.item.ItemStack |
getRecipeOutput() |
net.minecraft.item.crafting.IRecipeSerializer<?> |
getSerializer() |
int |
getTotalTime() |
net.minecraft.item.crafting.IRecipeType<?> |
getType() |
abstract boolean |
matches(net.minecraft.inventory.IInventory inventory,
net.minecraft.world.World world) |
protected final net.minecraft.util.ResourceLocation location
protected final net.minecraft.item.crafting.IRecipeType<?> type
protected final net.minecraft.item.crafting.IRecipeSerializer<?> serializer
protected final int totalTime
protected final int consumptionOnStart
protected final int consumptionPerTick
public MachineRecipe(net.minecraft.util.ResourceLocation location, net.minecraft.item.crafting.IRecipeType<?> type, net.minecraft.item.crafting.IRecipeSerializer<?> serializer, net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> ingredients, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> outputs, int totalTime, int consumptionOnStart, int consumptionPerTick)
public abstract boolean matches(net.minecraft.inventory.IInventory inventory, net.minecraft.world.World world)
matches
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getOutput(net.minecraft.inventory.IInventory inventory)
public abstract net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> getIngredients()
getIngredients
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public int getTotalTime()
public int getConsumptionOnStart()
public int getConsumptionPerTick()
public net.minecraft.util.ResourceLocation getId()
getId
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public net.minecraft.item.crafting.IRecipeType<?> getType()
getType
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public net.minecraft.item.crafting.IRecipeSerializer<?> getSerializer()
getSerializer
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 getRecipeOutput()
getRecipeOutput
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>
public net.minecraft.item.ItemStack getCraftingResult(net.minecraft.inventory.IInventory inventory)
getCraftingResult
in interface net.minecraft.item.crafting.IRecipe<net.minecraft.inventory.IInventory>