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
/*
* 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 BADLANDS_PLATEAU = Biomes.key(ResourceKey.minecraft("badlands_plateau"));
public static final RegistryReference BAMBOO_JUNGLE = Biomes.key(ResourceKey.minecraft("bamboo_jungle"));
public static final RegistryReference BAMBOO_JUNGLE_HILLS = Biomes.key(ResourceKey.minecraft("bamboo_jungle_hills"));
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 BIRCH_FOREST_HILLS = Biomes.key(ResourceKey.minecraft("birch_forest_hills"));
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 DARK_FOREST_HILLS = Biomes.key(ResourceKey.minecraft("dark_forest_hills"));
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 DEEP_WARM_OCEAN = Biomes.key(ResourceKey.minecraft("deep_warm_ocean"));
public static final RegistryReference DESERT = Biomes.key(ResourceKey.minecraft("desert"));
public static final RegistryReference DESERT_HILLS = Biomes.key(ResourceKey.minecraft("desert_hills"));
public static final RegistryReference DESERT_LAKES = Biomes.key(ResourceKey.minecraft("desert_lakes"));
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_RIVER = Biomes.key(ResourceKey.minecraft("frozen_river"));
public static final RegistryReference GIANT_SPRUCE_TAIGA = Biomes.key(ResourceKey.minecraft("giant_spruce_taiga"));
public static final RegistryReference GIANT_SPRUCE_TAIGA_HILLS = Biomes.key(ResourceKey.minecraft("giant_spruce_taiga_hills"));
public static final RegistryReference GIANT_TREE_TAIGA = Biomes.key(ResourceKey.minecraft("giant_tree_taiga"));
public static final RegistryReference GIANT_TREE_TAIGA_HILLS = Biomes.key(ResourceKey.minecraft("giant_tree_taiga_hills"));
public static final RegistryReference GRAVELLY_MOUNTAINS = Biomes.key(ResourceKey.minecraft("gravelly_mountains"));
public static final RegistryReference ICE_SPIKES = Biomes.key(ResourceKey.minecraft("ice_spikes"));
public static final RegistryReference JUNGLE = Biomes.key(ResourceKey.minecraft("jungle"));
public static final RegistryReference JUNGLE_EDGE = Biomes.key(ResourceKey.minecraft("jungle_edge"));
public static final RegistryReference JUNGLE_HILLS = Biomes.key(ResourceKey.minecraft("jungle_hills"));
public static final RegistryReference LUKEWARM_OCEAN = Biomes.key(ResourceKey.minecraft("lukewarm_ocean"));
public static final RegistryReference MODIFIED_BADLANDS_PLATEAU = Biomes.key(ResourceKey.minecraft("modified_badlands_plateau"));
public static final RegistryReference MODIFIED_GRAVELLY_MOUNTAINS = Biomes.key(ResourceKey.minecraft("modified_gravelly_mountains"));
public static final RegistryReference MODIFIED_JUNGLE = Biomes.key(ResourceKey.minecraft("modified_jungle"));
public static final RegistryReference MODIFIED_JUNGLE_EDGE = Biomes.key(ResourceKey.minecraft("modified_jungle_edge"));
public static final RegistryReference MODIFIED_WOODED_BADLANDS_PLATEAU = Biomes.key(ResourceKey.minecraft("modified_wooded_badlands_plateau"));
public static final RegistryReference MOUNTAIN_EDGE = Biomes.key(ResourceKey.minecraft("mountain_edge"));
public static final RegistryReference MOUNTAINS = Biomes.key(ResourceKey.minecraft("mountains"));
public static final RegistryReference MUSHROOM_FIELD_SHORE = Biomes.key(ResourceKey.minecraft("mushroom_field_shore"));
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 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 SHATTERED_SAVANNA = Biomes.key(ResourceKey.minecraft("shattered_savanna"));
public static final RegistryReference SHATTERED_SAVANNA_PLATEAU = Biomes.key(ResourceKey.minecraft("shattered_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_MOUNTAINS = Biomes.key(ResourceKey.minecraft("snowy_mountains"));
public static final RegistryReference SNOWY_TAIGA = Biomes.key(ResourceKey.minecraft("snowy_taiga"));
public static final RegistryReference SNOWY_TAIGA_HILLS = Biomes.key(ResourceKey.minecraft("snowy_taiga_hills"));
public static final RegistryReference SNOWY_TAIGA_MOUNTAINS = Biomes.key(ResourceKey.minecraft("snowy_taiga_mountains"));
public static final RegistryReference SNOWY_TUNDRA = Biomes.key(ResourceKey.minecraft("snowy_tundra"));
public static final RegistryReference SOUL_SAND_VALLEY = Biomes.key(ResourceKey.minecraft("soul_sand_valley"));
public static final RegistryReference STONE_SHORE = Biomes.key(ResourceKey.minecraft("stone_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 SWAMP_HILLS = Biomes.key(ResourceKey.minecraft("swamp_hills"));
public static final RegistryReference TAIGA = Biomes.key(ResourceKey.minecraft("taiga"));
public static final RegistryReference TAIGA_HILLS = Biomes.key(ResourceKey.minecraft("taiga_hills"));
public static final RegistryReference TAIGA_MOUNTAINS = Biomes.key(ResourceKey.minecraft("taiga_mountains"));
public static final RegistryReference TALL_BIRCH_FOREST = Biomes.key(ResourceKey.minecraft("tall_birch_forest"));
public static final RegistryReference TALL_BIRCH_HILLS = Biomes.key(ResourceKey.minecraft("tall_birch_hills"));
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 WOODED_BADLANDS_PLATEAU = Biomes.key(ResourceKey.minecraft("wooded_badlands_plateau"));
public static final RegistryReference WOODED_HILLS = Biomes.key(ResourceKey.minecraft("wooded_hills"));
public static final RegistryReference WOODED_MOUNTAINS = Biomes.key(ResourceKey.minecraft("wooded_mountains"));
// @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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy