use of stevekung.mods.moreplanets.module.planets.diona.inventory.ContainerDarkEnergyGenerator 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;
}
Aggregations