baltica 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,8 @@ import type { ClientCacheStatusPacket } from "../network/client-cache-status";
|
|
|
4
4
|
import type { Advertisement } from "@sanctumterra/raknet";
|
|
5
5
|
import type { AddPaintingPacket } from "../network/packets";
|
|
6
6
|
export declare enum ProtocolList {
|
|
7
|
-
"1.21.50" = 766
|
|
7
|
+
"1.21.50" = 766,
|
|
8
|
+
"1.21.60" = 776
|
|
8
9
|
}
|
|
9
10
|
export declare enum DeviceOS {
|
|
10
11
|
Undefined = 0,
|
|
@@ -5,6 +5,7 @@ const protocol_1 = require("@serenityjs/protocol");
|
|
|
5
5
|
var ProtocolList;
|
|
6
6
|
(function (ProtocolList) {
|
|
7
7
|
ProtocolList[ProtocolList["1.21.50"] = 766] = "1.21.50";
|
|
8
|
+
ProtocolList[ProtocolList["1.21.60"] = 776] = "1.21.60";
|
|
8
9
|
})(ProtocolList || (exports.ProtocolList = ProtocolList = {}));
|
|
9
10
|
var DeviceOS;
|
|
10
11
|
(function (DeviceOS) {
|
|
@@ -32,7 +33,7 @@ const defaultClientOptions = {
|
|
|
32
33
|
compressionMethod: protocol_1.CompressionMethod.Zlib,
|
|
33
34
|
compressionLevel: 7,
|
|
34
35
|
deviceOS: DeviceOS.NintendoSwitch,
|
|
35
|
-
version: "1.21.
|
|
36
|
+
version: "1.21.60",
|
|
36
37
|
username: "SanctumTerra",
|
|
37
38
|
tokensFolder: "tokens",
|
|
38
39
|
viewDistance: 10,
|
|
@@ -26,7 +26,7 @@ class PacketCompressor {
|
|
|
26
26
|
case protocol_1.CompressionMethod.Zlib:
|
|
27
27
|
return (0, node_zlib_1.inflateRawSync)(buffer);
|
|
28
28
|
case protocol_1.CompressionMethod.Snappy:
|
|
29
|
-
throw new Error("Snappy compression is not supported");
|
|
29
|
+
throw new Error("Snappy compression is not supported <Inflate>");
|
|
30
30
|
default:
|
|
31
31
|
return buffer;
|
|
32
32
|
}
|
|
@@ -68,7 +68,7 @@ class PacketCompressor {
|
|
|
68
68
|
case protocol_1.CompressionMethod.Zlib:
|
|
69
69
|
return (0, node_zlib_1.deflateRawSync)(buffer);
|
|
70
70
|
case protocol_1.CompressionMethod.Snappy:
|
|
71
|
-
throw new Error("Snappy compression is not supported");
|
|
71
|
+
throw new Error("Snappy compression is not supported <Deflate>");
|
|
72
72
|
default:
|
|
73
73
|
return buffer;
|
|
74
74
|
}
|
|
@@ -2,7 +2,7 @@ import { CompressionMethod, type DataPacket } from "@serenityjs/protocol";
|
|
|
2
2
|
import type * as Protocol from "@serenityjs/protocol";
|
|
3
3
|
import type { PacketNames } from "../client";
|
|
4
4
|
import type { ClientCacheStatusPacket } from "../network/client-cache-status";
|
|
5
|
-
type Version = "1.21.50";
|
|
5
|
+
type Version = "1.21.50" | "1.21.60";
|
|
6
6
|
export type PlayerEvents = {
|
|
7
7
|
[K in PacketNames]: [packet: InstanceType<(typeof Protocol)[K]>];
|
|
8
8
|
} & {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baltica",
|
|
3
3
|
"description": "A MCBE Utility Library",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"minecraft": "1.21.
|
|
4
|
+
"version": "0.0.06",
|
|
5
|
+
"minecraft": "1.21.60",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
+
"license": "MIT",
|
|
8
9
|
"types": "dist/index.d.ts",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"build": "tsc",
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
}
|
|
22
23
|
],
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@sanctumterra/raknet": "^1.3.
|
|
25
|
+
"@sanctumterra/raknet": "^1.3.74",
|
|
25
26
|
"@serenityjs/core": "^0.7.1",
|
|
26
27
|
"@serenityjs/protocol": "^0.7.0",
|
|
27
28
|
"axios": "^1.7.9",
|