Skip to content

Commit af45da8

Browse files
Added interface to NewChunks module (#338)
1 parent 186c324 commit af45da8

File tree

1 file changed

+16
-0
lines changed
  • src/main/kotlin/com/lambda/client/module/modules/render

1 file changed

+16
-0
lines changed

src/main/kotlin/com/lambda/client/module/modules/render/NewChunks.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,22 @@ object NewChunks : Module(
338338
return Vec2d((x shl 4).toDouble(), (z shl 4).toDouble()).minus(playerOffset).div(scale.toDouble())
339339
}
340340

341+
fun getChunks(): ConcurrentHashMap<ChunkPos, Long> {
342+
return chunks
343+
}
344+
345+
fun addChunk(chunk: ChunkPos) {
346+
chunks[chunk] = System.currentTimeMillis()
347+
}
348+
349+
fun addChunk(chunk: ChunkPos, time: Long) {
350+
chunks[chunk] = time
351+
}
352+
353+
fun removeChunk(chunk: ChunkPos) {
354+
chunks.remove(chunk)
355+
}
356+
341357
private fun saveNewChunk(log: PrintWriter?, data: String) {
342358
log!!.println(data)
343359
}

0 commit comments

Comments
 (0)