Пример #1
0
 public boolean chunkExists(int cx, int cy) {
   return cx >= 0
       && cy >= 0
       && cx < sizeChunks
       && cy < sizeChunks
       && chunks.keys.contains(Chunk.getChunkIndex(cx, cy));
 }
Пример #2
0
 public Chunk getChunk(int cx, int cy) {
   return chunks.get(Chunk.getChunkIndex(cx, cy));
 }