Initial commit

This commit is contained in:
brandon3055 committed 2014-06-18 13:03:29 +10:00
1 parent 7bca2b681b
commit 58a892f6f5
226 files changed
+12362

No files matched your search

@@ -0,0 +1,47 @@
package draconicevolution.common.container;
import draconicevolution.client.interfaces.SlotItemValid;
import draconicevolution.common.tileentities.TileGrinder;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class ContainerGrinder extends Container {
private TileGrinder tile;
public ContainerGrinder(InventoryPlayer invPlayer, TileGrinder tile) {
this.tile = tile;
for (int x = 0; x < 9; x++) {
addSlotToContainer(new Slot(invPlayer, x, 8 + 18 * x, 138));
}
for (int y = 0; y < 3; y++) {
for (int x = 0; x < 9; x++) {
addSlotToContainer(new Slot(invPlayer, x + y * 9 + 9, 8 + 18 * x, 80 + y * 18));
}
}
addSlotToContainer(new SlotItemValid(tile, 0, 64, 35, true));
}
@Override
public boolean canInteractWith(EntityPlayer player)
{
return tile.isUseableByPlayer(player);
}
@Override
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
{
return null;
}
public TileGrinder getTileWC(){
return tile;
}
}