mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Add wildcard support to more recipes
Added wildcard for: - AdvancedmachineInput - InfusionInput - PressurizedInput
This commit is contained in:
1 parent
077d6fe34e
commit
9efd716ea0
4 files changed
+36
No files matched your search
@@ -8,6 +8,7 @@ import mekanism.common.util.StackUtils;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.NonNullList;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
/**
|
||||
* An infusion input, containing the type of and amount of infuse the operation requires, as well as the input ItemStack.
|
||||
@@ -94,4 +95,9 @@ public class InfusionInput extends MachineInput<InfusionInput>
|
||||
{
|
||||
return other instanceof InfusionInput;
|
||||
}
|
||||
|
||||
public InfusionInput wildCopy()
|
||||
{
|
||||
return new InfusionInput(infuse, new ItemStack(inputStack.getItem(), inputStack.getCount(), OreDictionary.WILDCARD_VALUE));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user