类 RegionFile
- java.lang.Object
-
- net.minecraft.world.storage.RegionFile
-
- 所有已实现的接口:
AutoCloseable
public class RegionFile extends Object implements AutoCloseable
- Mappings:
Namespace Name official cmnintermediary net/minecraft/class_2861named net/minecraft/world/storage/RegionFile
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) classRegionFile.ChunkBuffer(专用程序包) static interfaceRegionFile.OutputAction
-
字段概要
字段 修饰符和类型 字段 说明 private FileChannelchannelprivate Pathdirectoryprotected static intfield_31417private static intfield_31418private static intfield_31419private static intfield_31420private static Stringfield_31421private static intfield_31422private static intfield_31423private static intfield_31424private ByteBufferheaderprivate static LoggerLOGGERprivate ChunkStreamVersionoutputChunkStreamVersionprivate IntBuffersaveTimesprivate IntBuffersectorDataprotected SectorMapsectorsprivate static ByteBufferZERO
-
构造器概要
构造器 构造器 说明 RegionFile(File file, File directory, boolean dsync)RegionFile(Path file, Path directory, ChunkStreamVersion outputChunkStreamVersion, boolean dsync)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()private voidfillLastSector()@Nullable DataInputStreamgetChunkInputStream(ChunkPos pos)DataOutputStreamgetChunkOutputStream(ChunkPos pos)private static bytegetChunkStreamVersionId(byte byte2)private PathgetExternalChunkPath(ChunkPos chunkPos)private static intgetIndex(ChunkPos pos)private static ByteArrayInputStreamgetInputStream(ByteBuffer buffer, int length)private static intgetOffset(int sectorData)private static intgetSectorCount(int byteCount)private intgetSectorData(ChunkPos pos)private static intgetSize(int sectorData)booleanhasChunk(ChunkPos pos)private static booleanhasChunkStreamVersionId(byte byte2)booleanisChunkValid(ChunkPos pos)private ByteBuffermethod_22406()private @Nullable DataInputStreammethod_22408(ChunkPos chunkPos, byte byte2)private @Nullable DataInputStreammethod_22409(ChunkPos chunkPos, byte byte2, InputStream inputStream)private static intmethod_31739()voidmethod_31740(ChunkPos chunkPos)private intpackSectorData(int offset, int size)voidsync()protected voidwriteChunk(ChunkPos pos, ByteBuffer byteBuffer)private voidwriteHeader()private RegionFile.OutputActionwriteSafely(Path path, ByteBuffer byteBuffer)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official cLcmn;c:Lorg/apache/logging/log4j/Logger;intermediary field_20434Lnet/minecraft/class_2861;field_20434:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/storage/RegionFile;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_31418
private static final int field_31418
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLcmn;d:Iintermediary field_31418Lnet/minecraft/class_2861;field_31418:Inamed field_31418Lnet/minecraft/world/storage/RegionFile;field_31418:I
-
field_31417
protected static final int field_31417
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLcmn;a:Iintermediary field_31417Lnet/minecraft/class_2861;field_31417:Inamed field_31417Lnet/minecraft/world/storage/RegionFile;field_31417:I
-
field_31419
private static final int field_31419
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLcmn;e:Iintermediary field_31419Lnet/minecraft/class_2861;field_31419:Inamed field_31419Lnet/minecraft/world/storage/RegionFile;field_31419:I
-
field_31420
private static final int field_31420
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLcmn;f:Iintermediary field_31420Lnet/minecraft/class_2861;field_31420:Inamed field_31420Lnet/minecraft/world/storage/RegionFile;field_31420:I
-
ZERO
private static final ByteBuffer ZERO
- Mappings:
Namespace Name Mixin selector official gLcmn;g:Ljava/nio/ByteBuffer;intermediary field_20435Lnet/minecraft/class_2861;field_20435:Ljava/nio/ByteBuffer;named ZEROLnet/minecraft/world/storage/RegionFile;ZERO:Ljava/nio/ByteBuffer;
-
field_31421
private static final String field_31421
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official hLcmn;h:Ljava/lang/String;intermediary field_31421Lnet/minecraft/class_2861;field_31421:Ljava/lang/String;named field_31421Lnet/minecraft/world/storage/RegionFile;field_31421:Ljava/lang/String;
-
field_31422
private static final int field_31422
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official iLcmn;i:Iintermediary field_31422Lnet/minecraft/class_2861;field_31422:Inamed field_31422Lnet/minecraft/world/storage/RegionFile;field_31422:I
-
field_31423
private static final int field_31423
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official jLcmn;j:Iintermediary field_31423Lnet/minecraft/class_2861;field_31423:Inamed field_31423Lnet/minecraft/world/storage/RegionFile;field_31423:I
-
field_31424
private static final int field_31424
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official kLcmn;k:Iintermediary field_31424Lnet/minecraft/class_2861;field_31424:Inamed field_31424Lnet/minecraft/world/storage/RegionFile;field_31424:I
-
channel
private final FileChannel channel
- Mappings:
Namespace Name Mixin selector official lLcmn;l:Ljava/nio/channels/FileChannel;intermediary field_20436Lnet/minecraft/class_2861;field_20436:Ljava/nio/channels/FileChannel;named channelLnet/minecraft/world/storage/RegionFile;channel:Ljava/nio/channels/FileChannel;
-
directory
private final Path directory
- Mappings:
Namespace Name Mixin selector official mLcmn;m:Ljava/nio/file/Path;intermediary field_20657Lnet/minecraft/class_2861;field_20657:Ljava/nio/file/Path;named directoryLnet/minecraft/world/storage/RegionFile;directory:Ljava/nio/file/Path;
-
outputChunkStreamVersion
private final ChunkStreamVersion outputChunkStreamVersion
- Mappings:
Namespace Name Mixin selector official nLcmn;n:Lcmp;intermediary field_20437Lnet/minecraft/class_2861;field_20437:Lnet/minecraft/class_4486;named outputChunkStreamVersionLnet/minecraft/world/storage/RegionFile;outputChunkStreamVersion:Lnet/minecraft/world/storage/ChunkStreamVersion;
-
header
private final ByteBuffer header
- Mappings:
Namespace Name Mixin selector official oLcmn;o:Ljava/nio/ByteBuffer;intermediary field_20438Lnet/minecraft/class_2861;field_20438:Ljava/nio/ByteBuffer;named headerLnet/minecraft/world/storage/RegionFile;header:Ljava/nio/ByteBuffer;
-
sectorData
private final IntBuffer sectorData
- Mappings:
Namespace Name Mixin selector official pLcmn;p:Ljava/nio/IntBuffer;intermediary field_20439Lnet/minecraft/class_2861;field_20439:Ljava/nio/IntBuffer;named sectorDataLnet/minecraft/world/storage/RegionFile;sectorData:Ljava/nio/IntBuffer;
-
saveTimes
private final IntBuffer saveTimes
- Mappings:
Namespace Name Mixin selector official qLcmn;q:Ljava/nio/IntBuffer;intermediary field_20440Lnet/minecraft/class_2861;field_20440:Ljava/nio/IntBuffer;named saveTimesLnet/minecraft/world/storage/RegionFile;saveTimes:Ljava/nio/IntBuffer;
-
sectors
protected final SectorMap sectors
- Mappings:
Namespace Name Mixin selector official bLcmn;b:Lcmm;intermediary field_20441Lnet/minecraft/class_2861;field_20441:Lnet/minecraft/class_4485;named sectorsLnet/minecraft/world/storage/RegionFile;sectors:Lnet/minecraft/world/storage/SectorMap;
-
-
构造器详细资料
-
RegionFile
public RegionFile(File file, File directory, boolean dsync) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official <init>Lcmn;<init>(Ljava/io/File;Ljava/io/File;Z)Vintermediary <init>Lnet/minecraft/class_2861;<init>(Ljava/io/File;Ljava/io/File;Z)Vnamed <init>Lnet/minecraft/world/storage/RegionFile;<init>(Ljava/io/File;Ljava/io/File;Z)V
-
RegionFile
public RegionFile(Path file, Path directory, ChunkStreamVersion outputChunkStreamVersion, boolean dsync) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official <init>Lcmn;<init>(Ljava/nio/file/Path;Ljava/nio/file/Path;Lcmp;Z)Vintermediary <init>Lnet/minecraft/class_2861;<init>(Ljava/nio/file/Path;Ljava/nio/file/Path;Lnet/minecraft/class_4486;Z)Vnamed <init>Lnet/minecraft/world/storage/RegionFile;<init>(Ljava/nio/file/Path;Ljava/nio/file/Path;Lnet/minecraft/world/storage/ChunkStreamVersion;Z)V
-
-
方法详细资料
-
getExternalChunkPath
private Path getExternalChunkPath(ChunkPos chunkPos)
- Mappings:
Namespace Name Mixin selector official fLcmn;f(Lbuw;)Ljava/nio/file/Path;intermediary method_22413Lnet/minecraft/class_2861;method_22413(Lnet/minecraft/class_1923;)Ljava/nio/file/Path;named getExternalChunkPathLnet/minecraft/world/storage/RegionFile;getExternalChunkPath(Lnet/minecraft/util/math/ChunkPos;)Ljava/nio/file/Path;
-
getChunkInputStream
@Nullable public @Nullable DataInputStream getChunkInputStream(ChunkPos pos) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmn;a(Lbuw;)Ljava/io/DataInputStream;intermediary method_21873Lnet/minecraft/class_2861;method_21873(Lnet/minecraft/class_1923;)Ljava/io/DataInputStream;named getChunkInputStreamLnet/minecraft/world/storage/RegionFile;getChunkInputStream(Lnet/minecraft/util/math/ChunkPos;)Ljava/io/DataInputStream;
-
method_31739
private static int method_31739()
- Mappings:
Namespace Name Mixin selector official bLcmn;b()Iintermediary method_31739Lnet/minecraft/class_2861;method_31739()Inamed method_31739Lnet/minecraft/world/storage/RegionFile;method_31739()I
-
hasChunkStreamVersionId
private static boolean hasChunkStreamVersionId(byte byte2)
- Mappings:
Namespace Name Mixin selector official aLcmn;a(B)Zintermediary method_22407Lnet/minecraft/class_2861;method_22407(B)Znamed hasChunkStreamVersionIdLnet/minecraft/world/storage/RegionFile;hasChunkStreamVersionId(B)Z
-
getChunkStreamVersionId
private static byte getChunkStreamVersionId(byte byte2)
- Mappings:
Namespace Name Mixin selector official bLcmn;b(B)Bintermediary method_22412Lnet/minecraft/class_2861;method_22412(B)Bnamed getChunkStreamVersionIdLnet/minecraft/world/storage/RegionFile;getChunkStreamVersionId(B)B
-
method_22409
@Nullable private @Nullable DataInputStream method_22409(ChunkPos chunkPos, byte byte2, InputStream inputStream) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmn;a(Lbuw;BLjava/io/InputStream;)Ljava/io/DataInputStream;intermediary method_22409Lnet/minecraft/class_2861;method_22409(Lnet/minecraft/class_1923;BLjava/io/InputStream;)Ljava/io/DataInputStream;named method_22409Lnet/minecraft/world/storage/RegionFile;method_22409(Lnet/minecraft/util/math/ChunkPos;BLjava/io/InputStream;)Ljava/io/DataInputStream;
-
method_22408
@Nullable private @Nullable DataInputStream method_22408(ChunkPos chunkPos, byte byte2) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmn;a(Lbuw;B)Ljava/io/DataInputStream;intermediary method_22408Lnet/minecraft/class_2861;method_22408(Lnet/minecraft/class_1923;B)Ljava/io/DataInputStream;named method_22408Lnet/minecraft/world/storage/RegionFile;method_22408(Lnet/minecraft/util/math/ChunkPos;B)Ljava/io/DataInputStream;
-
getInputStream
private static ByteArrayInputStream getInputStream(ByteBuffer buffer, int length)
- Mappings:
Namespace Name Mixin selector official aLcmn;a(Ljava/nio/ByteBuffer;I)Ljava/io/ByteArrayInputStream;intermediary method_21876Lnet/minecraft/class_2861;method_21876(Ljava/nio/ByteBuffer;I)Ljava/io/ByteArrayInputStream;named getInputStreamLnet/minecraft/world/storage/RegionFile;getInputStream(Ljava/nio/ByteBuffer;I)Ljava/io/ByteArrayInputStream;
-
packSectorData
private int packSectorData(int offset, int size)- Mappings:
Namespace Name Mixin selector official aLcmn;a(II)Iintermediary method_21872Lnet/minecraft/class_2861;method_21872(II)Inamed packSectorDataLnet/minecraft/world/storage/RegionFile;packSectorData(II)I
-
getSize
private static int getSize(int sectorData)
- Mappings:
Namespace Name Mixin selector official aLcmn;a(I)Iintermediary method_21871Lnet/minecraft/class_2861;method_21871(I)Inamed getSizeLnet/minecraft/world/storage/RegionFile;getSize(I)I
-
getOffset
private static int getOffset(int sectorData)
- Mappings:
Namespace Name Mixin selector official bLcmn;b(I)Iintermediary method_21878Lnet/minecraft/class_2861;method_21878(I)Inamed getOffsetLnet/minecraft/world/storage/RegionFile;getOffset(I)I
-
getSectorCount
private static int getSectorCount(int byteCount)
- Mappings:
Namespace Name Mixin selector official cLcmn;c(I)Iintermediary method_21880Lnet/minecraft/class_2861;method_21880(I)Inamed getSectorCountLnet/minecraft/world/storage/RegionFile;getSectorCount(I)I
-
isChunkValid
public boolean isChunkValid(ChunkPos pos)
- Mappings:
Namespace Name Mixin selector official bLcmn;b(Lbuw;)Zintermediary method_21879Lnet/minecraft/class_2861;method_21879(Lnet/minecraft/class_1923;)Znamed isChunkValidLnet/minecraft/world/storage/RegionFile;isChunkValid(Lnet/minecraft/util/math/ChunkPos;)Z
-
getChunkOutputStream
public DataOutputStream getChunkOutputStream(ChunkPos pos) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official cLcmn;c(Lbuw;)Ljava/io/DataOutputStream;intermediary method_21881Lnet/minecraft/class_2861;method_21881(Lnet/minecraft/class_1923;)Ljava/io/DataOutputStream;named getChunkOutputStreamLnet/minecraft/world/storage/RegionFile;getChunkOutputStream(Lnet/minecraft/util/math/ChunkPos;)Ljava/io/DataOutputStream;
-
sync
public void sync() throws IOException- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmn;a()Vintermediary method_26981Lnet/minecraft/class_2861;method_26981()Vnamed syncLnet/minecraft/world/storage/RegionFile;sync()V
-
method_31740
public void method_31740(ChunkPos chunkPos) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official dLcmn;d(Lbuw;)Vintermediary method_31740Lnet/minecraft/class_2861;method_31740(Lnet/minecraft/class_1923;)Vnamed method_31740Lnet/minecraft/world/storage/RegionFile;method_31740(Lnet/minecraft/util/math/ChunkPos;)V
-
writeChunk
protected void writeChunk(ChunkPos pos, ByteBuffer byteBuffer) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmn;a(Lbuw;Ljava/nio/ByteBuffer;)Vintermediary method_21874Lnet/minecraft/class_2861;method_21874(Lnet/minecraft/class_1923;Ljava/nio/ByteBuffer;)Vnamed writeChunkLnet/minecraft/world/storage/RegionFile;writeChunk(Lnet/minecraft/util/math/ChunkPos;Ljava/nio/ByteBuffer;)V
-
method_22406
private ByteBuffer method_22406()
- Mappings:
Namespace Name Mixin selector official cLcmn;c()Ljava/nio/ByteBuffer;intermediary method_22406Lnet/minecraft/class_2861;method_22406()Ljava/nio/ByteBuffer;named method_22406Lnet/minecraft/world/storage/RegionFile;method_22406()Ljava/nio/ByteBuffer;
-
writeSafely
private RegionFile.OutputAction writeSafely(Path path, ByteBuffer byteBuffer) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmn;a(Ljava/nio/file/Path;Ljava/nio/ByteBuffer;)Lcmn$b;intermediary method_22410Lnet/minecraft/class_2861;method_22410(Ljava/nio/file/Path;Ljava/nio/ByteBuffer;)Lnet/minecraft/class_2861$class_4549;named writeSafelyLnet/minecraft/world/storage/RegionFile;writeSafely(Ljava/nio/file/Path;Ljava/nio/ByteBuffer;)Lnet/minecraft/world/storage/RegionFile$OutputAction;
-
writeHeader
private void writeHeader() throws IOException- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official dLcmn;d()Vintermediary method_21870Lnet/minecraft/class_2861;method_21870()Vnamed writeHeaderLnet/minecraft/world/storage/RegionFile;writeHeader()V
-
getSectorData
private int getSectorData(ChunkPos pos)
- Mappings:
Namespace Name Mixin selector official gLcmn;g(Lbuw;)Iintermediary method_12419Lnet/minecraft/class_2861;method_12419(Lnet/minecraft/class_1923;)Inamed getSectorDataLnet/minecraft/world/storage/RegionFile;getSectorData(Lnet/minecraft/util/math/ChunkPos;)I
-
hasChunk
public boolean hasChunk(ChunkPos pos)
- Mappings:
Namespace Name Mixin selector official eLcmn;e(Lbuw;)Zintermediary method_12423Lnet/minecraft/class_2861;method_12423(Lnet/minecraft/class_1923;)Znamed hasChunkLnet/minecraft/world/storage/RegionFile;hasChunk(Lnet/minecraft/util/math/ChunkPos;)Z
-
getIndex
private static int getIndex(ChunkPos pos)
- Mappings:
Namespace Name Mixin selector official hLcmn;h(Lbuw;)Iintermediary method_17909Lnet/minecraft/class_2861;method_17909(Lnet/minecraft/class_1923;)Inamed getIndexLnet/minecraft/world/storage/RegionFile;getIndex(Lnet/minecraft/util/math/ChunkPos;)I
-
close
public void close() throws IOException- 指定者:
close在接口中AutoCloseable- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official closeLcmn;close()Vintermediary closeLnet/minecraft/class_2861;close()Vnamed closeLnet/minecraft/world/storage/RegionFile;close()V
-
fillLastSector
private void fillLastSector() throws IOException- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official eLcmn;e()Vintermediary method_21877Lnet/minecraft/class_2861;method_21877()Vnamed fillLastSectorLnet/minecraft/world/storage/RegionFile;fillLastSector()V
-
-