use of micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerLaserTurret in project Galacticraft by micdoodle8.
the class VenusModule method getGuiElement.
@Override
public Object getGuiElement(Side side, int ID, EntityPlayer player, World world, int x, int y, int z) {
BlockPos pos = new BlockPos(x, y, z);
TileEntity tile = world.getTileEntity(pos);
if (ID == GuiIdsPlanets.MACHINE_VENUS) {
if (tile instanceof TileEntityGeothermalGenerator) {
return new ContainerGeothermal(player.inventory, (TileEntityGeothermalGenerator) tile);
} else if (tile instanceof TileEntityCrashedProbe) {
return new ContainerCrashedProbe(player.inventory, (TileEntityCrashedProbe) tile);
} else if (tile instanceof TileEntitySolarArrayController) {
return new ContainerSolarArrayController(player.inventory, (TileEntitySolarArrayController) tile);
} else if (tile instanceof TileEntityLaserTurret) {
return new ContainerLaserTurret(player.inventory, (TileEntityLaserTurret) tile);
}
}
return null;
}
Aggregations