mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-20 19:22:48 +00:00
24 lines
350 B
Java
24 lines
350 B
Java
package com.volmit.iris.util;
|
|
|
|
import com.volmit.iris.object.IrisBiome;
|
|
|
|
public class BiomeMap
|
|
{
|
|
private final IrisBiome[] height;
|
|
|
|
public BiomeMap()
|
|
{
|
|
height = new IrisBiome[256];
|
|
}
|
|
|
|
public void setBiome(int x, int z, IrisBiome h)
|
|
{
|
|
height[x * 16 + z] = h;
|
|
}
|
|
|
|
public IrisBiome getBiome(int x, int z)
|
|
{
|
|
return height[x * 16 + z];
|
|
}
|
|
}
|