public class ChunkInterpolator3 extends Object implements ChunkInterpolator
ChunkInterpolator.InterpolationType
Constructor and Description |
---|
ChunkInterpolator3(org.bukkit.World w,
int chunkX,
int chunkZ,
BiomeGrid grid,
FastNoiseLite noise)
Instantiates a 3D 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) |
double |
getNoise(double x,
double y,
double z)
Gets the noise at a pair of internal chunk coordinates.
|
public ChunkInterpolator3(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
public double getNoise(double x, double y, double z)
getNoise
in interface ChunkInterpolator
x
- The internal X coordinate (0-15).z
- The internal Z coordinate (0-15).Copyright © 2020. All rights reserved.