Class CachedChunkSectionCountProvider
java.lang.Object
com.zenith.cache.data.mcpl.CachedChunkSectionCountProvider
- All Implemented Interfaces:
ChunkSectionCountProvider
A local cache run on the packet event loop for ClientboundLevelChunkWithLight packet deserialization.
This is purposefully not run and should not be called from the client event loop to avoid data desync
Basically all we need to do is track the current dimension, which will give us the correct section count.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sectionCount
protected int sectionCount
-
-
Constructor Details
-
CachedChunkSectionCountProvider
public CachedChunkSectionCountProvider()
-
-
Method Details
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCountin interfaceChunkSectionCountProvider
-
updateDimension
-