if(tile_entity instanceof TileEntityIronFurnace){
return new GuiIronFurnace(player.inventory, (TileEntityIronFurnace) tile_entity);
}
if(tile_entity instanceof TileEntityOreGrinder){
return new GuiOreGrinder(player.inventory, (TileEntityOreGrinder) tile_entity);
}
return null;
}