mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
1707 lines
44 KiB
Java
1707 lines
44 KiB
Java
package com.hbm.handler;
|
|
|
|
import com.hbm.blocks.ModBlocks;
|
|
import com.hbm.inventory.container.*;
|
|
import com.hbm.inventory.gui.*;
|
|
import com.hbm.inventory.inv.InventoryLeadBox;
|
|
import com.hbm.items.ModItems;
|
|
import com.hbm.tileentity.bomb.*;
|
|
import com.hbm.tileentity.machine.*;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.world.World;
|
|
import cpw.mods.fml.common.network.IGuiHandler;
|
|
|
|
public class GUIHandler implements IGuiHandler {
|
|
|
|
@Override
|
|
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
|
TileEntity entity = world.getTileEntity(x, y, z);
|
|
|
|
if(entity != null ) {
|
|
switch(ID)
|
|
{
|
|
case ModBlocks.guiID_test_difurnace:
|
|
{
|
|
if(entity instanceof TileEntityDiFurnace)
|
|
{
|
|
return new ContainerDiFurnace(player.inventory, (TileEntityDiFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_test_nuke:
|
|
{
|
|
if(entity instanceof TileEntityTestNuke)
|
|
{
|
|
return new ContainerTestNuke(player.inventory, (TileEntityTestNuke) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_gadget:
|
|
{
|
|
if(entity instanceof TileEntityNukeGadget)
|
|
{
|
|
return new ContainerNukeGadget(player.inventory, (TileEntityNukeGadget) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_boy:
|
|
{
|
|
if(entity instanceof TileEntityNukeBoy)
|
|
{
|
|
return new ContainerNukeBoy(player.inventory, (TileEntityNukeBoy) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_centrifuge:
|
|
{
|
|
if(entity instanceof TileEntityMachineCentrifuge)
|
|
{
|
|
return new ContainerCentrifuge(player.inventory, (TileEntityMachineCentrifuge) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_man:
|
|
{
|
|
if(entity instanceof TileEntityNukeMan)
|
|
{
|
|
return new ContainerNukeMan(player.inventory, (TileEntityNukeMan) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_uf6_tank:
|
|
{
|
|
if(entity instanceof TileEntityMachineUF6Tank)
|
|
{
|
|
return new ContainerUF6Tank(player.inventory, (TileEntityMachineUF6Tank) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_puf6_tank:
|
|
{
|
|
if(entity instanceof TileEntityMachinePuF6Tank)
|
|
{
|
|
return new ContainerPuF6Tank(player.inventory, (TileEntityMachinePuF6Tank) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_reactor:
|
|
{
|
|
if(entity instanceof TileEntityMachineReactor)
|
|
{
|
|
return new ContainerReactor(player.inventory, (TileEntityMachineReactor) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_bomb_multi:
|
|
{
|
|
if(entity instanceof TileEntityBombMulti)
|
|
{
|
|
return new ContainerBombMulti(player.inventory, (TileEntityBombMulti) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_mike:
|
|
{
|
|
if(entity instanceof TileEntityNukeMike)
|
|
{
|
|
return new ContainerNukeMike(player.inventory, (TileEntityNukeMike) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_tsar:
|
|
{
|
|
if(entity instanceof TileEntityNukeTsar)
|
|
{
|
|
return new ContainerNukeTsar(player.inventory, (TileEntityNukeTsar) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_furnace:
|
|
{
|
|
if(entity instanceof TileEntityNukeFurnace)
|
|
{
|
|
return new ContainerNukeFurnace(player.inventory, (TileEntityNukeFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_rtg_furnace:
|
|
{
|
|
if(entity instanceof TileEntityRtgFurnace)
|
|
{
|
|
return new ContainerRtgFurnace(player.inventory, (TileEntityRtgFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_generator:
|
|
{
|
|
if(entity instanceof TileEntityMachineGenerator)
|
|
{
|
|
return new ContainerGenerator(player.inventory, (TileEntityMachineGenerator) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_electric_furnace:
|
|
{
|
|
if(entity instanceof TileEntityMachineElectricFurnace)
|
|
{
|
|
return new ContainerElectricFurnace(player.inventory, (TileEntityMachineElectricFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_fleija:
|
|
{
|
|
if(entity instanceof TileEntityNukeFleija)
|
|
{
|
|
return new ContainerNukeFleija(player.inventory, (TileEntityNukeFleija) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_deuterium:
|
|
{
|
|
if(entity instanceof TileEntityMachineDeuterium)
|
|
{
|
|
return new ContainerMachineDeuterium(player.inventory, (TileEntityMachineDeuterium) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_battery:
|
|
{
|
|
if(entity instanceof TileEntityMachineBattery)
|
|
{
|
|
return new ContainerMachineBattery(player.inventory, (TileEntityMachineBattery) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_coal:
|
|
{
|
|
if(entity instanceof TileEntityMachineCoal)
|
|
{
|
|
return new ContainerMachineCoal(player.inventory, (TileEntityMachineCoal) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_prototype:
|
|
{
|
|
if(entity instanceof TileEntityNukePrototype)
|
|
{
|
|
return new ContainerNukePrototype(player.inventory, (TileEntityNukePrototype) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_launch_pad:
|
|
{
|
|
if(entity instanceof TileEntityLaunchPad)
|
|
{
|
|
return new ContainerLaunchPadTier1(player.inventory, (TileEntityLaunchPad) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_factory_titanium:
|
|
{
|
|
if(entity instanceof TileEntityCoreTitanium)
|
|
{
|
|
return new ContainerCoreTitanium(player.inventory, (TileEntityCoreTitanium) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_factory_advanced:
|
|
{
|
|
if(entity instanceof TileEntityCoreAdvanced)
|
|
{
|
|
return new ContainerCoreAdvanced(player.inventory, (TileEntityCoreAdvanced) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_reactor_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityMachineReactorLarge)
|
|
{
|
|
return new ContainerReactorMultiblock(player.inventory, (TileEntityMachineReactorLarge) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_fusion_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityFusionMultiblock)
|
|
{
|
|
return new ContainerFusionMultiblock(player.inventory, (TileEntityFusionMultiblock) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_converter_he_rf:
|
|
{
|
|
if(entity instanceof TileEntityConverterHeRf)
|
|
{
|
|
return new ContainerConverterHeRf(player.inventory, (TileEntityConverterHeRf) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_converter_rf_he:
|
|
{
|
|
if(entity instanceof TileEntityConverterRfHe)
|
|
{
|
|
return new ContainerConverterRfHe(player.inventory, (TileEntityConverterRfHe) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_schrabidium_transmutator:
|
|
{
|
|
if(entity instanceof TileEntityMachineSchrabidiumTransmutator)
|
|
{
|
|
return new ContainerMachineSchrabidiumTransmutator(player.inventory, (TileEntityMachineSchrabidiumTransmutator) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_diesel:
|
|
{
|
|
if(entity instanceof TileEntityMachineDiesel)
|
|
{
|
|
return new ContainerMachineDiesel(player.inventory, (TileEntityMachineDiesel) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_watz_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityWatzCore)
|
|
{
|
|
return new ContainerWatzCore(player.inventory, (TileEntityWatzCore) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_shredder:
|
|
{
|
|
if(entity instanceof TileEntityMachineShredder)
|
|
{
|
|
return new ContainerMachineShredder(player.inventory, (TileEntityMachineShredder) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_combine_factory:
|
|
{
|
|
if(entity instanceof TileEntityMachineCMBFactory)
|
|
{
|
|
return new ContainerMachineCMBFactory(player.inventory, (TileEntityMachineCMBFactory) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_fwatz_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityFWatzCore)
|
|
{
|
|
return new ContainerFWatzCore(player.inventory, (TileEntityFWatzCore) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_teleporter:
|
|
{
|
|
if(entity instanceof TileEntityMachineTeleporter)
|
|
{
|
|
return new ContainerMachineTeleporter(player.inventory, (TileEntityMachineTeleporter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_custom:
|
|
{
|
|
if(entity instanceof TileEntityNukeCustom)
|
|
{
|
|
return new ContainerNukeCustom(player.inventory, (TileEntityNukeCustom) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_reix_mainframe:
|
|
{
|
|
if(entity instanceof TileEntityReiXMainframe)
|
|
{
|
|
return new ContainerReiXMainframe(player.inventory, (TileEntityReiXMainframe) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_industrial_generator:
|
|
{
|
|
if(entity instanceof TileEntityMachineIGenerator)
|
|
{
|
|
return new ContainerIGenerator(player.inventory, (TileEntityMachineIGenerator) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_rtg:
|
|
{
|
|
if(entity instanceof TileEntityMachineRTG)
|
|
{
|
|
return new ContainerMachineRTG(player.inventory, (TileEntityMachineRTG) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_cyclotron:
|
|
{
|
|
if(entity instanceof TileEntityMachineCyclotron)
|
|
{
|
|
return new ContainerMachineCyclotron(player.inventory, (TileEntityMachineCyclotron) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_well:
|
|
{
|
|
if(entity instanceof TileEntityMachineOilWell)
|
|
{
|
|
return new ContainerMachineOilWell(player.inventory, (TileEntityMachineOilWell) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_refinery:
|
|
{
|
|
if(entity instanceof TileEntityMachineRefinery)
|
|
{
|
|
return new ContainerMachineRefinery(player.inventory, (TileEntityMachineRefinery) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_flare:
|
|
{
|
|
if(entity instanceof TileEntityMachineGasFlare)
|
|
{
|
|
return new ContainerMachineGasFlare(player.inventory, (TileEntityMachineGasFlare) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_drill:
|
|
{
|
|
if(entity instanceof TileEntityMachineMiningDrill)
|
|
{
|
|
return new ContainerMachineMiningDrill(player.inventory, (TileEntityMachineMiningDrill) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_assembler:
|
|
{
|
|
if(entity instanceof TileEntityMachineAssembler)
|
|
{
|
|
return new ContainerMachineAssembler(player.inventory, (TileEntityMachineAssembler) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_chemplant:
|
|
{
|
|
if(entity instanceof TileEntityMachineChemplant)
|
|
{
|
|
return new ContainerMachineChemplant(player.inventory, (TileEntityMachineChemplant) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_fluidtank:
|
|
{
|
|
if(entity instanceof TileEntityMachineFluidTank)
|
|
{
|
|
return new ContainerMachineFluidTank(player.inventory, (TileEntityMachineFluidTank) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_pumpjack:
|
|
{
|
|
if(entity instanceof TileEntityMachinePumpjack)
|
|
{
|
|
return new ContainerMachinePumpjack(player.inventory, (TileEntityMachinePumpjack) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_turbofan:
|
|
{
|
|
if(entity instanceof TileEntityMachineTurbofan)
|
|
{
|
|
return new ContainerMachineTurbofan(player.inventory, (TileEntityMachineTurbofan) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_crate_iron:
|
|
{
|
|
if(entity instanceof TileEntityCrateIron)
|
|
{
|
|
return new ContainerCrateIron(player.inventory, (TileEntityCrateIron) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_crate_steel:
|
|
{
|
|
if(entity instanceof TileEntityCrateSteel)
|
|
{
|
|
return new ContainerCrateSteel(player.inventory, (TileEntityCrateSteel) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_press:
|
|
{
|
|
if(entity instanceof TileEntityMachinePress)
|
|
{
|
|
return new ContainerMachinePress(player.inventory, (TileEntityMachinePress) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_ams_limiter:
|
|
{
|
|
if(entity instanceof TileEntityAMSLimiter)
|
|
{
|
|
return new ContainerAMSLimiter(player.inventory, (TileEntityAMSLimiter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_ams_emitter:
|
|
{
|
|
if(entity instanceof TileEntityAMSEmitter)
|
|
{
|
|
return new ContainerAMSEmitter(player.inventory, (TileEntityAMSEmitter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_ams_base:
|
|
{
|
|
if(entity instanceof TileEntityAMSBase)
|
|
{
|
|
return new ContainerAMSBase(player.inventory, (TileEntityAMSBase) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_siren:
|
|
{
|
|
if(entity instanceof TileEntityMachineSiren)
|
|
{
|
|
return new ContainerMachineSiren(player.inventory, (TileEntityMachineSiren) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radgen:
|
|
{
|
|
if(entity instanceof TileEntityMachineRadGen)
|
|
{
|
|
return new ContainerMachineRadGen(player.inventory, (TileEntityMachineRadGen) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radar:
|
|
{
|
|
if(entity instanceof TileEntityMachineRadar)
|
|
{
|
|
return new ContainerMachineRadar(player.inventory, (TileEntityMachineRadar) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_solinium:
|
|
{
|
|
if(entity instanceof TileEntityNukeSolinium)
|
|
{
|
|
return new ContainerNukeSolinium(player.inventory, (TileEntityNukeSolinium) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_n2:
|
|
{
|
|
if(entity instanceof TileEntityNukeN2)
|
|
{
|
|
return new ContainerNukeN2(player.inventory, (TileEntityNukeN2) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_cel_prime:
|
|
{
|
|
if(entity instanceof TileEntityCelPrime)
|
|
{
|
|
return new ContainerCelPrime(player.inventory, (TileEntityCelPrime) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_selenium:
|
|
{
|
|
if(entity instanceof TileEntityMachineSeleniumEngine)
|
|
{
|
|
return new ContainerMachineSelenium(player.inventory, (TileEntityMachineSeleniumEngine) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_satlinker:
|
|
{
|
|
if(entity instanceof TileEntityMachineSatLinker)
|
|
{
|
|
return new ContainerMachineSatLinker(player.inventory, (TileEntityMachineSatLinker) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_reactor_small:
|
|
{
|
|
if(entity instanceof TileEntityMachineReactorSmall)
|
|
{
|
|
return new ContainerMachineReactorSmall(player.inventory, (TileEntityMachineReactorSmall) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radiobox:
|
|
{
|
|
if(entity instanceof TileEntityRadiobox)
|
|
{
|
|
return new ContainerRadiobox(player.inventory, (TileEntityRadiobox) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_telelinker:
|
|
{
|
|
if(entity instanceof TileEntityMachineTeleLinker)
|
|
{
|
|
return new ContainerMachineTeleLinker(player.inventory, (TileEntityMachineTeleLinker) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_keyforge:
|
|
{
|
|
if(entity instanceof TileEntityMachineKeyForge)
|
|
{
|
|
return new ContainerMachineKeyForge(player.inventory, (TileEntityMachineKeyForge) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radiorec:
|
|
{
|
|
if(entity instanceof TileEntityRadioRec)
|
|
{
|
|
return new ContainerRadioRec(player.inventory, (TileEntityRadioRec) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_safe:
|
|
{
|
|
if(entity instanceof TileEntitySafe)
|
|
{
|
|
return new ContainerSafe(player.inventory, (TileEntitySafe) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_gascent:
|
|
{
|
|
if(entity instanceof TileEntityMachineGasCent)
|
|
{
|
|
return new ContainerMachineGasCent(player.inventory, (TileEntityMachineGasCent) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_boiler:
|
|
{
|
|
if(entity instanceof TileEntityMachineBoiler)
|
|
{
|
|
return new ContainerMachineBoiler(player.inventory, (TileEntityMachineBoiler) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_boiler_electric:
|
|
{
|
|
if(entity instanceof TileEntityMachineBoilerElectric)
|
|
{
|
|
return new ContainerMachineBoilerElectric(player.inventory, (TileEntityMachineBoilerElectric) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_turbine:
|
|
{
|
|
if(entity instanceof TileEntityMachineTurbine)
|
|
{
|
|
return new ContainerMachineTurbine(player.inventory, (TileEntityMachineTurbine) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_forcefield:
|
|
{
|
|
if(entity instanceof TileEntityForceField)
|
|
{
|
|
return new ContainerForceField(player.inventory, (TileEntityForceField) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_n45:
|
|
{
|
|
if(entity instanceof TileEntityNukeN45)
|
|
{
|
|
return new ContainerNukeN45(player.inventory, (TileEntityNukeN45) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_controller:
|
|
{
|
|
if(entity instanceof TileEntityReactorControl)
|
|
{
|
|
return new ContainerReactorControl(player.inventory, (TileEntityReactorControl) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_waste_drum:
|
|
{
|
|
if(entity instanceof TileEntityWasteDrum)
|
|
{
|
|
return new ContainerWasteDrum(player.inventory, (TileEntityWasteDrum) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dock:
|
|
{
|
|
if(entity instanceof TileEntityMachineSatDock)
|
|
{
|
|
return new ContainerSatDock(player.inventory, (TileEntityMachineSatDock) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_epress:
|
|
{
|
|
if(entity instanceof TileEntityMachineEPress)
|
|
{
|
|
return new ContainerMachineEPress(player.inventory, (TileEntityMachineEPress) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_arc:
|
|
{
|
|
if(entity instanceof TileEntityMachineArcFurnace)
|
|
{
|
|
return new ContainerMachineArcFurnace(player.inventory, (TileEntityMachineArcFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_missile_assembly:
|
|
{
|
|
if(entity instanceof TileEntityMachineMissileAssembly)
|
|
{
|
|
return new ContainerMachineMissileAssembly(player.inventory, (TileEntityMachineMissileAssembly) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_compact_launcher:
|
|
{
|
|
if(entity instanceof TileEntityCompactLauncher)
|
|
{
|
|
return new ContainerCompactLauncher(player.inventory, (TileEntityCompactLauncher) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_launch_table:
|
|
{
|
|
if(entity instanceof TileEntityLaunchTable)
|
|
{
|
|
return new ContainerLaunchTable(player.inventory, (TileEntityLaunchTable) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_soyuz_launcher:
|
|
{
|
|
if(entity instanceof TileEntitySoyuzLauncher)
|
|
{
|
|
return new ContainerSoyuzLauncher(player.inventory, (TileEntitySoyuzLauncher) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_emitter:
|
|
{
|
|
if(entity instanceof TileEntityCoreEmitter)
|
|
{
|
|
return new ContainerCoreEmitter(player.inventory, (TileEntityCoreEmitter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_receiver:
|
|
{
|
|
if(entity instanceof TileEntityCoreReceiver)
|
|
{
|
|
return new ContainerCoreReceiver(player.inventory, (TileEntityCoreReceiver) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_injector:
|
|
{
|
|
if(entity instanceof TileEntityCoreInjector)
|
|
{
|
|
return new ContainerCoreInjector(player.inventory, (TileEntityCoreInjector) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_core:
|
|
{
|
|
if(entity instanceof TileEntityCore)
|
|
{
|
|
return new ContainerCore(player.inventory, (TileEntityCore) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_stabilizer:
|
|
{
|
|
if(entity instanceof TileEntityCoreStabilizer)
|
|
{
|
|
return new ContainerCoreStabilizer(player.inventory, (TileEntityCoreStabilizer) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_barrel:
|
|
{
|
|
if(entity instanceof TileEntityBarrel)
|
|
{
|
|
return new ContainerBarrel(player.inventory, (TileEntityBarrel) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_capsule:
|
|
{
|
|
if(entity instanceof TileEntitySoyuzCapsule)
|
|
{
|
|
return new ContainerSoyuzCapsule(player.inventory, (TileEntitySoyuzCapsule) entity);
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
} else {
|
|
//NON-TE CONTAINERS
|
|
|
|
switch(ID)
|
|
{
|
|
case ModItems.guiID_item_box:
|
|
return new ContainerLeadBox(player, player.inventory, new InventoryLeadBox(player.getHeldItem()));
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
|
TileEntity entity = world.getTileEntity(x, y, z);
|
|
if(entity != null)
|
|
{
|
|
switch(ID)
|
|
{
|
|
case ModBlocks.guiID_test_difurnace:
|
|
{
|
|
if(entity instanceof TileEntityDiFurnace)
|
|
{
|
|
return new GUITestDiFurnace(player.inventory, (TileEntityDiFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_test_nuke:
|
|
{
|
|
if(entity instanceof TileEntityTestNuke)
|
|
{
|
|
return new GUITestNuke(player.inventory, (TileEntityTestNuke) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_gadget:
|
|
{
|
|
if(entity instanceof TileEntityNukeGadget)
|
|
{
|
|
return new GUINukeGadget(player.inventory, (TileEntityNukeGadget) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_boy:
|
|
{
|
|
if(entity instanceof TileEntityNukeBoy)
|
|
{
|
|
return new GUINukeBoy(player.inventory, (TileEntityNukeBoy) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_centrifuge:
|
|
{
|
|
if(entity instanceof TileEntityMachineCentrifuge)
|
|
{
|
|
return new GUIMachineCentrifuge(player.inventory, (TileEntityMachineCentrifuge) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_man:
|
|
{
|
|
if(entity instanceof TileEntityNukeMan)
|
|
{
|
|
return new GUINukeMan(player.inventory, (TileEntityNukeMan) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_uf6_tank:
|
|
{
|
|
if(entity instanceof TileEntityMachineUF6Tank)
|
|
{
|
|
return new GUIMachineUF6Tank(player.inventory, (TileEntityMachineUF6Tank) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_puf6_tank:
|
|
{
|
|
if(entity instanceof TileEntityMachinePuF6Tank)
|
|
{
|
|
return new GUIMachinePuF6Tank(player.inventory, (TileEntityMachinePuF6Tank) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_reactor:
|
|
{
|
|
if(entity instanceof TileEntityMachineReactor)
|
|
{
|
|
return new GUIMachineReactor(player.inventory, (TileEntityMachineReactor) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_bomb_multi:
|
|
{
|
|
if(entity instanceof TileEntityBombMulti)
|
|
{
|
|
return new GUIBombMulti(player.inventory, (TileEntityBombMulti) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_mike:
|
|
{
|
|
if(entity instanceof TileEntityNukeMike)
|
|
{
|
|
return new GUINukeMike(player.inventory, (TileEntityNukeMike) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_tsar:
|
|
{
|
|
if(entity instanceof TileEntityNukeTsar)
|
|
{
|
|
return new GUINukeTsar(player.inventory, (TileEntityNukeTsar) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_furnace:
|
|
{
|
|
if(entity instanceof TileEntityNukeFurnace)
|
|
{
|
|
return new GUINukeFurnace(player.inventory, (TileEntityNukeFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_rtg_furnace:
|
|
{
|
|
if(entity instanceof TileEntityRtgFurnace)
|
|
{
|
|
return new GUIRtgFurnace(player.inventory, (TileEntityRtgFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_generator:
|
|
{
|
|
if(entity instanceof TileEntityMachineGenerator)
|
|
{
|
|
return new GUIMachineGenerator(player.inventory, (TileEntityMachineGenerator) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_electric_furnace:
|
|
{
|
|
if(entity instanceof TileEntityMachineElectricFurnace)
|
|
{
|
|
return new GUIMachineElectricFurnace(player.inventory, (TileEntityMachineElectricFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_fleija:
|
|
{
|
|
if(entity instanceof TileEntityNukeFleija)
|
|
{
|
|
return new GUINukeFleija(player.inventory, (TileEntityNukeFleija) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_deuterium:
|
|
{
|
|
if(entity instanceof TileEntityMachineDeuterium)
|
|
{
|
|
return new GUIMachineDeuterium(player.inventory, (TileEntityMachineDeuterium) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_battery:
|
|
{
|
|
if(entity instanceof TileEntityMachineBattery)
|
|
{
|
|
return new GUIMachineBattery(player.inventory, (TileEntityMachineBattery) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_coal:
|
|
{
|
|
if(entity instanceof TileEntityMachineCoal)
|
|
{
|
|
return new GUIMachineCoal(player.inventory, (TileEntityMachineCoal) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_prototype:
|
|
{
|
|
if(entity instanceof TileEntityNukePrototype)
|
|
{
|
|
return new GUINukePrototype(player.inventory, (TileEntityNukePrototype) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_launch_pad:
|
|
{
|
|
if(entity instanceof TileEntityLaunchPad)
|
|
{
|
|
return new GUILaunchPadTier1(player.inventory, (TileEntityLaunchPad) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_factory_titanium:
|
|
{
|
|
if(entity instanceof TileEntityCoreTitanium)
|
|
{
|
|
return new GUICoreTitanium(player.inventory, (TileEntityCoreTitanium) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_factory_advanced:
|
|
{
|
|
if(entity instanceof TileEntityCoreAdvanced)
|
|
{
|
|
return new GUICoreAdvanced(player.inventory, (TileEntityCoreAdvanced) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_reactor_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityMachineReactorLarge)
|
|
{
|
|
return new GUIReactorMultiblock(player.inventory, (TileEntityMachineReactorLarge) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_fusion_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityFusionMultiblock)
|
|
{
|
|
return new GUIFusionMultiblock(player.inventory, (TileEntityFusionMultiblock) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_converter_he_rf:
|
|
{
|
|
if(entity instanceof TileEntityConverterHeRf)
|
|
{
|
|
return new GUIConverterHeRf(player.inventory, (TileEntityConverterHeRf) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_converter_rf_he:
|
|
{
|
|
if(entity instanceof TileEntityConverterRfHe)
|
|
{
|
|
return new GUIConverterRfHe(player.inventory, (TileEntityConverterRfHe) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_schrabidium_transmutator:
|
|
{
|
|
if(entity instanceof TileEntityMachineSchrabidiumTransmutator)
|
|
{
|
|
return new GUIMachineSchrabidiumTransmutator(player.inventory, (TileEntityMachineSchrabidiumTransmutator) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_diesel:
|
|
{
|
|
if(entity instanceof TileEntityMachineDiesel)
|
|
{
|
|
return new GUIMachineDiesel(player.inventory, (TileEntityMachineDiesel) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_watz_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityWatzCore)
|
|
{
|
|
return new GUIWatzCore(player.inventory, (TileEntityWatzCore) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_shredder:
|
|
{
|
|
if(entity instanceof TileEntityMachineShredder)
|
|
{
|
|
return new GUIMachineShredder(player.inventory, (TileEntityMachineShredder) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_combine_factory:
|
|
{
|
|
if(entity instanceof TileEntityMachineCMBFactory)
|
|
{
|
|
return new GUIMachineCMBFactory(player.inventory, (TileEntityMachineCMBFactory) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_fwatz_multiblock:
|
|
{
|
|
if(entity instanceof TileEntityFWatzCore)
|
|
{
|
|
return new GUIFWatzCore(player.inventory, (TileEntityFWatzCore) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_teleporter:
|
|
{
|
|
if(entity instanceof TileEntityMachineTeleporter)
|
|
{
|
|
return new GUIMachineTeleporter(player.inventory, (TileEntityMachineTeleporter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_custom:
|
|
{
|
|
if(entity instanceof TileEntityNukeCustom)
|
|
{
|
|
return new GUINukeCustom(player.inventory, (TileEntityNukeCustom) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_reix_mainframe:
|
|
{
|
|
if(entity instanceof TileEntityReiXMainframe)
|
|
{
|
|
return new GUIReiXMainframe(player.inventory, (TileEntityReiXMainframe) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_industrial_generator:
|
|
{
|
|
if(entity instanceof TileEntityMachineIGenerator)
|
|
{
|
|
return new GUIIGenerator(player.inventory, (TileEntityMachineIGenerator) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_rtg:
|
|
{
|
|
if(entity instanceof TileEntityMachineRTG)
|
|
{
|
|
return new GUIMachineRTG(player.inventory, (TileEntityMachineRTG) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_cyclotron:
|
|
{
|
|
if(entity instanceof TileEntityMachineCyclotron)
|
|
{
|
|
return new GUIMachineCyclotron(player.inventory, (TileEntityMachineCyclotron) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_well:
|
|
{
|
|
if(entity instanceof TileEntityMachineOilWell)
|
|
{
|
|
return new GUIMachineOilWell(player.inventory, (TileEntityMachineOilWell) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_refinery:
|
|
{
|
|
if(entity instanceof TileEntityMachineRefinery)
|
|
{
|
|
return new GUIMachineRefinery(player.inventory, (TileEntityMachineRefinery) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_flare:
|
|
{
|
|
if(entity instanceof TileEntityMachineGasFlare)
|
|
{
|
|
return new GUIMachineGasFlare(player.inventory, (TileEntityMachineGasFlare) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_drill:
|
|
{
|
|
if(entity instanceof TileEntityMachineMiningDrill)
|
|
{
|
|
return new GUIMachineMiningDrill(player.inventory, (TileEntityMachineMiningDrill) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_assembler:
|
|
{
|
|
if(entity instanceof TileEntityMachineAssembler)
|
|
{
|
|
return new GUIMachineAssembler(player.inventory, (TileEntityMachineAssembler) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_chemplant:
|
|
{
|
|
if(entity instanceof TileEntityMachineChemplant)
|
|
{
|
|
return new GUIMachineChemplant(player.inventory, (TileEntityMachineChemplant) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_fluidtank:
|
|
{
|
|
if(entity instanceof TileEntityMachineFluidTank)
|
|
{
|
|
return new GUIMachineFluidTank(player.inventory, (TileEntityMachineFluidTank) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_pumpjack:
|
|
{
|
|
if(entity instanceof TileEntityMachinePumpjack)
|
|
{
|
|
return new GUIMachinePumpjack(player.inventory, (TileEntityMachinePumpjack) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_turbofan:
|
|
{
|
|
if(entity instanceof TileEntityMachineTurbofan)
|
|
{
|
|
return new GUIMachineTurbofan(player.inventory, (TileEntityMachineTurbofan) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_crate_iron:
|
|
{
|
|
if(entity instanceof TileEntityCrateIron)
|
|
{
|
|
return new GUICrateIron(player.inventory, (TileEntityCrateIron) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_crate_steel:
|
|
{
|
|
if(entity instanceof TileEntityCrateSteel)
|
|
{
|
|
return new GUICrateSteel(player.inventory, (TileEntityCrateSteel) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_press:
|
|
{
|
|
if(entity instanceof TileEntityMachinePress)
|
|
{
|
|
return new GUIMachinePress(player.inventory, (TileEntityMachinePress) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_ams_limiter:
|
|
{
|
|
if(entity instanceof TileEntityAMSLimiter)
|
|
{
|
|
return new GUIAMSLimiter(player.inventory, (TileEntityAMSLimiter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_ams_emitter:
|
|
{
|
|
if(entity instanceof TileEntityAMSEmitter)
|
|
{
|
|
return new GUIAMSEmitter(player.inventory, (TileEntityAMSEmitter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_ams_base:
|
|
{
|
|
if(entity instanceof TileEntityAMSBase)
|
|
{
|
|
return new GUIAMSBase(player.inventory, (TileEntityAMSBase) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_siren:
|
|
{
|
|
if(entity instanceof TileEntityMachineSiren)
|
|
{
|
|
return new GUIMachineSiren(player.inventory, (TileEntityMachineSiren) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radgen:
|
|
{
|
|
if(entity instanceof TileEntityMachineRadGen)
|
|
{
|
|
return new GUIMachineRadGen(player.inventory, (TileEntityMachineRadGen) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radar:
|
|
{
|
|
if(entity instanceof TileEntityMachineRadar)
|
|
{
|
|
return new GUIMachineRadar(player.inventory, (TileEntityMachineRadar) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_solinium:
|
|
{
|
|
if(entity instanceof TileEntityNukeSolinium)
|
|
{
|
|
return new GUINukeSolinium(player.inventory, (TileEntityNukeSolinium) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_n2:
|
|
{
|
|
if(entity instanceof TileEntityNukeN2)
|
|
{
|
|
return new GUINukeN2(player.inventory, (TileEntityNukeN2) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_cel_prime:
|
|
{
|
|
if(entity instanceof TileEntityCelPrime)
|
|
{
|
|
return new GUICelPrime(player.inventory, (TileEntityCelPrime) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_selenium:
|
|
{
|
|
if(entity instanceof TileEntityMachineSeleniumEngine)
|
|
{
|
|
return new GUIMachineSelenium(player.inventory, (TileEntityMachineSeleniumEngine) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_satlinker:
|
|
{
|
|
if(entity instanceof TileEntityMachineSatLinker)
|
|
{
|
|
return new GUIMachineSatLinker(player.inventory, (TileEntityMachineSatLinker) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_reactor_small:
|
|
{
|
|
if(entity instanceof TileEntityMachineReactorSmall)
|
|
{
|
|
return new GUIMachineReactorSmall(player.inventory, (TileEntityMachineReactorSmall) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radiobox:
|
|
{
|
|
if(entity instanceof TileEntityRadiobox)
|
|
{
|
|
return new GUIRadiobox(player.inventory, (TileEntityRadiobox) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_telelinker:
|
|
{
|
|
if(entity instanceof TileEntityMachineTeleLinker)
|
|
{
|
|
return new GUIMachineTeleLinker(player.inventory, (TileEntityMachineTeleLinker) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_keyforge:
|
|
{
|
|
if(entity instanceof TileEntityMachineKeyForge)
|
|
{
|
|
return new GUIMachineKeyForge(player.inventory, (TileEntityMachineKeyForge) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_radiorec:
|
|
{
|
|
if(entity instanceof TileEntityRadioRec)
|
|
{
|
|
return new GUIRadioRec(player.inventory, (TileEntityRadioRec) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_safe:
|
|
{
|
|
if(entity instanceof TileEntitySafe)
|
|
{
|
|
return new GUISafe(player.inventory, (TileEntitySafe) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_gascent:
|
|
{
|
|
if(entity instanceof TileEntityMachineGasCent)
|
|
{
|
|
return new GUIMachineGasCent(player.inventory, (TileEntityMachineGasCent) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_boiler:
|
|
{
|
|
if(entity instanceof TileEntityMachineBoiler)
|
|
{
|
|
return new GUIMachineBoiler(player.inventory, (TileEntityMachineBoiler) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_boiler_electric:
|
|
{
|
|
if(entity instanceof TileEntityMachineBoilerElectric)
|
|
{
|
|
return new GUIMachineBoilerElectric(player.inventory, (TileEntityMachineBoilerElectric) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_turbine:
|
|
{
|
|
if(entity instanceof TileEntityMachineTurbine)
|
|
{
|
|
return new GUIMachineTurbine(player.inventory, (TileEntityMachineTurbine) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_forcefield:
|
|
{
|
|
if(entity instanceof TileEntityForceField)
|
|
{
|
|
return new GUIForceField(player.inventory, (TileEntityForceField) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_nuke_n45:
|
|
{
|
|
if(entity instanceof TileEntityNukeN45)
|
|
{
|
|
return new GUINukeN45(player.inventory, (TileEntityNukeN45) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_controller:
|
|
{
|
|
if(entity instanceof TileEntityReactorControl)
|
|
{
|
|
return new GUIReactorControl(player.inventory, (TileEntityReactorControl) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_waste_drum:
|
|
{
|
|
if(entity instanceof TileEntityWasteDrum)
|
|
{
|
|
return new GUIWasteDrum(player.inventory, (TileEntityWasteDrum) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dock:
|
|
{
|
|
if(entity instanceof TileEntityMachineSatDock)
|
|
{
|
|
return new GUISatDock(player.inventory, (TileEntityMachineSatDock) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_epress:
|
|
{
|
|
if(entity instanceof TileEntityMachineEPress)
|
|
{
|
|
return new GUIMachineEPress(player.inventory, (TileEntityMachineEPress) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_machine_arc:
|
|
{
|
|
if(entity instanceof TileEntityMachineArcFurnace)
|
|
{
|
|
return new GUIMachineArcFurnace(player.inventory, (TileEntityMachineArcFurnace) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_missile_assembly:
|
|
{
|
|
if(entity instanceof TileEntityMachineMissileAssembly)
|
|
{
|
|
return new GUIMachineMissileAssembly(player.inventory, (TileEntityMachineMissileAssembly) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_compact_launcher:
|
|
{
|
|
if(entity instanceof TileEntityCompactLauncher)
|
|
{
|
|
return new GUIMachineCompactLauncher(player.inventory, (TileEntityCompactLauncher) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_launch_table:
|
|
{
|
|
if(entity instanceof TileEntityLaunchTable)
|
|
{
|
|
return new GUIMachineLaunchTable(player.inventory, (TileEntityLaunchTable) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_soyuz_launcher:
|
|
{
|
|
if(entity instanceof TileEntitySoyuzLauncher)
|
|
{
|
|
return new GUISoyuzLauncher(player.inventory, (TileEntitySoyuzLauncher) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_emitter:
|
|
{
|
|
if(entity instanceof TileEntityCoreEmitter)
|
|
{
|
|
return new GUICoreEmitter(player.inventory, (TileEntityCoreEmitter) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_receiver:
|
|
{
|
|
if(entity instanceof TileEntityCoreReceiver)
|
|
{
|
|
return new GUICoreReceiver(player.inventory, (TileEntityCoreReceiver) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_injector:
|
|
{
|
|
if(entity instanceof TileEntityCoreInjector)
|
|
{
|
|
return new GUICoreInjector(player.inventory, (TileEntityCoreInjector) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_core:
|
|
{
|
|
if(entity instanceof TileEntityCore)
|
|
{
|
|
return new GUICore(player.inventory, (TileEntityCore) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_dfc_stabilizer:
|
|
{
|
|
if(entity instanceof TileEntityCoreStabilizer)
|
|
{
|
|
return new GUICoreStabilizer(player.inventory, (TileEntityCoreStabilizer) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_barrel:
|
|
{
|
|
if(entity instanceof TileEntityBarrel)
|
|
{
|
|
return new GUIBarrel(player.inventory, (TileEntityBarrel) entity);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
case ModBlocks.guiID_capsule:
|
|
{
|
|
if(entity instanceof TileEntitySoyuzCapsule)
|
|
{
|
|
return new GUISoyuzCapsule(player.inventory, (TileEntitySoyuzCapsule) entity);
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
} else {
|
|
//CLIENTONLY GUIS
|
|
|
|
switch(ID)
|
|
{
|
|
case ModItems.guiID_item_folder:
|
|
return new GUIScreenTemplateFolder(player);
|
|
case ModItems.guiID_item_designator:
|
|
return new GUIScreenDesignator(player);
|
|
case ModItems.guiID_item_sat_interface:
|
|
return new GUIScreenSatInterface(player);
|
|
case ModItems.guiID_item_sat_coord:
|
|
return new GUIScreenSatCoord(player);
|
|
case ModItems.guiID_item_box:
|
|
return new GUILeadBox(new ContainerLeadBox(player, player.inventory, new InventoryLeadBox(player.getHeldItem())));
|
|
case ModItems.guiID_item_bobmazon:
|
|
if(BobmazonOfferFactory.getOffers(player.getHeldItem()) != null)
|
|
return new GUIScreenBobmazon(player, BobmazonOfferFactory.getOffers(player.getHeldItem()));
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|