public final class ByteArrayImmutableBiomeBuffer extends AbstractBiomeBuffer implements org.spongepowered.api.world.extent.ImmutableBiomeArea
end, size, start
Constructor and Description |
---|
ByteArrayImmutableBiomeBuffer(byte[] biomes,
com.flowpowered.math.vector.Vector2i start,
com.flowpowered.math.vector.Vector2i size) |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.world.biome.BiomeType |
getBiome(int x,
int z) |
org.spongepowered.api.world.biome.BiomeType |
getBiome(com.flowpowered.math.vector.Vector2i position) |
org.spongepowered.api.world.extent.MutableBiomeArea |
getBiomeCopy(org.spongepowered.api.world.extent.StorageType type) |
org.spongepowered.api.world.extent.ImmutableBiomeArea |
getBiomeView(org.spongepowered.api.util.DiscreteTransform2 transform) |
org.spongepowered.api.world.extent.ImmutableBiomeArea |
getBiomeView(com.flowpowered.math.vector.Vector2i newMin,
com.flowpowered.math.vector.Vector2i newMax) |
org.spongepowered.api.world.extent.ImmutableBiomeArea |
getImmutableBiomeCopy() |
org.spongepowered.api.world.extent.ImmutableBiomeArea |
getRelativeBiomeView() |
org.spongepowered.api.world.extent.UnmodifiableBiomeArea |
getUnmodifiableBiomeView() |
static org.spongepowered.api.world.extent.ImmutableBiomeArea |
newWithoutArrayClone(byte[] biomes,
com.flowpowered.math.vector.Vector2i start,
com.flowpowered.math.vector.Vector2i size)
This method doesn't clone the array passed into it.
|
checkRange, containsBiome, containsBiome, getBiomeCopy, getBiomeMax, getBiomeMin, getBiomeSize, getIndex, toString
public ByteArrayImmutableBiomeBuffer(byte[] biomes, com.flowpowered.math.vector.Vector2i start, com.flowpowered.math.vector.Vector2i size)
public org.spongepowered.api.world.biome.BiomeType getBiome(int x, int z)
getBiome
in interface org.spongepowered.api.world.extent.BiomeArea
public org.spongepowered.api.world.biome.BiomeType getBiome(com.flowpowered.math.vector.Vector2i position)
getBiome
in interface org.spongepowered.api.world.extent.BiomeArea
public org.spongepowered.api.world.extent.ImmutableBiomeArea getBiomeView(com.flowpowered.math.vector.Vector2i newMin, com.flowpowered.math.vector.Vector2i newMax)
getBiomeView
in interface org.spongepowered.api.world.extent.BiomeArea
getBiomeView
in interface org.spongepowered.api.world.extent.ImmutableBiomeArea
getBiomeView
in interface org.spongepowered.api.world.extent.UnmodifiableBiomeArea
public org.spongepowered.api.world.extent.ImmutableBiomeArea getBiomeView(org.spongepowered.api.util.DiscreteTransform2 transform)
getBiomeView
in interface org.spongepowered.api.world.extent.BiomeArea
getBiomeView
in interface org.spongepowered.api.world.extent.ImmutableBiomeArea
getBiomeView
in interface org.spongepowered.api.world.extent.UnmodifiableBiomeArea
public org.spongepowered.api.world.extent.ImmutableBiomeArea getRelativeBiomeView()
getRelativeBiomeView
in interface org.spongepowered.api.world.extent.BiomeArea
getRelativeBiomeView
in interface org.spongepowered.api.world.extent.ImmutableBiomeArea
getRelativeBiomeView
in interface org.spongepowered.api.world.extent.UnmodifiableBiomeArea
public org.spongepowered.api.world.extent.UnmodifiableBiomeArea getUnmodifiableBiomeView()
getUnmodifiableBiomeView
in interface org.spongepowered.api.world.extent.BiomeArea
public org.spongepowered.api.world.extent.MutableBiomeArea getBiomeCopy(org.spongepowered.api.world.extent.StorageType type)
getBiomeCopy
in interface org.spongepowered.api.world.extent.BiomeArea
public org.spongepowered.api.world.extent.ImmutableBiomeArea getImmutableBiomeCopy()
getImmutableBiomeCopy
in interface org.spongepowered.api.world.extent.BiomeArea
public static org.spongepowered.api.world.extent.ImmutableBiomeArea newWithoutArrayClone(byte[] biomes, com.flowpowered.math.vector.Vector2i start, com.flowpowered.math.vector.Vector2i size)
biomes
- The biomes to storestart
- The start of the areasize
- The size of the area