类 SectionStorage<R>

java.lang.Object
net.minecraft.world.level.chunk.storage.SectionStorage<R>
所有已实现的接口:
AutoCloseable
直接已知子类:
PoiManager

public class SectionStorage<R> extends Object implements AutoCloseable
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • SECTIONS_TAG

      private static final String SECTIONS_TAG
      另请参阅:
    • worker

      private final IOWorker worker
    • storage

      private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Optional<R>> storage
    • dirty

      private final it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet dirty
    • codec

      private final Function<Runnable,com.mojang.serialization.Codec<R>> codec
    • factory

      private final Function<Runnable,R> factory
    • fixerUpper

      private final com.mojang.datafixers.DataFixer fixerUpper
    • type

      private final DataFixTypes type
    • registryAccess

      private final RegistryAccess registryAccess
    • levelHeightAccessor

      protected final LevelHeightAccessor levelHeightAccessor
  • 构造器详细资料

  • 方法详细资料

    • tick

      protected void tick(BooleanSupplier pAheadOfTime)
    • hasWork

      public boolean hasWork()
    • get

      @Nullable protected Optional<R> get(long pSectionKey)
    • getOrLoad

      protected Optional<R> getOrLoad(long pSectionKey)
    • outsideStoredRange

      protected boolean outsideStoredRange(long pSectionKey)
    • getOrCreate

      protected R getOrCreate(long pSectionKey)
    • readColumn

      private void readColumn(ChunkPos pChunkPos)
    • tryRead

      private CompletableFuture<Optional<CompoundTag>> tryRead(ChunkPos pChunkPos)
    • readColumn

      private <T> void readColumn(ChunkPos pChunkPos, com.mojang.serialization.DynamicOps<T> pOps, @Nullable T pValue)
    • writeColumn

      private void writeColumn(ChunkPos pChunkPos)
    • writeColumn

      private <T> com.mojang.serialization.Dynamic<T> writeColumn(ChunkPos pChunkPos, com.mojang.serialization.DynamicOps<T> pOps)
    • getKey

      private static long getKey(ChunkPos pChunkPos, int pSectionY)
    • onSectionLoad

      protected void onSectionLoad(long pSectionKey)
    • setDirty

      protected void setDirty(long pSectionPos)
    • getVersion

      private static int getVersion(com.mojang.serialization.Dynamic<?> pColumnData)
    • flush

      public void flush(ChunkPos pChunkPos)
    • close

      public void close() throws IOException
      指定者:
      close 在接口中 AutoCloseable
      抛出:
      IOException