Class IOWorker

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class IOWorker
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • IOWorker

        protected IOWorker​(java.io.File p_i231890_1_,
                           boolean p_i231890_2_,
                           java.lang.String p_i231890_3_)
    • Method Detail

      • store

        public java.util.concurrent.CompletableFuture<java.lang.Void> store​(ChunkPos p_227093_1_,
                                                                            CompoundNBT p_227093_2_)
      • load

        @Nullable
        public CompoundNBT load​(ChunkPos p_227090_1_)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • synchronize

        public java.util.concurrent.CompletableFuture<java.lang.Void> synchronize()
      • submitTask

        private <T> java.util.concurrent.CompletableFuture<T> submitTask​(java.util.function.Supplier<com.mojang.datafixers.util.Either<T,​java.lang.Exception>> p_235975_1_)
      • storePendingChunk

        private void storePendingChunk()
      • tellStorePending

        private void tellStorePending()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException