Package net.minecraftforge.common
Class BiomeDictionary.Type
java.lang.Object
net.minecraftforge.common.BiomeDictionary.Type
- Enclosing class:
- BiomeDictionary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Collection<BiomeDictionary.Type>
static final BiomeDictionary.Type
private final Set<ResourceKey<Biome>>
private final Set<ResourceKey<Biome>>
private static final Map<String,
BiomeDictionary.Type> static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
private final String
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
private final List<BiomeDictionary.Type>
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
static final BiomeDictionary.Type
A general tag for all water-based biomes.static final BiomeDictionary.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BiomeDictionary.Type
fromVanilla
(Biome.BiomeCategory category) static Collection<BiomeDictionary.Type>
getAll()
getName()
Gets the name for this type.static BiomeDictionary.Type
getType
(String name, BiomeDictionary.Type... subTypes) Retrieves a Type instance by name, if one does not exist already it creates one.static boolean
Checks if a type instance exists for a given name.toString()
-
Field Details
-
byName
-
allTypes
-
HOT
-
COLD
-
SPARSE
-
DENSE
-
WET
-
DRY
-
SAVANNA
-
CONIFEROUS
-
JUNGLE
-
SPOOKY
-
DEAD
-
LUSH
-
MUSHROOM
-
MAGICAL
-
RARE
-
PLATEAU
-
MODIFIED
-
OCEAN
-
RIVER
-
WATER
A general tag for all water-based biomes. Shown as present if OCEAN or RIVER are. -
MESA
-
FOREST
-
PLAINS
-
HILLS
-
SWAMP
-
SANDY
-
SNOWY
-
WASTELAND
-
BEACH
-
VOID
-
UNDERGROUND
-
PEAK
-
SLOPE
-
MOUNTAIN
-
OVERWORLD
-
NETHER
-
END
-
name
-
subTypes
-
biomes
-
biomesUn
-
-
Constructor Details
-
Type
-
-
Method Details
-
getName
Gets the name for this type. -
toString
-
getType
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.
-
hasType
Checks if a type instance exists for a given name. Does not have any side effects if a type does not already exist. This can be used for checking if a user-defined type is valid, for example, in a codec which accepts biome dictionary names.- Parameters:
name
- The name.- Returns:
true
if a type exists with this name.- See Also:
-
getAll
- Returns:
- An unmodifiable collection of all current biome types.
-
fromVanilla
-