mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Make Y the height above the dimension's bottom everywhere in the API: document it, and drop GenerationContext.originY, which is always 0 now
This commit is contained in:
1 parent
33fc9adca9
commit
09afee8ae3
26 files changed
+91
-54
No files matched your search
@@ -3,11 +3,12 @@ package com.volmit.world;
|
||||
import com.volmit.mantle.BlockBox;
|
||||
|
||||
/** Read-only host sampling for the same pack snapshot as the invocation.
|
||||
* Bounds are world blocks, maxima exclusive. Sampling outside prepared bounds fails with
|
||||
* X and Z are world coordinates; Y is the height above the dimension's bottom (0 = bottom).
|
||||
* Bounds use the same coordinates, maxima exclusive. Sampling outside prepared bounds fails with
|
||||
* IndexOutOfBoundsException. Views expire with the invocation and must not escape it.
|
||||
*/
|
||||
public interface TerrainSampler {
|
||||
BlockBox bounds();
|
||||
TerrainSample column(int worldX, int worldZ);
|
||||
BiomeSample biome(int worldX, int worldY, int worldZ);
|
||||
BiomeSample biome(int worldX, int y, int worldZ);
|
||||
}
|
||||
Reference in new issue
Block a user