public class ExplosionCraftingRecipeImpl extends ExplosionCraftingRecipe
| Modifier and Type | Class and Description |
|---|---|
static class |
ExplosionCraftingRecipeImpl.Serializer<T extends ExplosionCraftingRecipe> |
PneumaticCraftRecipe.DummyIInventory| Constructor and Description |
|---|
ExplosionCraftingRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient input,
int lossRate,
net.minecraft.item.ItemStack... outputs) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAmount()
Get the number of items which will be taken from the input to create the output item.
|
java.lang.String |
getGroup() |
net.minecraft.item.crafting.Ingredient |
getInput()
Get the input ingredient for this recipe.
|
int |
getLossRate()
Get the recipe loss rate, as a percentage.
|
java.util.List<net.minecraft.item.ItemStack> |
getOutputs()
Get a list of the output item(s).
|
net.minecraft.item.crafting.IRecipeSerializer<?> |
getSerializer() |
net.minecraft.item.ItemStack |
getToastSymbol() |
net.minecraft.item.crafting.IRecipeType<?> |
getType() |
boolean |
matches(net.minecraft.item.ItemStack stack)
Check if the given itemstack matches this recipe.
|
static net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
tryToCraft(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack) |
void |
write(net.minecraft.network.PacketBuffer buffer)
Writes this recipe to a PacketBuffer.
|
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matchespublic ExplosionCraftingRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient input,
int lossRate,
net.minecraft.item.ItemStack... outputs)
public net.minecraft.item.crafting.Ingredient getInput()
ExplosionCraftingRecipegetInput in class ExplosionCraftingRecipepublic int getAmount()
ExplosionCraftingRecipe
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.
getAmount in class ExplosionCraftingRecipepublic java.util.List<net.minecraft.item.ItemStack> getOutputs()
ExplosionCraftingRecipegetOutputs in class ExplosionCraftingRecipepublic int getLossRate()
ExplosionCraftingRecipegetLossRate in class ExplosionCraftingRecipepublic boolean matches(net.minecraft.item.ItemStack stack)
ExplosionCraftingRecipeExplosionCraftingRecipe.getAmount() items in the stack.matches in class ExplosionCraftingRecipestack - the itemstack to checkpublic static net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> tryToCraft(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack)
public void write(net.minecraft.network.PacketBuffer buffer)
PneumaticCraftRecipewrite in class PneumaticCraftRecipebuffer - The buffer to write to.public net.minecraft.item.crafting.IRecipeSerializer<?> getSerializer()
public net.minecraft.item.crafting.IRecipeType<?> getType()
public java.lang.String getGroup()
public net.minecraft.item.ItemStack getToastSymbol()