use of net.dyeo.teleporter.client.gui.inventory.GuiTeleporter in project VanillaTeleporter by dyeo.
the class GuiHandler method getClientGuiElement.
@Override
public Object getClientGuiElement(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 GuiTeleporter(player.inventory, tileentityteleporter);
}
}
return null;
}
Aggregations