Initial test of Gradle (not working yet)

This commit is contained in:
Sunstrike committed 2013-11-21 16:13:51 +00:00
1 parent e8b7378831
commit cb87c836c8
519 files changed
+351

No files matched your search

@@ -0,0 +1,32 @@
package tconstruct.inventory;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
/**
*
* @author fuj1n
*
*/
public class SlotBlocksOnly extends Slot
{
public SlotBlocksOnly(IInventory par1iInventory, int par2, int par3, int par4)
{
super(par1iInventory, par2, par3, par4);
}
public boolean isItemValid (ItemStack par1ItemStack)
{
return par1ItemStack.getItem() instanceof ItemBlock;
}
@Override
public int getSlotStackLimit ()
{
return 1;
}
}