mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
35 lines
888 B
Java
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;
|
|
}
|
|
}
|