Package net.minecraft.client.multiplayer
Class ClientChunkCache.Storage
java.lang.Object
net.minecraft.client.multiplayer.ClientChunkCache.Storage
- Enclosing class:
ClientChunkCache
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) final int
(package private) final AtomicReferenceArray
<LevelChunk> (package private) final it.unimi.dsi.fastutil.longs.LongOpenHashSet
(package private) int
(package private) int
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addEmptySections
(LevelChunk pChunk) (package private) void
drop
(int pChunkIndex, LevelChunk pChunk) private void
dropEmptySections
(LevelChunk pChunk) private void
dumpChunks
(String pFilePath) protected LevelChunk
getChunk
(int pChunkIndex) (package private) int
getIndex
(int pX, int pZ) (package private) boolean
inRange
(int pX, int pZ) void
onSectionEmptinessChanged
(int pX, int pY, int pZ, boolean pIsEmpty) (package private) void
refreshEmptySections
(LevelChunk pChunk) (package private) void
replace
(int pChunkIndex, LevelChunk pChunk)
-
Field Details
-
chunks
-
loadedEmptySections
final it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections -
chunkRadius
final int chunkRadius -
viewRange
private final int viewRange -
viewCenterX
volatile int viewCenterX -
viewCenterZ
volatile int viewCenterZ -
chunkCount
int chunkCount
-
-
Constructor Details
-
Storage
Storage(int pChunkRadius)
-
-
Method Details
-
getIndex
int getIndex(int pX, int pZ) -
replace
-
drop
-
onSectionEmptinessChanged
public void onSectionEmptinessChanged(int pX, int pY, int pZ, boolean pIsEmpty) -
dropEmptySections
-
addEmptySections
-
refreshEmptySections
-
inRange
boolean inRange(int pX, int pZ) -
getChunk
-
dumpChunks
-