public abstract class ExplosionCraftingRecipe extends PneumaticCraftRecipe
PneumaticCraftRecipe.DummyIInventory| Modifier | Constructor and Description |
|---|---|
protected |
ExplosionCraftingRecipe(net.minecraft.util.ResourceLocation id) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getAmount()
Get the number of items which will be taken from the input to create the output item.
|
abstract net.minecraft.item.crafting.Ingredient |
getInput()
Get the input ingredient for this recipe.
|
abstract int |
getLossRate()
Get the recipe loss rate, as a percentage.
|
abstract java.util.List<net.minecraft.item.ItemStack> |
getOutputs()
Get a list of the output item(s).
|
abstract boolean |
matches(net.minecraft.item.ItemStack stack)
Check if the given itemstack matches this recipe.
|
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matches, writeprotected ExplosionCraftingRecipe(net.minecraft.util.ResourceLocation id)
public abstract net.minecraft.item.crafting.Ingredient getInput()
public abstract int getAmount()
This should be the number of items in any itemstack returned from getInput().getMatchedStacks(); for
basic Ingredient ingredients, this will always be 1, but custom ingredient subclasses could return a
large number.
public abstract java.util.List<net.minecraft.item.ItemStack> getOutputs()
public abstract int getLossRate()
public abstract boolean matches(net.minecraft.item.ItemStack stack)
getAmount() items in the stack.stack - the itemstack to check