Search in sources :

Example 1 with ContainerLaserTurret

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;
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) ContainerGeothermal(micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerGeothermal) ContainerCrashedProbe(micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerCrashedProbe) BlockPos(net.minecraft.util.math.BlockPos) ContainerLaserTurret(micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerLaserTurret) ContainerSolarArrayController(micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerSolarArrayController)

Aggregations

ContainerCrashedProbe (micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerCrashedProbe)1 ContainerGeothermal (micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerGeothermal)1 ContainerLaserTurret (micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerLaserTurret)1 ContainerSolarArrayController (micdoodle8.mods.galacticraft.planets.venus.inventory.ContainerSolarArrayController)1 TileEntity (net.minecraft.tileentity.TileEntity)1 BlockPos (net.minecraft.util.math.BlockPos)1