|
25 | 25 | package org.spongepowered.api.world.biome; |
26 | 26 |
|
27 | 27 | import org.spongepowered.api.ResourceKey; |
| 28 | +import org.spongepowered.api.Sponge; |
| 29 | +import org.spongepowered.api.registry.DefaultedRegistryReference; |
28 | 30 | import org.spongepowered.api.registry.Registry; |
29 | 31 | import org.spongepowered.api.registry.RegistryKey; |
30 | | -import org.spongepowered.api.registry.RegistryReference; |
31 | 32 | import org.spongepowered.api.registry.RegistryScope; |
32 | 33 | import org.spongepowered.api.registry.RegistryScopes; |
33 | 34 | import org.spongepowered.api.registry.RegistryTypes; |
34 | | -import org.spongepowered.api.world.server.ServerWorld; |
35 | 35 |
|
36 | 36 | /** |
37 | 37 | * <!-- This file is automatically generated. Any manual changes will be overwritten. --> |
38 | 38 | */ |
39 | 39 | @SuppressWarnings("unused") |
40 | | -@RegistryScopes(scopes = RegistryScope.WORLD) |
| 40 | +@RegistryScopes(scopes = RegistryScope.ENGINE) |
41 | 41 | public final class Biomes { |
42 | 42 |
|
43 | | - public static final RegistryReference<Biome> BADLANDS = Biomes.key(ResourceKey.minecraft("badlands")); |
| 43 | + public static final DefaultedRegistryReference<Biome> BADLANDS = Biomes.key(ResourceKey.minecraft("badlands")); |
44 | 44 |
|
45 | | - public static final RegistryReference<Biome> BAMBOO_JUNGLE = Biomes.key(ResourceKey.minecraft("bamboo_jungle")); |
| 45 | + public static final DefaultedRegistryReference<Biome> BAMBOO_JUNGLE = Biomes.key(ResourceKey.minecraft("bamboo_jungle")); |
46 | 46 |
|
47 | | - public static final RegistryReference<Biome> BASALT_DELTAS = Biomes.key(ResourceKey.minecraft("basalt_deltas")); |
| 47 | + public static final DefaultedRegistryReference<Biome> BASALT_DELTAS = Biomes.key(ResourceKey.minecraft("basalt_deltas")); |
48 | 48 |
|
49 | | - public static final RegistryReference<Biome> BEACH = Biomes.key(ResourceKey.minecraft("beach")); |
| 49 | + public static final DefaultedRegistryReference<Biome> BEACH = Biomes.key(ResourceKey.minecraft("beach")); |
50 | 50 |
|
51 | | - public static final RegistryReference<Biome> BIRCH_FOREST = Biomes.key(ResourceKey.minecraft("birch_forest")); |
| 51 | + public static final DefaultedRegistryReference<Biome> BIRCH_FOREST = Biomes.key(ResourceKey.minecraft("birch_forest")); |
52 | 52 |
|
53 | | - public static final RegistryReference<Biome> CHERRY_GROVE = Biomes.key(ResourceKey.minecraft("cherry_grove")); |
| 53 | + public static final DefaultedRegistryReference<Biome> CHERRY_GROVE = Biomes.key(ResourceKey.minecraft("cherry_grove")); |
54 | 54 |
|
55 | | - public static final RegistryReference<Biome> COLD_OCEAN = Biomes.key(ResourceKey.minecraft("cold_ocean")); |
| 55 | + public static final DefaultedRegistryReference<Biome> COLD_OCEAN = Biomes.key(ResourceKey.minecraft("cold_ocean")); |
56 | 56 |
|
57 | | - public static final RegistryReference<Biome> CRIMSON_FOREST = Biomes.key(ResourceKey.minecraft("crimson_forest")); |
| 57 | + public static final DefaultedRegistryReference<Biome> CRIMSON_FOREST = Biomes.key(ResourceKey.minecraft("crimson_forest")); |
58 | 58 |
|
59 | | - public static final RegistryReference<Biome> DARK_FOREST = Biomes.key(ResourceKey.minecraft("dark_forest")); |
| 59 | + public static final DefaultedRegistryReference<Biome> DARK_FOREST = Biomes.key(ResourceKey.minecraft("dark_forest")); |
60 | 60 |
|
61 | | - public static final RegistryReference<Biome> DEEP_COLD_OCEAN = Biomes.key(ResourceKey.minecraft("deep_cold_ocean")); |
| 61 | + public static final DefaultedRegistryReference<Biome> DEEP_COLD_OCEAN = Biomes.key(ResourceKey.minecraft("deep_cold_ocean")); |
62 | 62 |
|
63 | | - public static final RegistryReference<Biome> DEEP_DARK = Biomes.key(ResourceKey.minecraft("deep_dark")); |
| 63 | + public static final DefaultedRegistryReference<Biome> DEEP_DARK = Biomes.key(ResourceKey.minecraft("deep_dark")); |
64 | 64 |
|
65 | | - public static final RegistryReference<Biome> DEEP_FROZEN_OCEAN = Biomes.key(ResourceKey.minecraft("deep_frozen_ocean")); |
| 65 | + public static final DefaultedRegistryReference<Biome> DEEP_FROZEN_OCEAN = Biomes.key(ResourceKey.minecraft("deep_frozen_ocean")); |
66 | 66 |
|
67 | | - public static final RegistryReference<Biome> DEEP_LUKEWARM_OCEAN = Biomes.key(ResourceKey.minecraft("deep_lukewarm_ocean")); |
| 67 | + public static final DefaultedRegistryReference<Biome> DEEP_LUKEWARM_OCEAN = Biomes.key(ResourceKey.minecraft("deep_lukewarm_ocean")); |
68 | 68 |
|
69 | | - public static final RegistryReference<Biome> DEEP_OCEAN = Biomes.key(ResourceKey.minecraft("deep_ocean")); |
| 69 | + public static final DefaultedRegistryReference<Biome> DEEP_OCEAN = Biomes.key(ResourceKey.minecraft("deep_ocean")); |
70 | 70 |
|
71 | | - public static final RegistryReference<Biome> DESERT = Biomes.key(ResourceKey.minecraft("desert")); |
| 71 | + public static final DefaultedRegistryReference<Biome> DESERT = Biomes.key(ResourceKey.minecraft("desert")); |
72 | 72 |
|
73 | | - public static final RegistryReference<Biome> DRIPSTONE_CAVES = Biomes.key(ResourceKey.minecraft("dripstone_caves")); |
| 73 | + public static final DefaultedRegistryReference<Biome> DRIPSTONE_CAVES = Biomes.key(ResourceKey.minecraft("dripstone_caves")); |
74 | 74 |
|
75 | | - public static final RegistryReference<Biome> END_BARRENS = Biomes.key(ResourceKey.minecraft("end_barrens")); |
| 75 | + public static final DefaultedRegistryReference<Biome> END_BARRENS = Biomes.key(ResourceKey.minecraft("end_barrens")); |
76 | 76 |
|
77 | | - public static final RegistryReference<Biome> END_HIGHLANDS = Biomes.key(ResourceKey.minecraft("end_highlands")); |
| 77 | + public static final DefaultedRegistryReference<Biome> END_HIGHLANDS = Biomes.key(ResourceKey.minecraft("end_highlands")); |
78 | 78 |
|
79 | | - public static final RegistryReference<Biome> END_MIDLANDS = Biomes.key(ResourceKey.minecraft("end_midlands")); |
| 79 | + public static final DefaultedRegistryReference<Biome> END_MIDLANDS = Biomes.key(ResourceKey.minecraft("end_midlands")); |
80 | 80 |
|
81 | | - public static final RegistryReference<Biome> ERODED_BADLANDS = Biomes.key(ResourceKey.minecraft("eroded_badlands")); |
| 81 | + public static final DefaultedRegistryReference<Biome> ERODED_BADLANDS = Biomes.key(ResourceKey.minecraft("eroded_badlands")); |
82 | 82 |
|
83 | | - public static final RegistryReference<Biome> FLOWER_FOREST = Biomes.key(ResourceKey.minecraft("flower_forest")); |
| 83 | + public static final DefaultedRegistryReference<Biome> FLOWER_FOREST = Biomes.key(ResourceKey.minecraft("flower_forest")); |
84 | 84 |
|
85 | | - public static final RegistryReference<Biome> FOREST = Biomes.key(ResourceKey.minecraft("forest")); |
| 85 | + public static final DefaultedRegistryReference<Biome> FOREST = Biomes.key(ResourceKey.minecraft("forest")); |
86 | 86 |
|
87 | | - public static final RegistryReference<Biome> FROZEN_OCEAN = Biomes.key(ResourceKey.minecraft("frozen_ocean")); |
| 87 | + public static final DefaultedRegistryReference<Biome> FROZEN_OCEAN = Biomes.key(ResourceKey.minecraft("frozen_ocean")); |
88 | 88 |
|
89 | | - public static final RegistryReference<Biome> FROZEN_PEAKS = Biomes.key(ResourceKey.minecraft("frozen_peaks")); |
| 89 | + public static final DefaultedRegistryReference<Biome> FROZEN_PEAKS = Biomes.key(ResourceKey.minecraft("frozen_peaks")); |
90 | 90 |
|
91 | | - public static final RegistryReference<Biome> FROZEN_RIVER = Biomes.key(ResourceKey.minecraft("frozen_river")); |
| 91 | + public static final DefaultedRegistryReference<Biome> FROZEN_RIVER = Biomes.key(ResourceKey.minecraft("frozen_river")); |
92 | 92 |
|
93 | | - public static final RegistryReference<Biome> GROVE = Biomes.key(ResourceKey.minecraft("grove")); |
| 93 | + public static final DefaultedRegistryReference<Biome> GROVE = Biomes.key(ResourceKey.minecraft("grove")); |
94 | 94 |
|
95 | | - public static final RegistryReference<Biome> ICE_SPIKES = Biomes.key(ResourceKey.minecraft("ice_spikes")); |
| 95 | + public static final DefaultedRegistryReference<Biome> ICE_SPIKES = Biomes.key(ResourceKey.minecraft("ice_spikes")); |
96 | 96 |
|
97 | | - public static final RegistryReference<Biome> JAGGED_PEAKS = Biomes.key(ResourceKey.minecraft("jagged_peaks")); |
| 97 | + public static final DefaultedRegistryReference<Biome> JAGGED_PEAKS = Biomes.key(ResourceKey.minecraft("jagged_peaks")); |
98 | 98 |
|
99 | | - public static final RegistryReference<Biome> JUNGLE = Biomes.key(ResourceKey.minecraft("jungle")); |
| 99 | + public static final DefaultedRegistryReference<Biome> JUNGLE = Biomes.key(ResourceKey.minecraft("jungle")); |
100 | 100 |
|
101 | | - public static final RegistryReference<Biome> LUKEWARM_OCEAN = Biomes.key(ResourceKey.minecraft("lukewarm_ocean")); |
| 101 | + public static final DefaultedRegistryReference<Biome> LUKEWARM_OCEAN = Biomes.key(ResourceKey.minecraft("lukewarm_ocean")); |
102 | 102 |
|
103 | | - public static final RegistryReference<Biome> LUSH_CAVES = Biomes.key(ResourceKey.minecraft("lush_caves")); |
| 103 | + public static final DefaultedRegistryReference<Biome> LUSH_CAVES = Biomes.key(ResourceKey.minecraft("lush_caves")); |
104 | 104 |
|
105 | | - public static final RegistryReference<Biome> MANGROVE_SWAMP = Biomes.key(ResourceKey.minecraft("mangrove_swamp")); |
| 105 | + public static final DefaultedRegistryReference<Biome> MANGROVE_SWAMP = Biomes.key(ResourceKey.minecraft("mangrove_swamp")); |
106 | 106 |
|
107 | | - public static final RegistryReference<Biome> MEADOW = Biomes.key(ResourceKey.minecraft("meadow")); |
| 107 | + public static final DefaultedRegistryReference<Biome> MEADOW = Biomes.key(ResourceKey.minecraft("meadow")); |
108 | 108 |
|
109 | | - public static final RegistryReference<Biome> MUSHROOM_FIELDS = Biomes.key(ResourceKey.minecraft("mushroom_fields")); |
| 109 | + public static final DefaultedRegistryReference<Biome> MUSHROOM_FIELDS = Biomes.key(ResourceKey.minecraft("mushroom_fields")); |
110 | 110 |
|
111 | | - public static final RegistryReference<Biome> NETHER_WASTES = Biomes.key(ResourceKey.minecraft("nether_wastes")); |
| 111 | + public static final DefaultedRegistryReference<Biome> NETHER_WASTES = Biomes.key(ResourceKey.minecraft("nether_wastes")); |
112 | 112 |
|
113 | | - public static final RegistryReference<Biome> OCEAN = Biomes.key(ResourceKey.minecraft("ocean")); |
| 113 | + public static final DefaultedRegistryReference<Biome> OCEAN = Biomes.key(ResourceKey.minecraft("ocean")); |
114 | 114 |
|
115 | | - public static final RegistryReference<Biome> OLD_GROWTH_BIRCH_FOREST = Biomes.key(ResourceKey.minecraft("old_growth_birch_forest")); |
| 115 | + public static final DefaultedRegistryReference<Biome> OLD_GROWTH_BIRCH_FOREST = Biomes.key(ResourceKey.minecraft("old_growth_birch_forest")); |
116 | 116 |
|
117 | | - public static final RegistryReference<Biome> OLD_GROWTH_PINE_TAIGA = Biomes.key(ResourceKey.minecraft("old_growth_pine_taiga")); |
| 117 | + public static final DefaultedRegistryReference<Biome> OLD_GROWTH_PINE_TAIGA = Biomes.key(ResourceKey.minecraft("old_growth_pine_taiga")); |
118 | 118 |
|
119 | | - public static final RegistryReference<Biome> OLD_GROWTH_SPRUCE_TAIGA = Biomes.key(ResourceKey.minecraft("old_growth_spruce_taiga")); |
| 119 | + public static final DefaultedRegistryReference<Biome> OLD_GROWTH_SPRUCE_TAIGA = Biomes.key(ResourceKey.minecraft("old_growth_spruce_taiga")); |
120 | 120 |
|
121 | | - public static final RegistryReference<Biome> PALE_GARDEN = Biomes.key(ResourceKey.minecraft("pale_garden")); |
| 121 | + public static final DefaultedRegistryReference<Biome> PALE_GARDEN = Biomes.key(ResourceKey.minecraft("pale_garden")); |
122 | 122 |
|
123 | | - public static final RegistryReference<Biome> PLAINS = Biomes.key(ResourceKey.minecraft("plains")); |
| 123 | + public static final DefaultedRegistryReference<Biome> PLAINS = Biomes.key(ResourceKey.minecraft("plains")); |
124 | 124 |
|
125 | | - public static final RegistryReference<Biome> RIVER = Biomes.key(ResourceKey.minecraft("river")); |
| 125 | + public static final DefaultedRegistryReference<Biome> RIVER = Biomes.key(ResourceKey.minecraft("river")); |
126 | 126 |
|
127 | | - public static final RegistryReference<Biome> SAVANNA = Biomes.key(ResourceKey.minecraft("savanna")); |
| 127 | + public static final DefaultedRegistryReference<Biome> SAVANNA = Biomes.key(ResourceKey.minecraft("savanna")); |
128 | 128 |
|
129 | | - public static final RegistryReference<Biome> SAVANNA_PLATEAU = Biomes.key(ResourceKey.minecraft("savanna_plateau")); |
| 129 | + public static final DefaultedRegistryReference<Biome> SAVANNA_PLATEAU = Biomes.key(ResourceKey.minecraft("savanna_plateau")); |
130 | 130 |
|
131 | | - public static final RegistryReference<Biome> SMALL_END_ISLANDS = Biomes.key(ResourceKey.minecraft("small_end_islands")); |
| 131 | + public static final DefaultedRegistryReference<Biome> SMALL_END_ISLANDS = Biomes.key(ResourceKey.minecraft("small_end_islands")); |
132 | 132 |
|
133 | | - public static final RegistryReference<Biome> SNOWY_BEACH = Biomes.key(ResourceKey.minecraft("snowy_beach")); |
| 133 | + public static final DefaultedRegistryReference<Biome> SNOWY_BEACH = Biomes.key(ResourceKey.minecraft("snowy_beach")); |
134 | 134 |
|
135 | | - public static final RegistryReference<Biome> SNOWY_PLAINS = Biomes.key(ResourceKey.minecraft("snowy_plains")); |
| 135 | + public static final DefaultedRegistryReference<Biome> SNOWY_PLAINS = Biomes.key(ResourceKey.minecraft("snowy_plains")); |
136 | 136 |
|
137 | | - public static final RegistryReference<Biome> SNOWY_SLOPES = Biomes.key(ResourceKey.minecraft("snowy_slopes")); |
| 137 | + public static final DefaultedRegistryReference<Biome> SNOWY_SLOPES = Biomes.key(ResourceKey.minecraft("snowy_slopes")); |
138 | 138 |
|
139 | | - public static final RegistryReference<Biome> SNOWY_TAIGA = Biomes.key(ResourceKey.minecraft("snowy_taiga")); |
| 139 | + public static final DefaultedRegistryReference<Biome> SNOWY_TAIGA = Biomes.key(ResourceKey.minecraft("snowy_taiga")); |
140 | 140 |
|
141 | | - public static final RegistryReference<Biome> SOUL_SAND_VALLEY = Biomes.key(ResourceKey.minecraft("soul_sand_valley")); |
| 141 | + public static final DefaultedRegistryReference<Biome> SOUL_SAND_VALLEY = Biomes.key(ResourceKey.minecraft("soul_sand_valley")); |
142 | 142 |
|
143 | | - public static final RegistryReference<Biome> SPARSE_JUNGLE = Biomes.key(ResourceKey.minecraft("sparse_jungle")); |
| 143 | + public static final DefaultedRegistryReference<Biome> SPARSE_JUNGLE = Biomes.key(ResourceKey.minecraft("sparse_jungle")); |
144 | 144 |
|
145 | | - public static final RegistryReference<Biome> STONY_PEAKS = Biomes.key(ResourceKey.minecraft("stony_peaks")); |
| 145 | + public static final DefaultedRegistryReference<Biome> STONY_PEAKS = Biomes.key(ResourceKey.minecraft("stony_peaks")); |
146 | 146 |
|
147 | | - public static final RegistryReference<Biome> STONY_SHORE = Biomes.key(ResourceKey.minecraft("stony_shore")); |
| 147 | + public static final DefaultedRegistryReference<Biome> STONY_SHORE = Biomes.key(ResourceKey.minecraft("stony_shore")); |
148 | 148 |
|
149 | | - public static final RegistryReference<Biome> SUNFLOWER_PLAINS = Biomes.key(ResourceKey.minecraft("sunflower_plains")); |
| 149 | + public static final DefaultedRegistryReference<Biome> SUNFLOWER_PLAINS = Biomes.key(ResourceKey.minecraft("sunflower_plains")); |
150 | 150 |
|
151 | | - public static final RegistryReference<Biome> SWAMP = Biomes.key(ResourceKey.minecraft("swamp")); |
| 151 | + public static final DefaultedRegistryReference<Biome> SWAMP = Biomes.key(ResourceKey.minecraft("swamp")); |
152 | 152 |
|
153 | | - public static final RegistryReference<Biome> TAIGA = Biomes.key(ResourceKey.minecraft("taiga")); |
| 153 | + public static final DefaultedRegistryReference<Biome> TAIGA = Biomes.key(ResourceKey.minecraft("taiga")); |
154 | 154 |
|
155 | | - public static final RegistryReference<Biome> THE_END = Biomes.key(ResourceKey.minecraft("the_end")); |
| 155 | + public static final DefaultedRegistryReference<Biome> THE_END = Biomes.key(ResourceKey.minecraft("the_end")); |
156 | 156 |
|
157 | | - public static final RegistryReference<Biome> THE_VOID = Biomes.key(ResourceKey.minecraft("the_void")); |
| 157 | + public static final DefaultedRegistryReference<Biome> THE_VOID = Biomes.key(ResourceKey.minecraft("the_void")); |
158 | 158 |
|
159 | | - public static final RegistryReference<Biome> WARM_OCEAN = Biomes.key(ResourceKey.minecraft("warm_ocean")); |
| 159 | + public static final DefaultedRegistryReference<Biome> WARM_OCEAN = Biomes.key(ResourceKey.minecraft("warm_ocean")); |
160 | 160 |
|
161 | | - public static final RegistryReference<Biome> WARPED_FOREST = Biomes.key(ResourceKey.minecraft("warped_forest")); |
| 161 | + public static final DefaultedRegistryReference<Biome> WARPED_FOREST = Biomes.key(ResourceKey.minecraft("warped_forest")); |
162 | 162 |
|
163 | | - public static final RegistryReference<Biome> WINDSWEPT_FOREST = Biomes.key(ResourceKey.minecraft("windswept_forest")); |
| 163 | + public static final DefaultedRegistryReference<Biome> WINDSWEPT_FOREST = Biomes.key(ResourceKey.minecraft("windswept_forest")); |
164 | 164 |
|
165 | | - public static final RegistryReference<Biome> WINDSWEPT_GRAVELLY_HILLS = Biomes.key(ResourceKey.minecraft("windswept_gravelly_hills")); |
| 165 | + public static final DefaultedRegistryReference<Biome> WINDSWEPT_GRAVELLY_HILLS = Biomes.key(ResourceKey.minecraft("windswept_gravelly_hills")); |
166 | 166 |
|
167 | | - public static final RegistryReference<Biome> WINDSWEPT_HILLS = Biomes.key(ResourceKey.minecraft("windswept_hills")); |
| 167 | + public static final DefaultedRegistryReference<Biome> WINDSWEPT_HILLS = Biomes.key(ResourceKey.minecraft("windswept_hills")); |
168 | 168 |
|
169 | | - public static final RegistryReference<Biome> WINDSWEPT_SAVANNA = Biomes.key(ResourceKey.minecraft("windswept_savanna")); |
| 169 | + public static final DefaultedRegistryReference<Biome> WINDSWEPT_SAVANNA = Biomes.key(ResourceKey.minecraft("windswept_savanna")); |
170 | 170 |
|
171 | | - public static final RegistryReference<Biome> WOODED_BADLANDS = Biomes.key(ResourceKey.minecraft("wooded_badlands")); |
| 171 | + public static final DefaultedRegistryReference<Biome> WOODED_BADLANDS = Biomes.key(ResourceKey.minecraft("wooded_badlands")); |
172 | 172 |
|
173 | 173 | private Biomes() { |
174 | 174 | } |
175 | 175 |
|
176 | | - public static Registry<Biome> registry(final ServerWorld world) { |
177 | | - return world.registry(RegistryTypes.BIOME); |
| 176 | + public static Registry<Biome> registry() { |
| 177 | + return Sponge.server().registry(RegistryTypes.BIOME); |
178 | 178 | } |
179 | 179 |
|
180 | | - private static RegistryReference<Biome> key(final ResourceKey location) { |
181 | | - return RegistryKey.of(RegistryTypes.BIOME, location).asReference(); |
| 180 | + private static DefaultedRegistryReference<Biome> key(final ResourceKey location) { |
| 181 | + return RegistryKey.of(RegistryTypes.BIOME, location).asDefaultedReference(Sponge::server); |
182 | 182 | } |
183 | 183 | } |
0 commit comments