mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 04:22:26 +00:00
Move the directory structure around to a more conventional one and start out on the 1.7 update.
3797 errors. We have a long way to go.
This commit is contained in:
1 parent
3a0de87a09
commit
ab47724473
1245 files changed
+1764
-5953
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package mekanism.api;
|
||||
|
||||
import mekanism.api.gas.Gas;
|
||||
import mekanism.common.util.StackUtils;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class AdvancedInput
|
||||
{
|
||||
public ItemStack itemStack;
|
||||
|
||||
public Gas gasType;
|
||||
|
||||
public AdvancedInput(ItemStack item, Gas gas)
|
||||
{
|
||||
itemStack = item;
|
||||
gasType = gas;
|
||||
}
|
||||
|
||||
public boolean isValid()
|
||||
{
|
||||
return itemStack != null && gasType != null;
|
||||
}
|
||||
|
||||
public boolean matches(AdvancedInput input)
|
||||
{
|
||||
return StackUtils.equalsWildcard(itemStack, input.itemStack) && input.itemStack.stackSize >= itemStack.stackSize;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user