mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
33 lines
939 B
Java
33 lines
939 B
Java
package tconstruct.smeltery;
|
|
|
|
import mantle.blocks.abstracts.InventoryLogic;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.world.World;
|
|
import cpw.mods.fml.common.network.IGuiHandler;
|
|
|
|
public class SmelteryProxyCommon implements IGuiHandler
|
|
{
|
|
public static final int smelteryGuiID = 7;
|
|
|
|
@Override
|
|
public Object getServerGuiElement (int ID, EntityPlayer player, World world, int x, int y, int z)
|
|
{
|
|
TileEntity tile = world.getTileEntity(x, y, z);
|
|
if (tile != null && tile instanceof InventoryLogic)
|
|
{
|
|
return ((InventoryLogic) tile).getGuiContainer(player.inventory, world, x, y, z);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Object getClientGuiElement (int ID, EntityPlayer player, World world, int x, int y, int z)
|
|
{
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
}
|