Class CachedChunkSectionCountProvider

java.lang.Object
com.zenith.cache.data.mcpl.CachedChunkSectionCountProvider
All Implemented Interfaces:
ChunkSectionCountProvider

public class CachedChunkSectionCountProvider extends Object implements 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 Details

    • sectionCount

      protected int sectionCount
  • Constructor Details

    • CachedChunkSectionCountProvider

      public CachedChunkSectionCountProvider()
  • Method Details