org.spongepowered.api.world.biome.Biomes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spongeapi Show documentation
Show all versions of spongeapi Show documentation
A plugin API for Minecraft: Java Edition
The newest version!
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.api.world.biome;
import org.spongepowered.api.ResourceKey;
import org.spongepowered.api.registry.Registry;
import org.spongepowered.api.registry.RegistryKey;
import org.spongepowered.api.registry.RegistryReference;
import org.spongepowered.api.registry.RegistryScope;
import org.spongepowered.api.registry.RegistryScopes;
import org.spongepowered.api.registry.RegistryTypes;
import org.spongepowered.api.world.server.ServerWorld;
/**
*
*/
@SuppressWarnings("unused")
@RegistryScopes(scopes = RegistryScope.WORLD)
public final class Biomes {
// @formatter:off
public static final RegistryReference BADLANDS = Biomes.key(ResourceKey.minecraft("badlands"));
public static final RegistryReference BAMBOO_JUNGLE = Biomes.key(ResourceKey.minecraft("bamboo_jungle"));
public static final RegistryReference BASALT_DELTAS = Biomes.key(ResourceKey.minecraft("basalt_deltas"));
public static final RegistryReference BEACH = Biomes.key(ResourceKey.minecraft("beach"));
public static final RegistryReference BIRCH_FOREST = Biomes.key(ResourceKey.minecraft("birch_forest"));
public static final RegistryReference COLD_OCEAN = Biomes.key(ResourceKey.minecraft("cold_ocean"));
public static final RegistryReference CRIMSON_FOREST = Biomes.key(ResourceKey.minecraft("crimson_forest"));
public static final RegistryReference DARK_FOREST = Biomes.key(ResourceKey.minecraft("dark_forest"));
public static final RegistryReference DEEP_COLD_OCEAN = Biomes.key(ResourceKey.minecraft("deep_cold_ocean"));
public static final RegistryReference DEEP_FROZEN_OCEAN = Biomes.key(ResourceKey.minecraft("deep_frozen_ocean"));
public static final RegistryReference DEEP_LUKEWARM_OCEAN = Biomes.key(ResourceKey.minecraft("deep_lukewarm_ocean"));
public static final RegistryReference DEEP_OCEAN = Biomes.key(ResourceKey.minecraft("deep_ocean"));
public static final RegistryReference DESERT = Biomes.key(ResourceKey.minecraft("desert"));
public static final RegistryReference DRIPSTONE_CAVES = Biomes.key(ResourceKey.minecraft("dripstone_caves"));
public static final RegistryReference END_BARRENS = Biomes.key(ResourceKey.minecraft("end_barrens"));
public static final RegistryReference END_HIGHLANDS = Biomes.key(ResourceKey.minecraft("end_highlands"));
public static final RegistryReference END_MIDLANDS = Biomes.key(ResourceKey.minecraft("end_midlands"));
public static final RegistryReference ERODED_BADLANDS = Biomes.key(ResourceKey.minecraft("eroded_badlands"));
public static final RegistryReference FLOWER_FOREST = Biomes.key(ResourceKey.minecraft("flower_forest"));
public static final RegistryReference FOREST = Biomes.key(ResourceKey.minecraft("forest"));
public static final RegistryReference FROZEN_OCEAN = Biomes.key(ResourceKey.minecraft("frozen_ocean"));
public static final RegistryReference FROZEN_PEAKS = Biomes.key(ResourceKey.minecraft("frozen_peaks"));
public static final RegistryReference FROZEN_RIVER = Biomes.key(ResourceKey.minecraft("frozen_river"));
public static final RegistryReference GROVE = Biomes.key(ResourceKey.minecraft("grove"));
public static final RegistryReference ICE_SPIKES = Biomes.key(ResourceKey.minecraft("ice_spikes"));
public static final RegistryReference JAGGED_PEAKS = Biomes.key(ResourceKey.minecraft("jagged_peaks"));
public static final RegistryReference JUNGLE = Biomes.key(ResourceKey.minecraft("jungle"));
public static final RegistryReference LUKEWARM_OCEAN = Biomes.key(ResourceKey.minecraft("lukewarm_ocean"));
public static final RegistryReference LUSH_CAVES = Biomes.key(ResourceKey.minecraft("lush_caves"));
public static final RegistryReference MEADOW = Biomes.key(ResourceKey.minecraft("meadow"));
public static final RegistryReference MUSHROOM_FIELDS = Biomes.key(ResourceKey.minecraft("mushroom_fields"));
public static final RegistryReference NETHER_WASTES = Biomes.key(ResourceKey.minecraft("nether_wastes"));
public static final RegistryReference OCEAN = Biomes.key(ResourceKey.minecraft("ocean"));
public static final RegistryReference OLD_GROWTH_BIRCH_FOREST = Biomes.key(ResourceKey.minecraft("old_growth_birch_forest"));
public static final RegistryReference OLD_GROWTH_PINE_TAIGA = Biomes.key(ResourceKey.minecraft("old_growth_pine_taiga"));
public static final RegistryReference OLD_GROWTH_SPRUCE_TAIGA = Biomes.key(ResourceKey.minecraft("old_growth_spruce_taiga"));
public static final RegistryReference PLAINS = Biomes.key(ResourceKey.minecraft("plains"));
public static final RegistryReference RIVER = Biomes.key(ResourceKey.minecraft("river"));
public static final RegistryReference SAVANNA = Biomes.key(ResourceKey.minecraft("savanna"));
public static final RegistryReference SAVANNA_PLATEAU = Biomes.key(ResourceKey.minecraft("savanna_plateau"));
public static final RegistryReference SMALL_END_ISLANDS = Biomes.key(ResourceKey.minecraft("small_end_islands"));
public static final RegistryReference SNOWY_BEACH = Biomes.key(ResourceKey.minecraft("snowy_beach"));
public static final RegistryReference SNOWY_PLAINS = Biomes.key(ResourceKey.minecraft("snowy_plains"));
public static final RegistryReference SNOWY_SLOPES = Biomes.key(ResourceKey.minecraft("snowy_slopes"));
public static final RegistryReference SNOWY_TAIGA = Biomes.key(ResourceKey.minecraft("snowy_taiga"));
public static final RegistryReference SOUL_SAND_VALLEY = Biomes.key(ResourceKey.minecraft("soul_sand_valley"));
public static final RegistryReference SPARSE_JUNGLE = Biomes.key(ResourceKey.minecraft("sparse_jungle"));
public static final RegistryReference STONY_PEAKS = Biomes.key(ResourceKey.minecraft("stony_peaks"));
public static final RegistryReference STONY_SHORE = Biomes.key(ResourceKey.minecraft("stony_shore"));
public static final RegistryReference SUNFLOWER_PLAINS = Biomes.key(ResourceKey.minecraft("sunflower_plains"));
public static final RegistryReference SWAMP = Biomes.key(ResourceKey.minecraft("swamp"));
public static final RegistryReference TAIGA = Biomes.key(ResourceKey.minecraft("taiga"));
public static final RegistryReference THE_END = Biomes.key(ResourceKey.minecraft("the_end"));
public static final RegistryReference THE_VOID = Biomes.key(ResourceKey.minecraft("the_void"));
public static final RegistryReference WARM_OCEAN = Biomes.key(ResourceKey.minecraft("warm_ocean"));
public static final RegistryReference WARPED_FOREST = Biomes.key(ResourceKey.minecraft("warped_forest"));
public static final RegistryReference WINDSWEPT_FOREST = Biomes.key(ResourceKey.minecraft("windswept_forest"));
public static final RegistryReference WINDSWEPT_GRAVELLY_HILLS = Biomes.key(ResourceKey.minecraft("windswept_gravelly_hills"));
public static final RegistryReference WINDSWEPT_HILLS = Biomes.key(ResourceKey.minecraft("windswept_hills"));
public static final RegistryReference WINDSWEPT_SAVANNA = Biomes.key(ResourceKey.minecraft("windswept_savanna"));
public static final RegistryReference WOODED_BADLANDS = Biomes.key(ResourceKey.minecraft("wooded_badlands"));
// @formatter:on
private Biomes() {
}
public static Registry registry(final ServerWorld world) {
return world.registry(RegistryTypes.BIOME);
}
private static RegistryReference key(final ResourceKey location) {
return RegistryKey.of(RegistryTypes.BIOME, location).asReference();
}
}