RegionFileCache (#237)

Mapped the same as Scaevolus' original :)
This commit is contained in:
Jamie Mansfield 2018-12-03 20:19:42 +00:00 committed by Adrian Siekierka
parent 4bca70994b
commit b8dc7de893
2 changed files with 21 additions and 1 deletions

View File

@ -14,6 +14,7 @@ CLASS bqy net/minecraft/world/chunk/storage/RegionFile
FIELD h lastModified J
METHOD a getChunkDataInputStream (II)Ljava/io/DataInputStream;
ARG 1 x
ARG 2 z
METHOD a setOffset (III)V
ARG 1 x
ARG 2 z
@ -26,15 +27,19 @@ CLASS bqy net/minecraft/world/chunk/storage/RegionFile
ARG 2 data
METHOD b (II)Z
ARG 1 x
ARG 2 z
METHOD b setTimestamp (III)V
ARG 1 x
ARG 2 z
METHOD c close ()V
METHOD c (II)Ljava/io/DataOutputStream;
METHOD c getChunkDataOutputStream (II)Ljava/io/DataOutputStream;
ARG 1 x
ARG 2 z
METHOD d hasChunk (II)Z
ARG 1 x
METHOD e outOfBounds (II)Z
ARG 1 x
ARG 2 z
METHOD f getOffset (II)I
ARG 1 x
ARG 2 z

View File

@ -0,0 +1,15 @@
CLASS bqz net/minecraft/world/chunk/storage/RegionFileCache
FIELD a CACHE Ljava/util/Map;
METHOD a clear ()V
METHOD a getRegionFile (Ljava/io/File;II)Lbqy;
ARG 0 basePath
ARG 1 chunkX
ARG 2 chunkZ
METHOD d getChunkDataInputStream (Ljava/io/File;II)Ljava/io/DataInputStream;
ARG 0 basePath
ARG 1 chunkX
ARG 2 chunkZ
METHOD e getChunkDataOutputStream (Ljava/io/File;II)Ljava/io/DataOutputStream;
ARG 0 basePath
ARG 1 chunkX
ARG 2 chunkZ