Add a way to get a list of registered biome types (#4685)

This commit is contained in:
Mackenzie McClane authored and LexManos committed 2018-04-01 01:03:27 -07:00
1 parent fff660918a
commit e099aa32d4
1 file changed
+9
@@ -43,6 +43,7 @@ public class BiomeDictionary
{
private static final Map<String, Type> byName = new HashMap<String, Type>();
private static Collection<Type> allTypes = Collections.unmodifiableCollection(byName.values());
/*Temperature-based tags. Specifying neither implies a biome is temperate*/
public static final Type HOT = new Type("HOT");
@@ -150,6 +151,14 @@ public class BiomeDictionary
}
return t;
}
/**
* @return An unmodifiable collection of all current biome types.
*/
public static Collection<Type> getAll()
{
return allTypes;
}
}
private static final Map<ResourceLocation, BiomeInfo> biomeInfoMap = new HashMap<ResourceLocation, BiomeInfo>();