public class AssemblyRecipeImpl extends AssemblyRecipe
| Modifier and Type | Class and Description |
|---|---|
static class |
AssemblyRecipeImpl.Serializer<T extends AssemblyRecipe> |
AssemblyRecipe.AssemblyProgramTypePneumaticCraftRecipe.DummyIInventory| Constructor and Description |
|---|
AssemblyRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient input,
net.minecraft.item.ItemStack output,
AssemblyRecipe.AssemblyProgramType program) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<net.minecraft.util.ResourceLocation,AssemblyRecipeImpl> |
calculateAssemblyChain(java.util.Collection<AssemblyRecipe> drillRecipes,
java.util.Collection<AssemblyRecipe> laserRecipes)
Work out which recipes can be chained.
|
net.minecraft.item.crafting.Ingredient |
getInput()
Get the input ingredient.
|
int |
getInputAmount()
Get the number of items required/used
|
net.minecraft.item.ItemStack |
getOutput()
Get the output item for this recipe.
|
AssemblyRecipe.AssemblyProgramType |
getProgramType()
Get the program required.
|
net.minecraft.item.crafting.IRecipeSerializer<?> |
getSerializer() |
net.minecraft.item.crafting.IRecipeType<?> |
getType() |
boolean |
matches(net.minecraft.item.ItemStack stack)
Check if the given stack is a valid input for this recipe.
|
void |
write(net.minecraft.network.PacketBuffer buffer)
Writes this recipe to a PacketBuffer.
|
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matchespublic AssemblyRecipeImpl(net.minecraft.util.ResourceLocation id,
@Nonnull
net.minecraft.item.crafting.Ingredient input,
@Nonnull
net.minecraft.item.ItemStack output,
AssemblyRecipe.AssemblyProgramType program)
public net.minecraft.item.crafting.Ingredient getInput()
AssemblyRecipegetInput in class AssemblyRecipepublic int getInputAmount()
AssemblyRecipegetInputAmount in class AssemblyRecipepublic net.minecraft.item.ItemStack getOutput()
AssemblyRecipegetOutput in class AssemblyRecipepublic AssemblyRecipe.AssemblyProgramType getProgramType()
AssemblyRecipegetProgramType in class AssemblyRecipepublic boolean matches(net.minecraft.item.ItemStack stack)
AssemblyRecipematches in class AssemblyRecipestack - input stackpublic 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 static java.util.Map<net.minecraft.util.ResourceLocation,AssemblyRecipeImpl> calculateAssemblyChain(java.util.Collection<AssemblyRecipe> drillRecipes, java.util.Collection<AssemblyRecipe> laserRecipes)
drillRecipes - all known drill recipeslaserRecipes - all known laser recipes