From 40e9b1cba45a250eae0b278510009cee0c616b75 Mon Sep 17 00:00:00 2001 From: austin Date: Tue, 5 Nov 2024 15:01:08 -0500 Subject: [PATCH] comment work --- .../terrain/cache/ClientTerrainCache.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/java/electrosphere/client/terrain/cache/ClientTerrainCache.java b/src/main/java/electrosphere/client/terrain/cache/ClientTerrainCache.java index 802b8f44..c1628975 100644 --- a/src/main/java/electrosphere/client/terrain/cache/ClientTerrainCache.java +++ b/src/main/java/electrosphere/client/terrain/cache/ClientTerrainCache.java @@ -16,13 +16,24 @@ import io.github.studiorailgun.HashUtils; */ public class ClientTerrainCache { - //cache capacity + /** + * Cache capacity + */ int cacheSize; - //the map of chunk key -> chunk data + + /** + * The map of chunk key -> chunk data + */ Map cacheMap = new ConcurrentHashMap(); - //the list of keys in the cache + + /** + * The list of keys in the cache + */ List cacheList = new CopyOnWriteArrayList(); - //A map of chunk to its world position + + /** + * A map of chunk to its world position + */ Map chunkPositionMap = new ConcurrentHashMap(); /**