Search in sources :

Example 1 with ContainerCrashedAlienProbe

use of stevekung.mods.moreplanets.module.planets.diona.inventory.ContainerCrashedAlienProbe in project MorePlanets by SteveKunG.

the class GuiHandlerMP method getServerGuiElement.

@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
    EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);
    TileEntity tile = world.getTileEntity(new BlockPos(x, y, z));
    if (playerBase == null) {
        return null;
    }
    if (tile != null) {
        if (tile instanceof TileEntityRocketCrusher) {
            return new ContainerRocketCrusher(player.inventory, (TileEntityRocketCrusher) tile);
        } else if (tile instanceof TileEntitySpaceWarpPadFull) {
            return new ContainerSpaceWarpPad(player.inventory, (TileEntitySpaceWarpPadFull) tile);
        } else if (tile instanceof TileEntityDarkEnergyReceiver) {
            return new ContainerDarkEnergyReceiver(player.inventory, (TileEntityDarkEnergyReceiver) tile);
        } else if (tile instanceof TileEntityNuclearWasteGenerator) {
            return new ContainerNuclearWasteGenerator(player.inventory, (TileEntityNuclearWasteGenerator) tile);
        } else if (tile instanceof TileEntityDarkEnergyStorageCluster) {
            return new ContainerDarkEnergyStorage(player.inventory, (TileEntityDarkEnergyStorageCluster) tile);
        } else if (tile instanceof TileEntityNuclearWasteStorageCluster) {
            return new ContainerNuclearWasteEnergyStorage(player.inventory, (TileEntityNuclearWasteStorageCluster) tile);
        } else if (tile instanceof TileEntityDarkEnergyGenerator) {
            return new ContainerDarkEnergyGenerator(player.inventory, (TileEntityDarkEnergyGenerator) tile);
        } else if (tile instanceof TileEntityCrashedAlienProbe) {
            return new ContainerCrashedAlienProbe(player.inventory, (TileEntityCrashedAlienProbe) tile, player);
        } else if (tile instanceof TileEntityBlackHoleStorage) {
            return new ContainerBlackHoleStorage(player.inventory, (TileEntityBlackHoleStorage) tile);
        } else if (tile instanceof TileEntityShieldGenerator) {
            return new ContainerShieldGenerator(player.inventory, (TileEntityShieldGenerator) tile);
        }
        return tile;
    }
    return null;
}
Also used : TileEntityNuclearWasteGenerator(stevekung.mods.moreplanets.module.planets.nibiru.tileentity.TileEntityNuclearWasteGenerator) ContainerDarkEnergyGenerator(stevekung.mods.moreplanets.module.planets.diona.inventory.ContainerDarkEnergyGenerator) TileEntity(net.minecraft.tileentity.TileEntity) ContainerNuclearWasteGenerator(stevekung.mods.moreplanets.module.planets.nibiru.inventory.ContainerNuclearWasteGenerator) EntityPlayerMP(net.minecraft.entity.player.EntityPlayerMP) BlockPos(net.minecraft.util.math.BlockPos) TileEntityDarkEnergyGenerator(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDarkEnergyGenerator) ContainerCrashedAlienProbe(stevekung.mods.moreplanets.module.planets.diona.inventory.ContainerCrashedAlienProbe) TileEntityCrashedAlienProbe(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityCrashedAlienProbe)

Aggregations

EntityPlayerMP (net.minecraft.entity.player.EntityPlayerMP)1 TileEntity (net.minecraft.tileentity.TileEntity)1 BlockPos (net.minecraft.util.math.BlockPos)1 ContainerCrashedAlienProbe (stevekung.mods.moreplanets.module.planets.diona.inventory.ContainerCrashedAlienProbe)1 ContainerDarkEnergyGenerator (stevekung.mods.moreplanets.module.planets.diona.inventory.ContainerDarkEnergyGenerator)1 TileEntityCrashedAlienProbe (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityCrashedAlienProbe)1 TileEntityDarkEnergyGenerator (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDarkEnergyGenerator)1 ContainerNuclearWasteGenerator (stevekung.mods.moreplanets.module.planets.nibiru.inventory.ContainerNuclearWasteGenerator)1 TileEntityNuclearWasteGenerator (stevekung.mods.moreplanets.module.planets.nibiru.tileentity.TileEntityNuclearWasteGenerator)1