Package extrabiomes.api.events

Examples of extrabiomes.api.events.GetBiomeIDEvent


     * @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]);
    }
View Full Code Here

TOP

Related Classes of extrabiomes.api.events.GetBiomeIDEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.