Diary of a Tinker

This commit is contained in:
mDiyo committed 2013-02-02 01:48:55 -08:00
1 parent b89fbce46f
commit e844381eda
41 files changed
+1537 -55

No files matched your search

@@ -0,0 +1,22 @@
package tinker.tconstruct.container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import tinker.common.IPattern;
public class SlotPattern extends Slot
{
public SlotPattern(IInventory builder, int par3, int par4, int par5)
{
super(builder, par3, par4, par5);
}
/**
* Check if the stack is a valid item for this slot. Always true beside for the armor slots.
*/
public boolean isItemValid(ItemStack stack)
{
return stack.getItem() instanceof IPattern;
}
}