Search in sources :

Example 6 with TileEntityNuclearWasteGenerator

use of stevekung.mods.moreplanets.module.planets.nibiru.tileentity.TileEntityNuclearWasteGenerator 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

TileEntityNuclearWasteGenerator (stevekung.mods.moreplanets.module.planets.nibiru.tileentity.TileEntityNuclearWasteGenerator)6 TileEntity (net.minecraft.tileentity.TileEntity)3 TileEntityDarkEnergyGenerator (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDarkEnergyGenerator)3 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)2 Block (net.minecraft.block.Block)1 IBlockState (net.minecraft.block.state.IBlockState)1 EntityPlayerMP (net.minecraft.entity.player.EntityPlayerMP)1 ItemStack (net.minecraft.item.ItemStack)1 BlockPos (net.minecraft.util.math.BlockPos)1 BlockDummy (stevekung.mods.moreplanets.blocks.BlockDummy)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 TileEntityDarkEnergyCore (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDarkEnergyCore)1 ContainerNuclearWasteGenerator (stevekung.mods.moreplanets.module.planets.nibiru.inventory.ContainerNuclearWasteGenerator)1 PacketSimpleMP (stevekung.mods.moreplanets.network.PacketSimpleMP)1