Search in sources :

Example 1 with TileEntityElectrolyzer

use of micdoodle8.mods.galacticraft.planets.mars.tile.TileEntityElectrolyzer in project Galacticraft by micdoodle8.

the class BlockMachineMarsT2 method createTileEntity.

@Override
public TileEntity createTileEntity(World world, IBlockState state) {
    int metadata = state.getBlock().getMetaFromState(state);
    metadata &= 12;
    if (metadata == BlockMachineMarsT2.GAS_LIQUEFIER_META) {
        return new TileEntityGasLiquefier();
    } else if (metadata == BlockMachineMarsT2.METHANE_SYNTHESIZER_META) {
        return new TileEntityMethaneSynthesizer();
    } else if (metadata == BlockMachineMarsT2.ELECTROLYZER_META) {
        return new TileEntityElectrolyzer();
    }
    return null;
}
Also used : TileEntityGasLiquefier(micdoodle8.mods.galacticraft.planets.mars.tile.TileEntityGasLiquefier) TileEntityMethaneSynthesizer(micdoodle8.mods.galacticraft.planets.mars.tile.TileEntityMethaneSynthesizer) TileEntityElectrolyzer(micdoodle8.mods.galacticraft.planets.mars.tile.TileEntityElectrolyzer)

Aggregations

TileEntityElectrolyzer (micdoodle8.mods.galacticraft.planets.mars.tile.TileEntityElectrolyzer)1 TileEntityGasLiquefier (micdoodle8.mods.galacticraft.planets.mars.tile.TileEntityGasLiquefier)1 TileEntityMethaneSynthesizer (micdoodle8.mods.galacticraft.planets.mars.tile.TileEntityMethaneSynthesizer)1