public List <RedGrassInstance> Read(int x, int z, int ymin, int ymax) { int cx = x >> SHIFT; int cz = z >> SHIFT; RGChunk chunk = mChunks [cx, cz]; if (chunk != null) { return(chunk.Read(x, z, ymin, ymax)); } return(new List <RedGrassInstance>()); }
public RedGrassInstance Read(int x, int y, int z) { int cx = x >> SHIFT; int cz = z >> SHIFT; RGChunk chunk = mChunks [cx, cz]; if (chunk != null) { return(chunk.Read(x, y, z)); } return(new RedGrassInstance()); }