From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/DataInputStream.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Minecraft.World/DataInputStream.h (limited to 'Minecraft.World/DataInputStream.h') diff --git a/Minecraft.World/DataInputStream.h b/Minecraft.World/DataInputStream.h new file mode 100644 index 00000000..f69d490a --- /dev/null +++ b/Minecraft.World/DataInputStream.h @@ -0,0 +1,35 @@ +#pragma once +// 4J Stu - Represents Java standard library class (although we miss out an intermediate inheritance class that we don't care about) + +#include "InputStream.h" +#include "DataInput.h" + +class DataInputStream : public InputStream, public DataInput +{ +private: + InputStream *stream; + +public: + DataInputStream(InputStream *in); + virtual int read(); + virtual int read(byteArray b); + virtual int read(byteArray b, unsigned int offset, unsigned int length); + virtual void close(); + virtual bool readBoolean(); + virtual byte readByte(); + virtual unsigned char readUnsignedByte(); + virtual wchar_t readChar(); + virtual bool readFully(byteArray b); + virtual bool readFully(charArray b); + virtual double readDouble(); + virtual float readFloat(); + virtual int readInt(); + virtual __int64 readLong(); + virtual short readShort(); + virtual wstring readUTF(); + void deleteChildStream(); + virtual int readUTFChar(); + virtual PlayerUID readPlayerUID(); // 4J Added + virtual __int64 skip(__int64 n); + virtual int skipBytes(int n); +}; \ No newline at end of file -- cgit v1.2.3