Package net.minecraftforge.common
Class BiomeDictionary.Type
- java.lang.Object
-
- net.minecraftforge.common.BiomeDictionary.Type
-
- Enclosing class:
- BiomeDictionary
public static final class BiomeDictionary.Type extends java.lang.Object
-
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(java.lang.String name, BiomeDictionary.Type... subTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BiomeDictionary.Type
fromVanilla(Biome.Category category)
static java.util.Collection<BiomeDictionary.Type>
getAll()
java.lang.String
getName()
Gets the name for this type.static BiomeDictionary.Type
getType(java.lang.String name, BiomeDictionary.Type... subTypes)
Retrieves a Type instance by name, if one does not exist already it creates one.java.lang.String
toString()
-
-
-
Field Detail
-
byName
private static final java.util.Map<java.lang.String,BiomeDictionary.Type> byName
-
allTypes
private static java.util.Collection<BiomeDictionary.Type> allTypes
-
HOT
public static final BiomeDictionary.Type HOT
-
COLD
public static final BiomeDictionary.Type COLD
-
SPARSE
public static final BiomeDictionary.Type SPARSE
-
DENSE
public static final BiomeDictionary.Type DENSE
-
WET
public static final BiomeDictionary.Type WET
-
DRY
public static final BiomeDictionary.Type DRY
-
SAVANNA
public static final BiomeDictionary.Type SAVANNA
-
CONIFEROUS
public static final BiomeDictionary.Type CONIFEROUS
-
JUNGLE
public static final BiomeDictionary.Type JUNGLE
-
SPOOKY
public static final BiomeDictionary.Type SPOOKY
-
DEAD
public static final BiomeDictionary.Type DEAD
-
LUSH
public static final BiomeDictionary.Type LUSH
-
MUSHROOM
public static final BiomeDictionary.Type MUSHROOM
-
MAGICAL
public static final BiomeDictionary.Type MAGICAL
-
RARE
public static final BiomeDictionary.Type RARE
-
PLATEAU
public static final BiomeDictionary.Type PLATEAU
-
MODIFIED
public static final BiomeDictionary.Type MODIFIED
-
OCEAN
public static final BiomeDictionary.Type OCEAN
-
RIVER
public static final BiomeDictionary.Type RIVER
-
WATER
public static final BiomeDictionary.Type WATER
A general tag for all water-based biomes. Shown as present if OCEAN or RIVER are.
-
MESA
public static final BiomeDictionary.Type MESA
-
FOREST
public static final BiomeDictionary.Type FOREST
-
PLAINS
public static final BiomeDictionary.Type PLAINS
-
MOUNTAIN
public static final BiomeDictionary.Type MOUNTAIN
-
HILLS
public static final BiomeDictionary.Type HILLS
-
SWAMP
public static final BiomeDictionary.Type SWAMP
-
SANDY
public static final BiomeDictionary.Type SANDY
-
SNOWY
public static final BiomeDictionary.Type SNOWY
-
WASTELAND
public static final BiomeDictionary.Type WASTELAND
-
BEACH
public static final BiomeDictionary.Type BEACH
-
VOID
public static final BiomeDictionary.Type VOID
-
OVERWORLD
public static final BiomeDictionary.Type OVERWORLD
-
NETHER
public static final BiomeDictionary.Type NETHER
-
END
public static final BiomeDictionary.Type END
-
name
private final java.lang.String name
-
subTypes
private final java.util.List<BiomeDictionary.Type> subTypes
-
biomes
private final java.util.Set<RegistryKey<Biome>> biomes
-
biomesUn
private final java.util.Set<RegistryKey<Biome>> biomesUn
-
-
Constructor Detail
-
Type
private Type(java.lang.String name, BiomeDictionary.Type... subTypes)
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name for this type.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public static BiomeDictionary.Type getType(java.lang.String name, BiomeDictionary.Type... subTypes)
Retrieves a Type instance by name, if one does not exist already it creates one. This can be used as intermediate measure for modders to add their own Biome types.There are no naming conventions besides:
- Must be all upper case (enforced by name.toUpper())
- No Special characters. {Unenforced, just don't be a pain, if it becomes a issue I WILL make this RTE with no worry about backwards compatibility}
Note: For performance sake, the return value of this function SHOULD be cached. Two calls with the same name SHOULD return the same value.
- Parameters:
name
- The name of this Type- Returns:
- An instance of Type for this name.
-
getAll
public static java.util.Collection<BiomeDictionary.Type> getAll()
- Returns:
- An unmodifiable collection of all current biome types.
-
fromVanilla
@Nullable public static BiomeDictionary.Type fromVanilla(Biome.Category category)
-
-