@miniblox/protocol 3.41.77-0.0.0 → 3.41.77-0.0.1

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.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@miniblox/protocol",
3
- "version": "3.41.77-0.0.0",
3
+ "version": "3.41.77-0.0.1",
4
+ "main": "dist/index.mjs",
4
5
  "type": "module",
5
6
  "packageManager": "bun@1.3.4",
6
7
  "readme": "ReadME.md",
@@ -15,7 +16,8 @@
15
16
  "provenance": true
16
17
  },
17
18
  "files": [
18
- "dist"
19
+ "dist",
20
+ "ReadME"
19
21
  ],
20
22
  "dependencies": {
21
23
  "@bufbuild/buf": "^1.70.0",
@@ -1,132 +0,0 @@
1
- //#region gen/common_pb.d.ts
2
- /**
3
- * @generated from enum Equipment_Slot
4
- */
5
- declare enum Equipment_Slot {
6
- /**
7
- * @generated from enum value: UNDEFINED_SLOT = 0;
8
- */
9
- UNDEFINED_SLOT = 0,
10
- /**
11
- * @generated from enum value: MAIN_HAND = 1;
12
- */
13
- MAIN_HAND = 1,
14
- /**
15
- * @generated from enum value: OFF_HAND = 2;
16
- */
17
- OFF_HAND = 2,
18
- /**
19
- * @generated from enum value: HELMET = 3;
20
- */
21
- HELMET = 3,
22
- /**
23
- * @generated from enum value: CHESTPLATE = 4;
24
- */
25
- CHESTPLATE = 4,
26
- /**
27
- * @generated from enum value: LEGGINGS = 5;
28
- */
29
- LEGGINGS = 5,
30
- /**
31
- * @generated from enum value: BOOTS = 6;
32
- */
33
- BOOTS = 6
34
- }
35
- /**
36
- * @generated from enum PBAction
37
- */
38
- declare enum PBAction {
39
- /**
40
- * @generated from enum value: START_DESTROY_BLOCK = 0;
41
- */
42
- START_DESTROY_BLOCK = 0,
43
- /**
44
- * @generated from enum value: ABORT_DESTROY_BLOCK = 1;
45
- */
46
- ABORT_DESTROY_BLOCK = 1,
47
- /**
48
- * @generated from enum value: STOP_DESTROY_BLOCK = 2;
49
- */
50
- STOP_DESTROY_BLOCK = 2,
51
- /**
52
- * @generated from enum value: DROP_ALL_ITEMS = 3;
53
- */
54
- DROP_ALL_ITEMS = 3,
55
- /**
56
- * @generated from enum value: DROP_ITEM = 4;
57
- */
58
- DROP_ITEM = 4,
59
- /**
60
- * @generated from enum value: RELEASE_USE_ITEM = 5;
61
- */
62
- RELEASE_USE_ITEM = 5
63
- }
64
- /**
65
- * @generated from enum PBEnumFacing
66
- */
67
- declare enum PBEnumFacing {
68
- /**
69
- * @generated from enum value: UNDEFINED_FACE = 0;
70
- */
71
- UNDEFINED_FACE = 0,
72
- /**
73
- * @generated from enum value: DOWN = 1;
74
- */
75
- DOWN = 1,
76
- /**
77
- * @generated from enum value: UP = 2;
78
- */
79
- UP = 2,
80
- /**
81
- * @generated from enum value: NORTH = 3;
82
- */
83
- NORTH = 3,
84
- /**
85
- * @generated from enum value: SOUTH = 4;
86
- */
87
- SOUTH = 4,
88
- /**
89
- * @generated from enum value: WEST = 5;
90
- */
91
- WEST = 5,
92
- /**
93
- * @generated from enum value: EAST = 6;
94
- */
95
- EAST = 6
96
- }
97
- /**
98
- * @generated from enum SPacketUseEntity_Action
99
- */
100
- declare enum SPacketUseEntity_Action {
101
- /**
102
- * @generated from enum value: INTERACT = 0;
103
- */
104
- INTERACT = 0,
105
- /**
106
- * @generated from enum value: ATTACK = 1;
107
- */
108
- ATTACK = 1,
109
- /**
110
- * @generated from enum value: INTERACT_AT = 2;
111
- */
112
- INTERACT_AT = 2
113
- }
114
- /**
115
- * @generated from enum CPacketLocalStorage_Action
116
- */
117
- declare enum CPacketLocalStorage_Action {
118
- /**
119
- * @generated from enum value: DEFAULT = 0;
120
- */
121
- DEFAULT = 0,
122
- /**
123
- * @generated from enum value: REMOVE = 1;
124
- */
125
- REMOVE = 1,
126
- /**
127
- * @generated from enum value: SET = 2;
128
- */
129
- SET = 2
130
- }
131
- //#endregion
132
- export { CPacketLocalStorage_Action, Equipment_Slot, PBAction, PBEnumFacing, SPacketUseEntity_Action };
@@ -1,252 +0,0 @@
1
- import { proto2 } from "@bufbuild/protobuf";
2
- //#region gen/common_pb.ts
3
- /**
4
- * @generated from enum Equipment_Slot
5
- */
6
- let Equipment_Slot = /* @__PURE__ */ function(Equipment_Slot) {
7
- /**
8
- * @generated from enum value: UNDEFINED_SLOT = 0;
9
- */
10
- Equipment_Slot[Equipment_Slot["UNDEFINED_SLOT"] = 0] = "UNDEFINED_SLOT";
11
- /**
12
- * @generated from enum value: MAIN_HAND = 1;
13
- */
14
- Equipment_Slot[Equipment_Slot["MAIN_HAND"] = 1] = "MAIN_HAND";
15
- /**
16
- * @generated from enum value: OFF_HAND = 2;
17
- */
18
- Equipment_Slot[Equipment_Slot["OFF_HAND"] = 2] = "OFF_HAND";
19
- /**
20
- * @generated from enum value: HELMET = 3;
21
- */
22
- Equipment_Slot[Equipment_Slot["HELMET"] = 3] = "HELMET";
23
- /**
24
- * @generated from enum value: CHESTPLATE = 4;
25
- */
26
- Equipment_Slot[Equipment_Slot["CHESTPLATE"] = 4] = "CHESTPLATE";
27
- /**
28
- * @generated from enum value: LEGGINGS = 5;
29
- */
30
- Equipment_Slot[Equipment_Slot["LEGGINGS"] = 5] = "LEGGINGS";
31
- /**
32
- * @generated from enum value: BOOTS = 6;
33
- */
34
- Equipment_Slot[Equipment_Slot["BOOTS"] = 6] = "BOOTS";
35
- return Equipment_Slot;
36
- }({});
37
- proto2.util.setEnumType(Equipment_Slot, "Equipment_Slot", [
38
- {
39
- no: 0,
40
- name: "UNDEFINED_SLOT"
41
- },
42
- {
43
- no: 1,
44
- name: "MAIN_HAND"
45
- },
46
- {
47
- no: 2,
48
- name: "OFF_HAND"
49
- },
50
- {
51
- no: 3,
52
- name: "HELMET"
53
- },
54
- {
55
- no: 4,
56
- name: "CHESTPLATE"
57
- },
58
- {
59
- no: 5,
60
- name: "LEGGINGS"
61
- },
62
- {
63
- no: 6,
64
- name: "BOOTS"
65
- }
66
- ]);
67
- /**
68
- * @generated from enum PBAction
69
- */
70
- let PBAction = /* @__PURE__ */ function(PBAction) {
71
- /**
72
- * @generated from enum value: START_DESTROY_BLOCK = 0;
73
- */
74
- PBAction[PBAction["START_DESTROY_BLOCK"] = 0] = "START_DESTROY_BLOCK";
75
- /**
76
- * @generated from enum value: ABORT_DESTROY_BLOCK = 1;
77
- */
78
- PBAction[PBAction["ABORT_DESTROY_BLOCK"] = 1] = "ABORT_DESTROY_BLOCK";
79
- /**
80
- * @generated from enum value: STOP_DESTROY_BLOCK = 2;
81
- */
82
- PBAction[PBAction["STOP_DESTROY_BLOCK"] = 2] = "STOP_DESTROY_BLOCK";
83
- /**
84
- * @generated from enum value: DROP_ALL_ITEMS = 3;
85
- */
86
- PBAction[PBAction["DROP_ALL_ITEMS"] = 3] = "DROP_ALL_ITEMS";
87
- /**
88
- * @generated from enum value: DROP_ITEM = 4;
89
- */
90
- PBAction[PBAction["DROP_ITEM"] = 4] = "DROP_ITEM";
91
- /**
92
- * @generated from enum value: RELEASE_USE_ITEM = 5;
93
- */
94
- PBAction[PBAction["RELEASE_USE_ITEM"] = 5] = "RELEASE_USE_ITEM";
95
- return PBAction;
96
- }({});
97
- proto2.util.setEnumType(PBAction, "PBAction", [
98
- {
99
- no: 0,
100
- name: "START_DESTROY_BLOCK"
101
- },
102
- {
103
- no: 1,
104
- name: "ABORT_DESTROY_BLOCK"
105
- },
106
- {
107
- no: 2,
108
- name: "STOP_DESTROY_BLOCK"
109
- },
110
- {
111
- no: 3,
112
- name: "DROP_ALL_ITEMS"
113
- },
114
- {
115
- no: 4,
116
- name: "DROP_ITEM"
117
- },
118
- {
119
- no: 5,
120
- name: "RELEASE_USE_ITEM"
121
- }
122
- ]);
123
- /**
124
- * @generated from enum PBEnumFacing
125
- */
126
- let PBEnumFacing = /* @__PURE__ */ function(PBEnumFacing) {
127
- /**
128
- * @generated from enum value: UNDEFINED_FACE = 0;
129
- */
130
- PBEnumFacing[PBEnumFacing["UNDEFINED_FACE"] = 0] = "UNDEFINED_FACE";
131
- /**
132
- * @generated from enum value: DOWN = 1;
133
- */
134
- PBEnumFacing[PBEnumFacing["DOWN"] = 1] = "DOWN";
135
- /**
136
- * @generated from enum value: UP = 2;
137
- */
138
- PBEnumFacing[PBEnumFacing["UP"] = 2] = "UP";
139
- /**
140
- * @generated from enum value: NORTH = 3;
141
- */
142
- PBEnumFacing[PBEnumFacing["NORTH"] = 3] = "NORTH";
143
- /**
144
- * @generated from enum value: SOUTH = 4;
145
- */
146
- PBEnumFacing[PBEnumFacing["SOUTH"] = 4] = "SOUTH";
147
- /**
148
- * @generated from enum value: WEST = 5;
149
- */
150
- PBEnumFacing[PBEnumFacing["WEST"] = 5] = "WEST";
151
- /**
152
- * @generated from enum value: EAST = 6;
153
- */
154
- PBEnumFacing[PBEnumFacing["EAST"] = 6] = "EAST";
155
- return PBEnumFacing;
156
- }({});
157
- proto2.util.setEnumType(PBEnumFacing, "PBEnumFacing", [
158
- {
159
- no: 0,
160
- name: "UNDEFINED_FACE"
161
- },
162
- {
163
- no: 1,
164
- name: "DOWN"
165
- },
166
- {
167
- no: 2,
168
- name: "UP"
169
- },
170
- {
171
- no: 3,
172
- name: "NORTH"
173
- },
174
- {
175
- no: 4,
176
- name: "SOUTH"
177
- },
178
- {
179
- no: 5,
180
- name: "WEST"
181
- },
182
- {
183
- no: 6,
184
- name: "EAST"
185
- }
186
- ]);
187
- /**
188
- * @generated from enum SPacketUseEntity_Action
189
- */
190
- let SPacketUseEntity_Action = /* @__PURE__ */ function(SPacketUseEntity_Action) {
191
- /**
192
- * @generated from enum value: INTERACT = 0;
193
- */
194
- SPacketUseEntity_Action[SPacketUseEntity_Action["INTERACT"] = 0] = "INTERACT";
195
- /**
196
- * @generated from enum value: ATTACK = 1;
197
- */
198
- SPacketUseEntity_Action[SPacketUseEntity_Action["ATTACK"] = 1] = "ATTACK";
199
- /**
200
- * @generated from enum value: INTERACT_AT = 2;
201
- */
202
- SPacketUseEntity_Action[SPacketUseEntity_Action["INTERACT_AT"] = 2] = "INTERACT_AT";
203
- return SPacketUseEntity_Action;
204
- }({});
205
- proto2.util.setEnumType(SPacketUseEntity_Action, "SPacketUseEntity_Action", [
206
- {
207
- no: 0,
208
- name: "INTERACT"
209
- },
210
- {
211
- no: 1,
212
- name: "ATTACK"
213
- },
214
- {
215
- no: 2,
216
- name: "INTERACT_AT"
217
- }
218
- ]);
219
- /**
220
- * @generated from enum CPacketLocalStorage_Action
221
- */
222
- let CPacketLocalStorage_Action = /* @__PURE__ */ function(CPacketLocalStorage_Action) {
223
- /**
224
- * @generated from enum value: DEFAULT = 0;
225
- */
226
- CPacketLocalStorage_Action[CPacketLocalStorage_Action["DEFAULT"] = 0] = "DEFAULT";
227
- /**
228
- * @generated from enum value: REMOVE = 1;
229
- */
230
- CPacketLocalStorage_Action[CPacketLocalStorage_Action["REMOVE"] = 1] = "REMOVE";
231
- /**
232
- * @generated from enum value: SET = 2;
233
- */
234
- CPacketLocalStorage_Action[CPacketLocalStorage_Action["SET"] = 2] = "SET";
235
- return CPacketLocalStorage_Action;
236
- }({});
237
- proto2.util.setEnumType(CPacketLocalStorage_Action, "CPacketLocalStorage_Action", [
238
- {
239
- no: 0,
240
- name: "DEFAULT"
241
- },
242
- {
243
- no: 1,
244
- name: "REMOVE"
245
- },
246
- {
247
- no: 2,
248
- name: "SET"
249
- }
250
- ]);
251
- //#endregion
252
- export { CPacketLocalStorage_Action, Equipment_Slot, PBAction, PBEnumFacing, SPacketUseEntity_Action };
@@ -1,104 +0,0 @@
1
- import { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, Message, PartialMessage, PlainMessage, proto3 } from "@bufbuild/protobuf";
2
-
3
- //#region gen/protocol3_pb.d.ts
4
- /**
5
- * @generated from message PBCell
6
- */
7
- declare class PBCell extends Message<PBCell> {
8
- /**
9
- * @generated from field: uint32 bitsPerEntry = 2;
10
- */
11
- bitsPerEntry: number;
12
- /**
13
- * @generated from field: repeated uint32 palette = 3;
14
- */
15
- palette: number[];
16
- /**
17
- * @generated from field: uint32 blockRefCount = 5;
18
- */
19
- blockRefCount: number;
20
- /**
21
- * @generated from field: bytes bitArray = 6;
22
- */
23
- bitArray: Uint8Array<ArrayBuffer>;
24
- /**
25
- * @generated from field: uint32 y = 7;
26
- */
27
- y: number;
28
- constructor(data?: PartialMessage<PBCell>);
29
- static readonly runtime: typeof proto3;
30
- static readonly typeName = "PBCell";
31
- static readonly fields: FieldList;
32
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PBCell;
33
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PBCell;
34
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PBCell;
35
- static equals(a: PBCell | PlainMessage<PBCell> | undefined, b: PBCell | PlainMessage<PBCell> | undefined): boolean;
36
- }
37
- /**
38
- * @generated from message PBTileEntity
39
- */
40
- declare class PBTileEntity extends Message<PBTileEntity> {
41
- /**
42
- * @generated from field: sint32 x = 1;
43
- */
44
- x: number;
45
- /**
46
- * @generated from field: uint32 y = 2;
47
- */
48
- y: number;
49
- /**
50
- * @generated from field: sint32 z = 3;
51
- */
52
- z: number;
53
- /**
54
- * @generated from field: bytes nbt = 5;
55
- */
56
- nbt: Uint8Array<ArrayBuffer>;
57
- constructor(data?: PartialMessage<PBTileEntity>);
58
- static readonly runtime: typeof proto3;
59
- static readonly typeName = "PBTileEntity";
60
- static readonly fields: FieldList;
61
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PBTileEntity;
62
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PBTileEntity;
63
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PBTileEntity;
64
- static equals(a: PBTileEntity | PlainMessage<PBTileEntity> | undefined, b: PBTileEntity | PlainMessage<PBTileEntity> | undefined): boolean;
65
- }
66
- /**
67
- * @generated from message CPacketChunkData
68
- */
69
- declare class CPacketChunkData extends Message<CPacketChunkData> {
70
- /**
71
- * @generated from field: sint32 x = 1;
72
- */
73
- x: number;
74
- /**
75
- * @generated from field: sint32 z = 2;
76
- */
77
- z: number;
78
- /**
79
- * @generated from field: repeated PBCell cells = 3;
80
- */
81
- cells: PBCell[];
82
- /**
83
- * @generated from field: repeated PBTileEntity tileEntities = 4;
84
- */
85
- tileEntities: PBTileEntity[];
86
- /**
87
- * @generated from field: int32 dimension = 5;
88
- */
89
- dimension: number;
90
- /**
91
- * @generated from field: repeated uint32 biomes = 6;
92
- */
93
- biomes: number[];
94
- constructor(data?: PartialMessage<CPacketChunkData>);
95
- static readonly runtime: typeof proto3;
96
- static readonly typeName = "CPacketChunkData";
97
- static readonly fields: FieldList;
98
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CPacketChunkData;
99
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CPacketChunkData;
100
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CPacketChunkData;
101
- static equals(a: CPacketChunkData | PlainMessage<CPacketChunkData> | undefined, b: CPacketChunkData | PlainMessage<CPacketChunkData> | undefined): boolean;
102
- }
103
- //#endregion
104
- export { CPacketChunkData, PBCell, PBTileEntity };