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) intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddEmptySections(LevelChunk pChunk) (package private) voiddrop(int pChunkIndex, LevelChunk pChunk) private voiddropEmptySections(LevelChunk pChunk) private voiddumpChunks(String pFilePath) protected LevelChunkgetChunk(int pChunkIndex) (package private) intgetIndex(int pX, int pZ) (package private) booleaninRange(int pX, int pZ) voidonSectionEmptinessChanged(int pX, int pY, int pZ, boolean pIsEmpty) (package private) voidrefreshEmptySections(LevelChunk pChunk) (package private) voidreplace(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
-