public class ChunkInterpolator2 extends Object implements ChunkInterpolator
ChunkInterpolator.InterpolationType
Constructor and Description |
---|
ChunkInterpolator2(org.bukkit.World w,
int chunkX,
int chunkZ,
BiomeGrid grid,
FastNoiseLite noise)
Instantiates a ChunkInterpolator at a pair of chunk coordinates, with a BiomeGrid and FastNoiseLite instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getNoise(double x,
double z)
Gets the noise at a pair of internal chunk coordinates.
|
double |
getNoise(double x,
double y,
double z) |
public ChunkInterpolator2(org.bukkit.World w, int chunkX, int chunkZ, BiomeGrid grid, FastNoiseLite noise)
chunkX
- X coordinate of the chunk.chunkZ
- Z coordinate of the chunk.grid
- BiomeGrid to use for noise fetching.noise
- FastNoiseLite instance to use.public double getNoise(double x, double z)
getNoise
in interface ChunkInterpolator
x
- The internal X coordinate (0-15).z
- The internal Z coordinate (0-15).public double getNoise(double x, double y, double z)
getNoise
in interface ChunkInterpolator
Copyright © 2020. All rights reserved.