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;
}
Aggregations