Add a way to get a list of registered biome types (#4685)
This commit is contained in:
parent
fff660918a
commit
e099aa32d4
1 changed files with 9 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue