Modifier and Type | Method and Description |
---|---|
MutableBiomeArea |
getBiomeView(DiscreteTransform2 transform)
Returns a new area that is viewed through some transformation.
|
MutableBiomeArea |
getBiomeView(com.flowpowered.math.vector.Vector2i newMin,
com.flowpowered.math.vector.Vector2i newMax)
Returns a new area that is the same or smaller than the current area.
|
MutableBiomeArea |
getRelativeBiomeView()
Returns a new area that is translated so that
BiomeArea.getBiomeMin() returns Vector2i.ZERO . |
void |
setBiome(int x,
int z,
BiomeType biome)
Sets the biome at the given position in the world.
|
void |
setBiome(com.flowpowered.math.vector.Vector2i position,
BiomeType biome)
Sets the biome at the given position in the world.
|
containsBiome, containsBiome, getBiome, getBiome, getBiomeCopy, getBiomeCopy, getBiomeMax, getBiomeMin, getBiomeSize, getImmutableBiomeCopy, getUnmodifiableBiomeView
void setBiome(com.flowpowered.math.vector.Vector2i position, BiomeType biome)
position
- The positionbiome
- The biomePositionOutOfBoundsException
- If the position is outside of the
bounds of the areavoid setBiome(int x, int z, BiomeType biome)
x
- The X positionz
- The Z positionbiome
- The biomePositionOutOfBoundsException
- If the position is outside of the
bounds of the areaMutableBiomeArea getBiomeView(com.flowpowered.math.vector.Vector2i newMin, com.flowpowered.math.vector.Vector2i newMax)
getBiomeView
in interface BiomeArea
newMin
- The new minimum coordinates in this areanewMax
- The new maximum coordinates in this areaPositionOutOfBoundsException
- If the new minimum and maximum
are outside the current areaMutableBiomeArea getBiomeView(DiscreteTransform2 transform)
getBiomeView
in interface BiomeArea
transform
- The transformation to be appliedMutableBiomeArea getRelativeBiomeView()
BiomeArea.getBiomeMin()
returns Vector2i.ZERO
.
This does not copy the biomes, it only provides a new view of the
storage.getRelativeBiomeView
in interface BiomeArea