Skip to content

Package net.minecraft.world.level.chunk.storage

Part 1/1


ChunkIOErrorReporter

  • Full name: net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/ChunkIOErrorReporter.java
  • Type: interface
  • Modifiers: public

net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter#createMisplacedChunkReport(ChunkPos,ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkIOErrorReporter.java:13
  • Modifiers: static
  • Return: ReportedException

คืออะไร

สร้าง Misplaced Chunk Report

ทำงานยังไง

เรียกต่อ: forThrowable(), addCategory(), setDetail(). สร้างออบเจ็กต์: IllegalStateException, ReportedException. คืนค่า: new ReportedException(crashReport).

Parameters

  • ChunkPos chunkPos
  • ChunkPos chunkPos2

ตัวอย่างใช้งาน

ChunkPos chunkPos = ...;
ChunkPos chunkPos2 = ...;
ReportedException result = ChunkIOErrorReporter.createMisplacedChunkReport(chunkPos, chunkPos2);

net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter#reportChunkLoadFailure(Throwable,RegionStorageInfo,ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkIOErrorReporter.java:9
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ reportChunkLoadFailure ตาม implementation ของ ChunkIOErrorReporter

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • Throwable throwable
  • RegionStorageInfo regionStorageInfo
  • ChunkPos chunkPos

ตัวอย่างใช้งาน

ChunkIOErrorReporter instance = ...;
Throwable throwable = ...;
RegionStorageInfo regionStorageInfo = ...;
ChunkPos chunkPos = ...;
instance.reportChunkLoadFailure(throwable, regionStorageInfo, chunkPos);

net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter#reportChunkSaveFailure(Throwable,RegionStorageInfo,ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkIOErrorReporter.java:11
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ reportChunkSaveFailure ตาม implementation ของ ChunkIOErrorReporter

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • Throwable throwable
  • RegionStorageInfo regionStorageInfo
  • ChunkPos chunkPos

ตัวอย่างใช้งาน

ChunkIOErrorReporter instance = ...;
Throwable throwable = ...;
RegionStorageInfo regionStorageInfo = ...;
ChunkPos chunkPos = ...;
instance.reportChunkSaveFailure(throwable, regionStorageInfo, chunkPos);

net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter#reportMisplacedChunk(ChunkPos,ChunkPos,RegionStorageInfo)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkIOErrorReporter.java:22
  • Modifiers: default
  • Return: void

คืออะไร

ดำเนินการ reportMisplacedChunk ตาม implementation ของ ChunkIOErrorReporter

ทำงานยังไง

เรียกต่อ: reportChunkLoadFailure(), createMisplacedChunkReport().

Parameters

  • ChunkPos chunkPos
  • ChunkPos chunkPos2
  • RegionStorageInfo regionStorageInfo

ตัวอย่างใช้งาน

ChunkIOErrorReporter instance = ...;
ChunkPos chunkPos = ...;
ChunkPos chunkPos2 = ...;
RegionStorageInfo regionStorageInfo = ...;
instance.reportMisplacedChunk(chunkPos, chunkPos2, regionStorageInfo);

ChunkScanAccess

  • Full name: net.minecraft.world.level.chunk.storage.ChunkScanAccess
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/ChunkScanAccess.java
  • Type: interface
  • Modifiers: public

net.minecraft.world.level.chunk.storage.ChunkScanAccess#scanChunk(ChunkPos,StreamTagVisitor)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkScanAccess.java:8
  • Modifiers: ``
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ scanChunk ตาม implementation ของ ChunkScanAccess

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ChunkPos chunkPos
  • StreamTagVisitor streamTagVisitor

ตัวอย่างใช้งาน

ChunkScanAccess instance = ...;
ChunkPos chunkPos = ...;
StreamTagVisitor streamTagVisitor = ...;
CompletableFuture<Void> result = instance.scanChunk(chunkPos, streamTagVisitor);

ChunkStorage

  • Full name: net.minecraft.world.level.chunk.storage.ChunkStorage
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/ChunkStorage.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

net.minecraft.world.level.chunk.storage.ChunkStorage#chunkScanner()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:129
  • Modifiers: public
  • Return: ChunkScanAccess

คืออะไร

ดำเนินการ chunkScanner ตาม implementation ของ ChunkStorage

ทำงานยังไง

คืนค่า: this.worker.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ChunkStorage instance = ...;
ChunkScanAccess result = instance.chunkScanner();

net.minecraft.world.level.chunk.storage.ChunkStorage#ChunkStorage(RegionStorageInfo,Path,DataFixer,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:32
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ChunkStorage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: fixerUpper, worker. สร้างออบเจ็กต์: IOWorker.

Parameters

  • RegionStorageInfo regionStorageInfo
  • Path path
  • DataFixer dataFixer
  • boolean bl

ตัวอย่างใช้งาน

RegionStorageInfo regionStorageInfo = ...;
Path path = ...;
DataFixer dataFixer = ...;
ChunkStorage instance = new ChunkStorage(regionStorageInfo, path, dataFixer, true);

net.minecraft.world.level.chunk.storage.ChunkStorage#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:124
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

ChunkStorage instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.ChunkStorage#flushWorker()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:120
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ flushWorker ตาม implementation ของ ChunkStorage

ทำงานยังไง

เรียกต่อ: synchronize(), join().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ChunkStorage instance = ...;
instance.flushWorker();

net.minecraft.world.level.chunk.storage.ChunkStorage#getVersion(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:101
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Version

ทำงานยังไง

เรียกต่อ: getDataVersion(). คืนค่า: NbtUtils.getDataVersion(compoundTag, -1).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
int result = ChunkStorage.getVersion(compoundTag);

net.minecraft.world.level.chunk.storage.ChunkStorage#handleLegacyStructureIndex(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:114
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Legacy Structure Index

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: removeIndex(), toLong().

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

ChunkPos chunkPos = ...;
@Override
protected void handleLegacyStructureIndex(ChunkPos chunkPos) {
    super.handleLegacyStructureIndex(chunkPos);
}

net.minecraft.world.level.chunk.storage.ChunkStorage#injectDatafixingContext(CompoundTag,ResourceKey<Level>,Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>>)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:88
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ injectDatafixingContext ตาม implementation ของ ChunkStorage

ทำงานยังไง

เรียกต่อ: putString(), location(), toString(), ifPresent(), put(). สร้างออบเจ็กต์: CompoundTag.

Parameters

  • CompoundTag compoundTag
  • ResourceKey<Level> resourceKey
  • Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>> optional

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
ResourceKey<Level> resourceKey = ...;
Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>> optional = ...;
ChunkStorage.injectDatafixingContext(compoundTag, resourceKey, optional);

net.minecraft.world.level.chunk.storage.ChunkStorage#isOldChunkAround(ChunkPos,int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:37
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Old Chunk Around

ทำงานยังไง

คืนค่า: this.worker.isOldChunkAround(chunkPos, i).

Parameters

  • ChunkPos chunkPos
  • int i

ตัวอย่างใช้งาน

ChunkStorage instance = ...;
ChunkPos chunkPos = ...;
boolean result = instance.isOldChunkAround(chunkPos, 0);

net.minecraft.world.level.chunk.storage.ChunkStorage#read(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:105
  • Modifiers: public
  • Return: CompletableFuture<Optional<CompoundTag>>

คืออะไร

อ่าน read

ทำงานยังไง

เรียกต่อ: loadAsync(). คืนค่า: this.worker.loadAsync(chunkPos).

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

ChunkStorage instance = ...;
ChunkPos chunkPos = ...;
CompletableFuture<Optional<CompoundTag>> result = instance.read(chunkPos);

net.minecraft.world.level.chunk.storage.ChunkStorage#storageInfo()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:133
  • Modifiers: protected
  • Return: RegionStorageInfo

คืออะไร

ดำเนินการ storageInfo ตาม implementation ของ ChunkStorage

ทำงานยังไง

คืนค่า: this.worker.storageInfo().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected RegionStorageInfo storageInfo() {
    return super.storageInfo();
}

net.minecraft.world.level.chunk.storage.ChunkStorage#upgradeChunkTag(ResourceKey<Level>,Supplier<DimensionDataStorage>,CompoundTag,Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>>)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:41
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

ดำเนินการ upgradeChunkTag ตาม implementation ของ ChunkStorage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getVersion(), getCurrentVersion(), getDataVersion(), update(), getCompound(), getBoolean(), getLegacyStructureHandler(), updateFromLegacy(). สร้างออบเจ็กต์: ReportedException. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ResourceKey<Level> resourceKey
  • Supplier<DimensionDataStorage> supplier
  • CompoundTag compoundTag
  • Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>> optional

ตัวอย่างใช้งาน

ChunkStorage instance = ...;
ResourceKey<Level> resourceKey = ...;
Supplier<DimensionDataStorage> supplier = ...;
CompoundTag compoundTag = ...;
Optional<ResourceKey<MapCodec<? extends ChunkGenerator>>> optional = ...;
CompoundTag result = instance.upgradeChunkTag(resourceKey, supplier, compoundTag, optional);

net.minecraft.world.level.chunk.storage.ChunkStorage#write(ChunkPos,Supplier<CompoundTag>)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/ChunkStorage.java:109
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: handleLegacyStructureIndex(), store(). คืนค่า: this.worker.store(chunkPos, supplier).

Parameters

  • ChunkPos chunkPos
  • Supplier<CompoundTag> supplier

ตัวอย่างใช้งาน

ChunkStorage instance = ...;
ChunkPos chunkPos = ...;
Supplier<CompoundTag> supplier = ...;
CompletableFuture<Void> result = instance.write(chunkPos, supplier);

EntityStorage

  • Full name: net.minecraft.world.level.chunk.storage.EntityStorage
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/EntityStorage.java
  • Type: class
  • Modifiers: public
  • Implements: EntityPersistentStorage<Entity>

net.minecraft.world.level.chunk.storage.EntityStorage#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/EntityStorage.java:132
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

EntityStorage instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.EntityStorage#EntityStorage(SimpleRegionStorage,ServerLevel,Executor)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/EntityStorage.java:36
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ EntityStorage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: simpleRegionStorage, level, entityDeserializerQueue. สร้างออบเจ็กต์: ConsecutiveExecutor.

Parameters

  • SimpleRegionStorage simpleRegionStorage
  • ServerLevel serverLevel
  • Executor executor

ตัวอย่างใช้งาน

SimpleRegionStorage simpleRegionStorage = ...;
ServerLevel serverLevel = ...;
Executor executor = ...;
EntityStorage instance = new EntityStorage(simpleRegionStorage, serverLevel, executor);

net.minecraft.world.level.chunk.storage.EntityStorage#flush(boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/EntityStorage.java:126
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ flush ตาม implementation ของ EntityStorage

ทำงานยังไง

เรียกต่อ: synchronize(), join(), runAll().

Parameters

  • boolean bl

ตัวอย่างใช้งาน

EntityStorage instance = ...;
instance.flush(true);

net.minecraft.world.level.chunk.storage.EntityStorage#loadEntities(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/EntityStorage.java:42
  • Modifiers: public
  • Return: CompletableFuture<ChunkEntities<Entity>>

คืออะไร

โหลด Entities

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), toLong(), completedFuture(), emptyChunk(), read(), reportLoadFailureIfPresent(), thenApplyAsync(), isEmpty(). สร้างออบเจ็กต์: ChunkEntities<>. มีจุด return อย่างน้อย 4 จุด.

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

EntityStorage instance = ...;
ChunkPos chunkPos = ...;
CompletableFuture<ChunkEntities<Entity>> result = instance.loadEntities(chunkPos);

net.minecraft.world.level.chunk.storage.EntityStorage#storeEntities(ChunkEntities<Entity>)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/EntityStorage.java:87
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ storeEntities ตาม implementation ของ EntityStorage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPos(), isEmpty(), add(), toLong(), reportSaveFailureIfPresent(), write(), getEntities(), forEach(). สร้างออบเจ็กต์: ListTag, CompoundTag.

Parameters

  • ChunkEntities<Entity> chunkEntities

ตัวอย่างใช้งาน

EntityStorage instance = ...;
ChunkEntities<Entity> chunkEntities = ...;
instance.storeEntities(chunkEntities);

IOWorker

  • Full name: net.minecraft.world.level.chunk.storage.IOWorker
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/IOWorker.java
  • Type: class
  • Modifiers: public
  • Implements: ChunkScanAccess,AutoCloseable

net.minecraft.world.level.chunk.storage.IOWorker#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:229
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: compareAndSet(), waitForShutdown(), error().

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

IOWorker instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.IOWorker#IOWorker(RegionStorageInfo,Path,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:38
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ IOWorker ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: storage, consecutiveExecutor. เรียกต่อ: values(), ioPool(), type(). สร้างออบเจ็กต์: RegionFileStorage, PriorityConsecutiveExecutor.

Parameters

  • RegionStorageInfo regionStorageInfo
  • Path path
  • boolean bl

ตัวอย่างใช้งาน

RegionStorageInfo regionStorageInfo = ...;
Path path = ...;
IOWorker instance = new IOWorker(regionStorageInfo, path, true);

net.minecraft.world.level.chunk.storage.IOWorker#isOldChunkAround(ChunkPos,int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:43
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Old Chunk Around

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getRegionX(), getRegionZ(), getOrCreateOldDataForRegion(), join(), isEmpty(), minFromRegion(), max(), min(). สร้างออบเจ็กต์: ChunkPos. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ChunkPos chunkPos
  • int i

ตัวอย่างใช้งาน

IOWorker instance = ...;
ChunkPos chunkPos = ...;
boolean result = instance.isOldChunkAround(chunkPos, 0);

net.minecraft.world.level.chunk.storage.IOWorker#loadAsync(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:129
  • Modifiers: public
  • Return: CompletableFuture<Optional<CompoundTag>>

คืออะไร

โหลด Async

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: submitThrowingTask(), get(), ofNullable(), copyData(), read(), warn(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

IOWorker instance = ...;
ChunkPos chunkPos = ...;
CompletableFuture<Optional<CompoundTag>> result = instance.loadAsync(chunkPos);

net.minecraft.world.level.chunk.storage.IOWorker#scanChunk(ChunkPos,StreamTagVisitor)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:162
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ scanChunk ตาม implementation ของ IOWorker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: submitThrowingTask(), get(), acceptAsRoot(), warn(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ChunkPos chunkPos
  • StreamTagVisitor streamTagVisitor

ตัวอย่างใช้งาน

IOWorker instance = ...;
ChunkPos chunkPos = ...;
StreamTagVisitor streamTagVisitor = ...;
CompletableFuture<Void> result = instance.scanChunk(chunkPos, streamTagVisitor);

net.minecraft.world.level.chunk.storage.IOWorker#storageInfo()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:247
  • Modifiers: public
  • Return: RegionStorageInfo

คืออะไร

ดำเนินการ storageInfo ตาม implementation ของ IOWorker

ทำงานยังไง

เรียกต่อ: info(). คืนค่า: this.storage.info().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

IOWorker instance = ...;
RegionStorageInfo result = instance.storageInfo();

net.minecraft.world.level.chunk.storage.IOWorker#store(ChunkPos,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:116
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ store ตาม implementation ของ IOWorker

ทำงานยังไง

คืนค่า: this.store(chunkPos, () -> compoundTag).

Parameters

  • ChunkPos chunkPos
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

IOWorker instance = ...;
ChunkPos chunkPos = ...;
CompoundTag compoundTag = ...;
CompletableFuture<Void> result = instance.store(chunkPos, compoundTag);

net.minecraft.world.level.chunk.storage.IOWorker#store(ChunkPos,Supplier<CompoundTag>)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:120
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ store ตาม implementation ของ IOWorker

ทำงานยังไง

เรียกต่อ: submitTask(), get(), computeIfAbsent(), PendingStore(), thenCompose(), identity(). สร้างออบเจ็กต์: IOWorker.PendingStore. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ChunkPos chunkPos
  • Supplier<CompoundTag> supplier

ตัวอย่างใช้งาน

IOWorker instance = ...;
ChunkPos chunkPos = ...;
Supplier<CompoundTag> supplier = ...;
CompletableFuture<Void> result = instance.store(chunkPos, supplier);

net.minecraft.world.level.chunk.storage.IOWorker#synchronize(boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/IOWorker.java:146
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ synchronize ตาม implementation ของ IOWorker

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: submitTask(), allOf(), values(), stream(), map(), toArray(), thenCompose(), identity(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

IOWorker instance = ...;
CompletableFuture<Void> result = instance.synchronize(true);

RecreatingChunkStorage

  • Full name: net.minecraft.world.level.chunk.storage.RecreatingChunkStorage
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/RecreatingChunkStorage.java
  • Type: class
  • Modifiers: public
  • Extends: ChunkStorage

net.minecraft.world.level.chunk.storage.RecreatingChunkStorage#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RecreatingChunkStorage.java:30
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: toFile(), exists(), deleteDirectory().

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

RecreatingChunkStorage instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.RecreatingChunkStorage#RecreatingChunkStorage(RegionStorageInfo,Path,RegionStorageInfo,Path,DataFixer,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RecreatingChunkStorage.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RecreatingChunkStorage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: writeFolder, writeWorker. สร้างออบเจ็กต์: IOWorker.

Parameters

  • RegionStorageInfo regionStorageInfo
  • Path path
  • RegionStorageInfo regionStorageInfo2
  • Path path2
  • DataFixer dataFixer
  • boolean bl

ตัวอย่างใช้งาน

RegionStorageInfo regionStorageInfo = ...;
Path path = ...;
RegionStorageInfo regionStorageInfo2 = ...;
Path path2 = ...;
DataFixer dataFixer = ...;
RecreatingChunkStorage instance = new RecreatingChunkStorage(regionStorageInfo, path, regionStorageInfo2, path2, dataFixer, true);

net.minecraft.world.level.chunk.storage.RecreatingChunkStorage#write(ChunkPos,Supplier<CompoundTag>)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RecreatingChunkStorage.java:24
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: handleLegacyStructureIndex(), store(). คืนค่า: this.writeWorker.store(chunkPos, supplier).

Parameters

  • ChunkPos chunkPos
  • Supplier<CompoundTag> supplier

ตัวอย่างใช้งาน

RecreatingChunkStorage instance = ...;
ChunkPos chunkPos = ...;
Supplier<CompoundTag> supplier = ...;
CompletableFuture<Void> result = instance.write(chunkPos, supplier);

RecreatingSimpleRegionStorage

  • Full name: net.minecraft.world.level.chunk.storage.RecreatingSimpleRegionStorage
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/RecreatingSimpleRegionStorage.java
  • Type: class
  • Modifiers: public
  • Extends: SimpleRegionStorage

net.minecraft.world.level.chunk.storage.RecreatingSimpleRegionStorage#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RecreatingSimpleRegionStorage.java:30
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: toFile(), exists(), deleteDirectory().

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

RecreatingSimpleRegionStorage instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.RecreatingSimpleRegionStorage#RecreatingSimpleRegionStorage(RegionStorageInfo,Path,RegionStorageInfo,Path,DataFixer,boolean,DataFixTypes)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RecreatingSimpleRegionStorage.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RecreatingSimpleRegionStorage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: writeFolder, writeWorker. สร้างออบเจ็กต์: IOWorker.

Parameters

  • RegionStorageInfo regionStorageInfo
  • Path path
  • RegionStorageInfo regionStorageInfo2
  • Path path2
  • DataFixer dataFixer
  • boolean bl
  • DataFixTypes dataFixTypes

ตัวอย่างใช้งาน

RegionStorageInfo regionStorageInfo = ...;
Path path = ...;
RegionStorageInfo regionStorageInfo2 = ...;
Path path2 = ...;
DataFixer dataFixer = ...;
DataFixTypes dataFixTypes = ...;
RecreatingSimpleRegionStorage instance = new RecreatingSimpleRegionStorage(regionStorageInfo, path, regionStorageInfo2, path2, dataFixer, true, dataFixTypes);

net.minecraft.world.level.chunk.storage.RecreatingSimpleRegionStorage#write(ChunkPos,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RecreatingSimpleRegionStorage.java:25
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: store(). คืนค่า: this.writeWorker.store(chunkPos, compoundTag).

Parameters

  • ChunkPos chunkPos
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

RecreatingSimpleRegionStorage instance = ...;
ChunkPos chunkPos = ...;
CompoundTag compoundTag = ...;
CompletableFuture<Void> result = instance.write(chunkPos, compoundTag);

RegionBitmap

  • Full name: net.minecraft.world.level.chunk.storage.RegionBitmap
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/RegionBitmap.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.chunk.storage.RegionBitmap#allocate(int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionBitmap.java:20
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ allocate ตาม implementation ของ RegionBitmap

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: nextClearBit(), nextSetBit(), force(). คืนค่า: k.

Parameters

  • int i

ตัวอย่างใช้งาน

RegionBitmap instance = ...;
int result = instance.allocate(0);

net.minecraft.world.level.chunk.storage.RegionBitmap#force(int,int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionBitmap.java:12
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ force ตาม implementation ของ RegionBitmap

ทำงานยังไง

เรียกต่อ: set().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

RegionBitmap instance = ...;
instance.force(0, 0);

net.minecraft.world.level.chunk.storage.RegionBitmap#free(int,int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionBitmap.java:16
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ free ตาม implementation ของ RegionBitmap

ทำงานยังไง

เรียกต่อ: clear().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

RegionBitmap instance = ...;
instance.free(0, 0);

net.minecraft.world.level.chunk.storage.RegionBitmap#getUsed()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionBitmap.java:35
  • Modifiers: public
  • Return: IntSet

คืออะไร

อ่านค่า Used

ทำงานยังไง

เรียกต่อ: stream(), collect(). คืนค่า: this.used.stream().collect(IntArraySet::new, IntCollection::add, IntCollection::addAll).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RegionBitmap instance = ...;
IntSet result = instance.getUsed();

RegionFile

  • Full name: net.minecraft.world.level.chunk.storage.RegionFile
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/RegionFile.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

net.minecraft.world.level.chunk.storage.RegionFile#clear(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:276
  • Modifiers: public
  • Return: void

คืออะไร

ล้าง clear

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOffsetIndex(), get(), put(), getTimestamp(), writeHeader(), deleteIfExists(), getExternalChunkPath(), free().

Parameters

  • ChunkPos chunkPos

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFile instance = ...;
ChunkPos chunkPos = ...;
instance.clear(chunkPos);

net.minecraft.world.level.chunk.storage.RegionFile#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:356
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: padToFullSector(), force().

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFile instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.RegionFile#doesChunkExist(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:220
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ doesChunkExist ตาม implementation ของ RegionFile

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getOffset(), getSectorNumber(), getNumSectors(), allocate(), read(), flip(), remaining(), getInt(). มีจุด return อย่างน้อย 9 จุด.

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

RegionFile instance = ...;
ChunkPos chunkPos = ...;
boolean result = instance.doesChunkExist(chunkPos);

net.minecraft.world.level.chunk.storage.RegionFile#flush()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:272
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ flush ตาม implementation ของ RegionFile

ทำงานยังไง

เรียกต่อ: force().

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFile instance = ...;
instance.flush();

net.minecraft.world.level.chunk.storage.RegionFile#getChunkDataInputStream(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:112
  • Modifiers: public synchronized
  • Return: DataInputStream

คืออะไร

อ่านค่า Chunk Data Input Stream

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOffset(), getSectorNumber(), getNumSectors(), allocate(), read(), flip(), remaining(), error(). มีจุด return อย่างน้อย 7 จุด.

Parameters

  • ChunkPos chunkPos

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFile instance = ...;
ChunkPos chunkPos = ...;
DataInputStream result = instance.getChunkDataInputStream(chunkPos);

net.minecraft.world.level.chunk.storage.RegionFile#getChunkDataOutputStream(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:268
  • Modifiers: public
  • Return: DataOutputStream

คืออะไร

อ่านค่า Chunk Data Output Stream

ทำงานยังไง

เรียกต่อ: wrap(), ChunkBuffer(). สร้างออบเจ็กต์: DataOutputStream, RegionFile.ChunkBuffer. คืนค่า: new DataOutputStream(this.version.wrap(new RegionFile.ChunkBuffer(chunkPos))).

Parameters

  • ChunkPos chunkPos

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFile instance = ...;
ChunkPos chunkPos = ...;
DataOutputStream result = instance.getChunkDataOutputStream(chunkPos);

net.minecraft.world.level.chunk.storage.RegionFile#getPath()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:103
  • Modifiers: public
  • Return: Path

คืออะไร

อ่านค่า Path

ทำงานยังไง

คืนค่า: this.path.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RegionFile instance = ...;
Path result = instance.getPath();

net.minecraft.world.level.chunk.storage.RegionFile#hasChunk(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:348
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Chunk

ทำงานยังไง

เรียกต่อ: getOffset(). คืนค่า: this.getOffset(chunkPos) != 0.

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

RegionFile instance = ...;
ChunkPos chunkPos = ...;
boolean result = instance.hasChunk(chunkPos);

net.minecraft.world.level.chunk.storage.RegionFile#RegionFile(RegionStorageInfo,Path,Path,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:48
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RegionFile ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getSelected().

Parameters

  • RegionStorageInfo regionStorageInfo
  • Path path
  • Path path2
  • boolean bl

Throws

  • IOException

ตัวอย่างใช้งาน

RegionStorageInfo regionStorageInfo = ...;
Path path = ...;
Path path2 = ...;
RegionFile instance = new RegionFile(regionStorageInfo, path, path2, true);

net.minecraft.world.level.chunk.storage.RegionFile#RegionFile(RegionStorageInfo,Path,Path,RegionFileVersion,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:52
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RegionFile ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: info, path, version, externalFileDir, offsets, timestamps. เรียกต่อ: isDirectory(), toAbsolutePath(), asIntBuffer(), limit(), position(), open(), force(), read(). สร้างออบเจ็กต์: IllegalArgumentException.

Parameters

  • RegionStorageInfo regionStorageInfo
  • Path path
  • Path path2
  • RegionFileVersion regionFileVersion
  • boolean bl

Throws

  • IOException

ตัวอย่างใช้งาน

RegionStorageInfo regionStorageInfo = ...;
Path path = ...;
Path path2 = ...;
RegionFileVersion regionFileVersion = ...;
RegionFile instance = new RegionFile(regionStorageInfo, path, path2, regionFileVersion, true);

net.minecraft.world.level.chunk.storage.RegionFile#write(ChunkPos,ByteBuffer)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFile.java:288
  • Modifiers: protected synchronized
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOffsetIndex(), get(), getSectorNumber(), getNumSectors(), remaining(), sizeToSectors(), getExternalChunkPath(), warn().

Parameters

  • ChunkPos chunkPos
  • ByteBuffer byteBuffer

Throws

  • IOException

ตัวอย่างใช้งาน

ChunkPos chunkPos = ...;
ByteBuffer byteBuffer = ...;
@Override
protected void write(ChunkPos chunkPos, ByteBuffer byteBuffer) {
    super.write(chunkPos, byteBuffer);
}

RegionFileStorage

  • Full name: net.minecraft.world.level.chunk.storage.RegionFileStorage
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/RegionFileStorage.java
  • Type: class
  • Modifiers: public final
  • Implements: AutoCloseable

net.minecraft.world.level.chunk.storage.RegionFileStorage#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileStorage.java:79
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: values(), add(), throwIfPresent(). สร้างออบเจ็กต์: ExceptionCollector<>.

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFileStorage instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.RegionFileStorage#flush()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileStorage.java:94
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ flush ตาม implementation ของ RegionFileStorage

ทำงานยังไง

มีการวนลูป. เรียกต่อ: values().

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFileStorage instance = ...;
instance.flush();

net.minecraft.world.level.chunk.storage.RegionFileStorage#info()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileStorage.java:100
  • Modifiers: public
  • Return: RegionStorageInfo

คืออะไร

ดำเนินการ info ตาม implementation ของ RegionFileStorage

ทำงานยังไง

คืนค่า: this.info.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RegionFileStorage instance = ...;
RegionStorageInfo result = instance.info();

net.minecraft.world.level.chunk.storage.RegionFileStorage#read(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileStorage.java:49
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

อ่าน read

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getRegionFile(), getChunkDataInputStream(). คืนค่า: dataInputStream == null ? null : NbtIo.read(dataInputStream).

Parameters

  • ChunkPos chunkPos

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFileStorage instance = ...;
ChunkPos chunkPos = ...;
CompoundTag result = instance.read(chunkPos);

net.minecraft.world.level.chunk.storage.RegionFileStorage#scanChunk(ChunkPos,StreamTagVisitor)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileStorage.java:58
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ scanChunk ตาม implementation ของ RegionFileStorage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getRegionFile(), getChunkDataInputStream(), parse(), unlimitedHeap().

Parameters

  • ChunkPos chunkPos
  • StreamTagVisitor streamTagVisitor

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFileStorage instance = ...;
ChunkPos chunkPos = ...;
StreamTagVisitor streamTagVisitor = ...;
instance.scanChunk(chunkPos, streamTagVisitor);

net.minecraft.world.level.chunk.storage.RegionFileStorage#write(ChunkPos,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileStorage.java:68
  • Modifiers: protected
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getRegionFile(), clear(), getChunkDataOutputStream().

Parameters

  • ChunkPos chunkPos
  • CompoundTag compoundTag

Throws

  • IOException

ตัวอย่างใช้งาน

ChunkPos chunkPos = ...;
CompoundTag compoundTag = ...;
@Override
protected void write(ChunkPos chunkPos, CompoundTag compoundTag) {
    super.write(chunkPos, compoundTag);
}

RegionFileVersion

  • Full name: net.minecraft.world.level.chunk.storage.RegionFileVersion
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/RegionFileVersion.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.chunk.storage.RegionFileVersion#configure(String)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileVersion.java:87
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ configure ตาม implementation ของ RegionFileVersion

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), error(), join(), keySet().

Parameters

  • String string

ตัวอย่างใช้งาน

RegionFileVersion.configure("value");

net.minecraft.world.level.chunk.storage.RegionFileVersion#fromId(int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileVersion.java:82
  • Modifiers: public static
  • Return: RegionFileVersion

คืออะไร

ดำเนินการ fromId ตาม implementation ของ RegionFileVersion

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: VERSIONS.get(i).

Parameters

  • int i

ตัวอย่างใช้งาน

RegionFileVersion result = RegionFileVersion.fromId(0);

net.minecraft.world.level.chunk.storage.RegionFileVersion#getId()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileVersion.java:106
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RegionFileVersion instance = ...;
int result = instance.getId();

net.minecraft.world.level.chunk.storage.RegionFileVersion#getSelected()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileVersion.java:98
  • Modifiers: public static
  • Return: RegionFileVersion

คืออะไร

อ่านค่า Selected

ทำงานยังไง

คืนค่า: selected.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RegionFileVersion result = RegionFileVersion.getSelected();

net.minecraft.world.level.chunk.storage.RegionFileVersion#isValidVersion(int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileVersion.java:102
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Valid Version

ทำงานยังไง

เรียกต่อ: containsKey(). คืนค่า: VERSIONS.containsKey(i).

Parameters

  • int i

ตัวอย่างใช้งาน

boolean result = RegionFileVersion.isValidVersion(0);

net.minecraft.world.level.chunk.storage.RegionFileVersion#wrap(InputStream)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileVersion.java:114
  • Modifiers: public
  • Return: InputStream

คืออะไร

ดำเนินการ wrap ตาม implementation ของ RegionFileVersion

ทำงานยังไง

คืนค่า: this.inputWrapper.wrap(inputStream).

Parameters

  • InputStream inputStream

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFileVersion instance = ...;
InputStream inputStream = ...;
InputStream result = instance.wrap(inputStream);

net.minecraft.world.level.chunk.storage.RegionFileVersion#wrap(OutputStream)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionFileVersion.java:110
  • Modifiers: public
  • Return: OutputStream

คืออะไร

ดำเนินการ wrap ตาม implementation ของ RegionFileVersion

ทำงานยังไง

คืนค่า: this.outputWrapper.wrap(outputStream).

Parameters

  • OutputStream outputStream

Throws

  • IOException

ตัวอย่างใช้งาน

RegionFileVersion instance = ...;
OutputStream outputStream = ...;
OutputStream result = instance.wrap(outputStream);

RegionStorageInfo

  • Full name: net.minecraft.world.level.chunk.storage.RegionStorageInfo
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/RegionStorageInfo.java
  • Type: record
  • Modifiers: public

net.minecraft.world.level.chunk.storage.RegionStorageInfo#withTypeSuffix(String)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/RegionStorageInfo.java:7
  • Modifiers: public
  • Return: RegionStorageInfo

คืออะไร

ดำเนินการ withTypeSuffix ตาม implementation ของ RegionStorageInfo

ทำงานยังไง

สร้างออบเจ็กต์: RegionStorageInfo. คืนค่า: new RegionStorageInfo(this.level, this.dimension, this.type + string).

Parameters

  • String string

ตัวอย่างใช้งาน

RegionStorageInfo instance = ...;
RegionStorageInfo result = instance.withTypeSuffix("value");

SectionStorage

  • Full name: net.minecraft.world.level.chunk.storage.SectionStorage
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/SectionStorage.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

net.minecraft.world.level.chunk.storage.SectionStorage#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:301
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

SectionStorage instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.SectionStorage#flush(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:295
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ flush ตาม implementation ของ SectionStorage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: remove(), toLong(), writeChunk().

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

SectionStorage instance = ...;
ChunkPos chunkPos = ...;
instance.flush(chunkPos);

net.minecraft.world.level.chunk.storage.SectionStorage#flushAll()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:109
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ flushAll ตาม implementation ของ SectionStorage

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), forEach(), writeChunk(), clear(). สร้างออบเจ็กต์: ChunkPos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SectionStorage instance = ...;
instance.flushAll();

net.minecraft.world.level.chunk.storage.SectionStorage#get(long)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:120
  • Modifiers: protected
  • Return: Optional<R>

คืออะไร

อ่านค่า get

ทำงานยังไง

คืนค่า: this.storage.get(l).

Parameters

  • long l

ตัวอย่างใช้งาน

@Override
protected Optional<R> get(long l) {
    return super.get(l);
}

net.minecraft.world.level.chunk.storage.SectionStorage#getOrCreate(long)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:149
  • Modifiers: protected
  • Return: R

คืออะไร

อ่านค่า Or Create

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: outsideStoredRange(), pauseInIde(), getOrLoad(), isPresent(), get(), apply(), setDirty(), put(). สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • long l

ตัวอย่างใช้งาน

@Override
protected R getOrCreate(long l) {
    return super.getOrCreate(l);
}

net.minecraft.world.level.chunk.storage.SectionStorage#getOrLoad(long)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:125
  • Modifiers: protected
  • Return: Optional<R>

คืออะไร

อ่านค่า Or Load

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: outsideStoredRange(), empty(), get(), unpackChunk(), of(), chunk(), pauseInIde(). สร้างออบเจ็กต์: IllegalStateException. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • long l

ตัวอย่างใช้งาน

@Override
protected Optional<R> getOrLoad(long l) {
    return super.getOrLoad(l);
}

net.minecraft.world.level.chunk.storage.SectionStorage#hasWork()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:116
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Work

ทำงานยังไง

เรียกต่อ: isEmpty(). คืนค่า: !this.dirtyChunks.isEmpty().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SectionStorage instance = ...;
boolean result = instance.hasWork();

net.minecraft.world.level.chunk.storage.SectionStorage#onSectionLoad(long)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:279
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการเหตุการณ์ Section Load

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • long l

ตัวอย่างใช้งาน

@Override
protected void onSectionLoad(long l) {
    super.onSectionLoad(l);
}

net.minecraft.world.level.chunk.storage.SectionStorage#outsideStoredRange(long)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:144
  • Modifiers: protected
  • Return: boolean

คืออะไร

ดำเนินการ outsideStoredRange ตาม implementation ของ SectionStorage

ทำงานยังไง

เรียกต่อ: sectionToBlockCoord(), y(), isOutsideBuildHeight(). คืนค่า: this.levelHeightAccessor.isOutsideBuildHeight(i).

Parameters

  • long l

ตัวอย่างใช้งาน

@Override
protected boolean outsideStoredRange(long l) {
    return super.outsideStoredRange(l);
}

net.minecraft.world.level.chunk.storage.SectionStorage#prefetch(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:164
  • Modifiers: public
  • Return: CompletableFuture<?>

คืออะไร

ดำเนินการ prefetch ตาม implementation ของ SectionStorage

ทำงานยังไง

มีส่วนที่ synchronize การทำงาน. เรียกต่อ: toLong(), contains(), completedFuture(), computeIfAbsent(), tryRead(). คืนค่า: this.loadedChunks.contains(l) ? CompletableFuture.completedFuture(null) : this.pendingLoads.computeIfAbsent(l, lx -> this.tryRead(chunkPos)).

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

SectionStorage instance = ...;
ChunkPos chunkPos = ...;
CompletableFuture<?> result = instance.prefetch(chunkPos);

net.minecraft.world.level.chunk.storage.SectionStorage#SectionStorage(SimpleRegionStorage,Codec<P>,Function<R, P>,BiFunction<P, Runnable, R>,Function<Runnable, R>,RegistryAccess,ChunkIOErrorReporter,LevelHeightAccessor)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:60
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SectionStorage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: simpleRegionStorage, codec, packer, unpacker, factory, registryAccess.

Parameters

  • SimpleRegionStorage simpleRegionStorage
  • Codec<P> codec
  • Function<R, P> function
  • BiFunction<P, Runnable, R> biFunction
  • Function<Runnable, R> function2
  • RegistryAccess registryAccess
  • ChunkIOErrorReporter chunkIOErrorReporter
  • LevelHeightAccessor levelHeightAccessor

ตัวอย่างใช้งาน

SimpleRegionStorage simpleRegionStorage = ...;
Codec<P> codec = ...;
Function<R, P> function = ...;
BiFunction<P, Runnable, R> biFunction = ...;
Function<Runnable, R> function2 = ...;
RegistryAccess registryAccess = ...;
ChunkIOErrorReporter chunkIOErrorReporter = ...;
LevelHeightAccessor levelHeightAccessor = ...;
SectionStorage instance = new SectionStorage(simpleRegionStorage, codec, function, biFunction, function2, registryAccess, chunkIOErrorReporter, levelHeightAccessor);

net.minecraft.world.level.chunk.storage.SectionStorage#setDirty(long)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:282
  • Modifiers: protected
  • Return: void

คืออะไร

กำหนดค่า Dirty

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get(), isEmpty(), add(), asLong(), x(), z(), warn(), of().

Parameters

  • long l

ตัวอย่างใช้งาน

@Override
protected void setDirty(long l) {
    super.setDirty(l);
}

net.minecraft.world.level.chunk.storage.SectionStorage#tick(BooleanSupplier)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SectionStorage.java:80
  • Modifiers: protected
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

มีการวนลูป. เรียกต่อ: iterator(), hasNext(), getAsBoolean(), nextLong(), remove(), writeChunk(), unpackPendingLoads(). สร้างออบเจ็กต์: ChunkPos.

Parameters

  • BooleanSupplier booleanSupplier

ตัวอย่างใช้งาน

BooleanSupplier booleanSupplier = ...;
@Override
protected void tick(BooleanSupplier booleanSupplier) {
    super.tick(booleanSupplier);
}

SerializableChunkData

  • Full name: net.minecraft.world.level.chunk.storage.SerializableChunkData
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/SerializableChunkData.java
  • Type: record
  • Modifiers: public

net.minecraft.world.level.chunk.storage.SerializableChunkData#copyOf(ServerLevel,ChunkAccess)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SerializableChunkData.java:366
  • Modifiers: public static
  • Return: SerializableChunkData

คืออะไร

คัดลอก Of

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: canBeSerialized(), getPos(), getSections(), getChunkSource(), getLightEngine(), getMinLightSection(), getMaxLightSection(), getSectionIndexFromSectionY(). สร้างออบเจ็กต์: IllegalArgumentException, ArrayList<>, SerializableChunkData.SectionData, EnumMap<>.

Parameters

  • ServerLevel serverLevel
  • ChunkAccess chunkAccess

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
ChunkAccess chunkAccess = ...;
SerializableChunkData result = SerializableChunkData.copyOf(serverLevel, chunkAccess);

net.minecraft.world.level.chunk.storage.SerializableChunkData#getChunkTypeFromTag(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SerializableChunkData.java:541
  • Modifiers: public static
  • Return: ChunkType

คืออะไร

อ่านค่า Chunk Type From Tag

ทำงานยังไง

เรียกต่อ: byName(), getString(), getChunkType(). คืนค่า: compoundTag != null ? ChunkStatus.byName(compoundTag.getString("Status")).getChunkType() : ChunkType.PROTOCHUNK.

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
ChunkType result = SerializableChunkData.getChunkTypeFromTag(compoundTag);

net.minecraft.world.level.chunk.storage.SerializableChunkData#parse(LevelHeightAccessor,RegistryAccess,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SerializableChunkData.java:110
  • Modifiers: public static
  • Return: SerializableChunkData

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: contains(), getInt(), getLong(), byName(), getString(), getCompound(), getBoolean(), resultOrPartial(). สร้างออบเจ็กต์: ChunkPos, UpgradeData, EnumMap<>, ChunkAccess.PackedTicks. คืนค่า: null.

Parameters

  • LevelHeightAccessor levelHeightAccessor
  • RegistryAccess registryAccess
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

LevelHeightAccessor levelHeightAccessor = ...;
RegistryAccess registryAccess = ...;
CompoundTag compoundTag = ...;
SerializableChunkData result = SerializableChunkData.parse(levelHeightAccessor, registryAccess, compoundTag);

net.minecraft.world.level.chunk.storage.SerializableChunkData#read(ServerLevel,PoiManager,RegionStorageInfo,ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SerializableChunkData.java:242
  • Modifiers: public
  • Return: ProtoChunk

คืออะไร

อ่าน read

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: equals(), error(), getServer(), reportMisplacedChunk(), getSectionsCount(), dimensionType(), hasSkyLight(), getChunkSource(). สร้างออบเจ็กต์: LevelChunkTicks<>, LevelChunk, ProtoChunk, ImposterProtoChunk. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ServerLevel serverLevel
  • PoiManager poiManager
  • RegionStorageInfo regionStorageInfo
  • ChunkPos chunkPos

ตัวอย่างใช้งาน

SerializableChunkData instance = ...;
ServerLevel serverLevel = ...;
PoiManager poiManager = ...;
RegionStorageInfo regionStorageInfo = ...;
ChunkPos chunkPos = ...;
ProtoChunk result = instance.read(serverLevel, poiManager, regionStorageInfo, chunkPos);

net.minecraft.world.level.chunk.storage.SerializableChunkData#write()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SerializableChunkData.java:447
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

เขียน write

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: addCurrentDataVersion(), putInt(), putLong(), putString(), getKey(), toString(), encodeStart(), resultOrPartial(). สร้างออบเจ็กต์: CompoundTag, ListTag, LongArrayTag. คืนค่า: compoundTag.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SerializableChunkData instance = ...;
CompoundTag result = instance.write();

SerializableChunkData$ChunkReadException

  • Full name: net.minecraft.world.level.chunk.storage.SerializableChunkData$ChunkReadException
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/SerializableChunkData.java
  • Type: class
  • Modifiers: public static
  • Extends: NbtException

net.minecraft.world.level.chunk.storage.SerializableChunkData$ChunkReadException#ChunkReadException(String)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SerializableChunkData.java:663
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SerializableChunkData.ChunkReadException ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • String string

ตัวอย่างใช้งาน

SerializableChunkData.ChunkReadException instance = new SerializableChunkData.ChunkReadException("value");

SimpleRegionStorage

  • Full name: net.minecraft.world.level.chunk.storage.SimpleRegionStorage
  • Package: net.minecraft.world.level.chunk.storage
  • Source: commonnet/minecraft/world/level/chunk/storage/SimpleRegionStorage.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#close()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:48
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

Throws

  • IOException

ตัวอย่างใช้งาน

SimpleRegionStorage instance = ...;
instance.close();

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#read(ChunkPos)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:27
  • Modifiers: public
  • Return: CompletableFuture<Optional<CompoundTag>>

คืออะไร

อ่าน read

ทำงานยังไง

เรียกต่อ: loadAsync(). คืนค่า: this.worker.loadAsync(chunkPos).

Parameters

  • ChunkPos chunkPos

ตัวอย่างใช้งาน

SimpleRegionStorage instance = ...;
ChunkPos chunkPos = ...;
CompletableFuture<Optional<CompoundTag>> result = instance.read(chunkPos);

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#SimpleRegionStorage(RegionStorageInfo,Path,DataFixer,boolean,DataFixTypes)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SimpleRegionStorage ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: fixerUpper, dataFixType, worker. สร้างออบเจ็กต์: IOWorker.

Parameters

  • RegionStorageInfo regionStorageInfo
  • Path path
  • DataFixer dataFixer
  • boolean bl
  • DataFixTypes dataFixTypes

ตัวอย่างใช้งาน

RegionStorageInfo regionStorageInfo = ...;
Path path = ...;
DataFixer dataFixer = ...;
DataFixTypes dataFixTypes = ...;
SimpleRegionStorage instance = new SimpleRegionStorage(regionStorageInfo, path, dataFixer, true, dataFixTypes);

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#storageInfo()

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:53
  • Modifiers: public
  • Return: RegionStorageInfo

คืออะไร

ดำเนินการ storageInfo ตาม implementation ของ SimpleRegionStorage

ทำงานยังไง

คืนค่า: this.worker.storageInfo().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleRegionStorage instance = ...;
RegionStorageInfo result = instance.storageInfo();

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#synchronize(boolean)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:44
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ synchronize ตาม implementation ของ SimpleRegionStorage

ทำงานยังไง

คืนค่า: this.worker.synchronize(bl).

Parameters

  • boolean bl

ตัวอย่างใช้งาน

SimpleRegionStorage instance = ...;
CompletableFuture<Void> result = instance.synchronize(true);

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#upgradeChunkTag(CompoundTag,int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:35
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

ดำเนินการ upgradeChunkTag ตาม implementation ของ SimpleRegionStorage

ทำงานยังไง

เรียกต่อ: getDataVersion(), updateToCurrentVersion(). คืนค่า: this.dataFixType.updateToCurrentVersion(this.fixerUpper, compoundTag, j).

Parameters

  • CompoundTag compoundTag
  • int i

ตัวอย่างใช้งาน

SimpleRegionStorage instance = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.upgradeChunkTag(compoundTag, 0);

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#upgradeChunkTag(Dynamic<Tag>,int)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:40
  • Modifiers: public
  • Return: Dynamic<Tag>

คืออะไร

ดำเนินการ upgradeChunkTag ตาม implementation ของ SimpleRegionStorage

ทำงานยังไง

เรียกต่อ: updateToCurrentVersion(). คืนค่า: this.dataFixType.updateToCurrentVersion(this.fixerUpper, dynamic, i).

Parameters

  • Dynamic<Tag> dynamic
  • int i

ตัวอย่างใช้งาน

SimpleRegionStorage instance = ...;
Dynamic<Tag> dynamic = ...;
Dynamic<Tag> result = instance.upgradeChunkTag(dynamic, 0);

net.minecraft.world.level.chunk.storage.SimpleRegionStorage#write(ChunkPos,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/chunk/storage/SimpleRegionStorage.java:31
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: store(). คืนค่า: this.worker.store(chunkPos, compoundTag).

Parameters

  • ChunkPos chunkPos
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

SimpleRegionStorage instance = ...;
ChunkPos chunkPos = ...;
CompoundTag compoundTag = ...;
CompletableFuture<Void> result = instance.write(chunkPos, compoundTag);