Class ClientChunkProvider.ChunkArray

  • Enclosing class:
    ClientChunkProvider

    final class ClientChunkProvider.ChunkArray
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ChunkArray​(int p_i50568_2_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Chunk getChunk​(int p_217192_1_)  
      private int getIndex​(int p_217191_1_, int p_217191_2_)  
      private boolean inRange​(int p_217183_1_, int p_217183_2_)  
      protected void replace​(int p_217181_1_, Chunk p_217181_2_)  
      protected Chunk replace​(int p_217190_1_, Chunk p_217190_2_, Chunk p_217190_3_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • chunks

        private final java.util.concurrent.atomic.AtomicReferenceArray<Chunk> chunks
      • chunkRadius

        private final int chunkRadius
      • viewRange

        private final int viewRange
      • viewCenterX

        private volatile int viewCenterX
      • viewCenterZ

        private volatile int viewCenterZ
      • chunkCount

        private int chunkCount
    • Constructor Detail

      • ChunkArray

        private ChunkArray​(int p_i50568_2_)
    • Method Detail

      • getIndex

        private int getIndex​(int p_217191_1_,
                             int p_217191_2_)
      • replace

        protected void replace​(int p_217181_1_,
                               @Nullable
                               Chunk p_217181_2_)
      • replace

        protected Chunk replace​(int p_217190_1_,
                                Chunk p_217190_2_,
                                @Nullable
                                Chunk p_217190_3_)
      • inRange

        private boolean inRange​(int p_217183_1_,
                                int p_217183_2_)
      • getChunk

        @Nullable
        protected Chunk getChunk​(int p_217192_1_)