use of net.dyeo.teleporter.inventory.ContainerTeleporter in project VanillaTeleporter by dyeo.
the class GuiHandler method getServerGuiElement.
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
if (ID == GUI_ID_TELEPORTER) {
BlockPos pos = new BlockPos(x, y, z);
TileEntity tileentity = world.getTileEntity(pos);
if (tileentity instanceof TileEntityTeleporter) {
TileEntityTeleporter tileentityteleporter = (TileEntityTeleporter) tileentity;
return new ContainerTeleporter(player.inventory, tileentityteleporter);
}
}
return null;
}
Aggregations