Interface BiomeMap
- All Superinterfaces:
GenerationPass
- All Known Implementing Classes:
CachingBiomeMap,ComplexBiomeMap,ConstantBiomeMap
A map of the biomes in a given area.
- Author:
- DaPorkchop_
-
Method Summary
Modifier and TypeMethodDescriptionget(int x, int z)Gets theGenerationBiomeat the given world coordinates.org.cloudburstmc.api.util.IdentifiergetId()getRegion(GenerationBiome[] arr, int x, int z, int sizeX, int sizeZ)Gets theGenerationBiomes in the given world region.org.cloudburstmc.api.util.Identifier[]getRegionIds(org.cloudburstmc.api.util.Identifier[] arr, int x, int z, int sizeX, int sizeZ)Gets theIdentifiers of the biomes in the given world region.booleanMethods inherited from interface org.cloudburstmc.server.level.generator.standard.misc.GenerationPass
init
-
Method Details
-
get
Gets theGenerationBiomeat the given world coordinates.- Parameters:
x- the X coordinatez- the Z coordinate- Returns:
- the
GenerationBiomeat the given coordinates
-
getRegion
Gets theGenerationBiomes in the given world region.- Parameters:
arr- theGenerationBiome[]to fill. A new array will be created if this array isnullor too smallx- the region's base X coordinatez- the region's base Z coordinatesizeX- the size of the region along the X axissizeZ- the size of the region along the Z axis Gets theGenerationBiomes in the given world region.
-
getRegionIds
org.cloudburstmc.api.util.Identifier[] getRegionIds(org.cloudburstmc.api.util.Identifier[] arr, int x, int z, int sizeX, int sizeZ)Gets theIdentifiers of the biomes in the given world region.- Parameters:
arr- theIdentifier[]to fill. A new array will be created if this array isnullor too smallx- the region's base X coordinatez- the region's base Z coordinatesizeX- the size of the region along the X axissizeZ- the size of the region along the Z axis Gets theIdentifiers in the given world region.
-
needsCaching
boolean needsCaching()- Returns:
- whether or not this
BiomeMap's results should be cached for performance
-
possibleBiomes
Set<GenerationBiome> possibleBiomes() -
getId
org.cloudburstmc.api.util.Identifier getId()- Specified by:
getIdin interfaceGenerationPass- Returns:
- the identifier of this generation pass
-