private void removeChunkMeshBatch(ChunkMeshBatch batch) { chunkRenderers.remove(batch); chunkRenderersByPosition.remove(batch.getX(), batch.getY(), batch.getZ()); }
private void addChunkMeshBatch(ChunkMeshBatch batch) { chunkRenderers.add(batch); chunkRenderersByPosition.put(batch.getX(), batch.getY(), batch.getZ(), batch); }