Files
TinkersConstruct/tconstruct/blocks/logic/CraftingStationLogic.java
T
Arthur Uzulin 10ee101a40 Fixed more of the crafting station
Fixed the last slot of the crafting station not dropping anything.
2013-09-01 01:04:12 +10:00

35 lines
888 B
Java

package tconstruct.blocks.logic;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.world.World;
import tconstruct.inventory.CraftingStationContainer;
import tconstruct.library.blocks.InventoryLogic;
public class CraftingStationLogic extends InventoryLogic
{
public CraftingStationLogic()
{
super(11); //9 for crafting, 1 for output, 1 for plans
}
@Override
public Container getGuiContainer (InventoryPlayer inventoryplayer, World world, int x, int y, int z)
{
return new CraftingStationContainer(inventoryplayer, this, x, y, z);
}
@Override
protected String getDefaultName ()
{
return "crafters.craftingstation";
}
public boolean canDropInventorySlot (int slot)
{
if (slot == 0)
return false;
return true;
}
}