* @param targetBiome The string name of the targertBiome. See {@link GetBiomeIDEvent#targetBiome} for valid values.
* @return The requested biome. If the biome does not exist, the <code>Optional</code> value will not be present.
*/
public static Optional<BiomeGenBase> getBiome(String targetBiome)
{
final GetBiomeIDEvent event = new GetBiomeIDEvent(targetBiome);
Api.getExtrabiomesXLEventBus().post(event);
if (event.biomeID <= 0 || BiomeGenBase.getBiomeGenArray()[event.biomeID] == null)
return Optional.absent();
return Optional.of(BiomeGenBase.getBiomeGenArray()[event.biomeID]);
}