类 ChunkStorageData
java.lang.Object
pers.saikel0rado1iu.silk.util.world.upgrade.data.ChunkStorageData
区块储存数据
此类用于解析被存储在 Anvil 文件格式 (*.mca) 中的区块数据而不需要使用 ServerWorld。
并提供类似于 ChunkSerializer 中的解析方法,并提供一些包含在 Chunk
中的部分基础方法以供判断或操控区块储存文件。
- 从以下版本开始:
- 0.2.0
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static intblockToChunkCoord(int blockCoord) static ChunkStorageData.Builderbuilder(net.minecraft.util.math.ChunkPos pos) static intchunkToBlockCoord(int chunkCoord) static ChunkStorageDatadeserialize(net.minecraft.server.SaveLoader saveLoader, net.minecraft.world.level.storage.LevelStorage.Session session, net.minecraft.util.math.ChunkPos pos, net.minecraft.nbt.NbtCompound nbt) net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.biome.Biome>getBiome(net.minecraft.util.math.BlockPos pos) @Nullable net.minecraft.nbt.NbtCompoundgetBlockEntityNbt(net.minecraft.util.math.BlockPos pos) Map<net.minecraft.util.math.BlockPos,net.minecraft.nbt.NbtCompound> intnet.minecraft.util.math.ChunkPosList<net.minecraft.nbt.NbtCompound>intlong[]getHeightmap(net.minecraft.world.Heightmap.Type type) Map<net.minecraft.world.Heightmap.Type,long[]> longbooleannet.minecraft.world.chunk.ChunkSectiongetSection(net.minecraft.util.math.ChunkSectionPos pos) net.minecraft.util.math.ChunkSectionPosgetSectionIndex(net.minecraft.util.math.BlockPos pos) Map<net.minecraft.util.math.ChunkSectionPos,net.minecraft.world.chunk.ChunkSection> Map<net.minecraft.world.gen.structure.Structure,it.unimi.dsi.fastutil.longs.LongSet> it.unimi.dsi.fastutil.longs.LongSetgetStructureReferences(net.minecraft.world.gen.structure.Structure structure) @Nullable net.minecraft.structure.StructureStartgetStructureStart(net.minecraft.world.gen.structure.Structure structure) Map<net.minecraft.world.gen.structure.Structure,net.minecraft.structure.StructureStart> int
-
方法详细资料
-
builder
-
blockToChunkCoord
-
chunkToBlockCoord
-
deserialize
@SilkApi public static ChunkStorageData deserialize(net.minecraft.server.SaveLoader saveLoader, net.minecraft.world.level.storage.LevelStorage.Session session, net.minecraft.util.math.ChunkPos pos, net.minecraft.nbt.NbtCompound nbt) -
getHeight
-
getButton
-
getTotalHeight
-
getSectionIndex
@SilkApi public net.minecraft.util.math.ChunkSectionPos getSectionIndex(net.minecraft.util.math.BlockPos pos) -
getSection
@SilkApi public net.minecraft.world.chunk.ChunkSection getSection(net.minecraft.util.math.ChunkSectionPos pos) -
getBiome
@SilkApi public net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.biome.Biome> getBiome(net.minecraft.util.math.BlockPos pos) -
getStructureStart
@SilkApi @Nullable public @Nullable net.minecraft.structure.StructureStart getStructureStart(net.minecraft.world.gen.structure.Structure structure) -
getStructureReferences
@SilkApi public it.unimi.dsi.fastutil.longs.LongSet getStructureReferences(net.minecraft.world.gen.structure.Structure structure) -
getHeightmap
-
getBlockEntityNbt
@SilkApi @Nullable public @Nullable net.minecraft.nbt.NbtCompound getBlockEntityNbt(net.minecraft.util.math.BlockPos pos) -
getChunkPos
-
getIsLightOn
-
getInhabitedTime
-
getEntities
-
getHeightmaps
-
getBlockEntityNbts
-
getSections
-
getStructureStarts
-
getStructureReferences
-