mca-json 1.1.1 → 1.2.0
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/dist/bin/mca-chunks.js +1 -1
- package/dist/bin/mca-chunks.js.map +1 -1
- package/dist/bin/mca-find-signs.js +2 -2
- package/dist/bin/mca-find-signs.js.map +1 -1
- package/dist/bin/mca-json.js +1 -1
- package/dist/bin/mca-json.js.map +1 -1
- package/dist/bin/mca-remove-chunks.js +1 -1
- package/dist/bin/mca-remove-chunks.js.map +1 -1
- package/dist/bin/nbt-get-player-location.js +1 -1
- package/dist/bin/nbt-get-player-location.js.map +1 -1
- package/dist/bin/nbt-json.js +1 -1
- package/dist/bin/nbt-json.js.map +1 -1
- package/dist/block/banner.d.ts +1 -1
- package/dist/block/banner.d.ts.map +1 -1
- package/dist/block/banner.js +2 -2
- package/dist/block/banner.js.map +1 -1
- package/dist/block/barrel.d.ts +6 -6
- package/dist/block/barrel.d.ts.map +1 -1
- package/dist/block/barrel.js +4 -4
- package/dist/block/barrel.js.map +1 -1
- package/dist/block/beacon.d.ts +6 -6
- package/dist/block/beacon.d.ts.map +1 -1
- package/dist/block/beacon.js +4 -4
- package/dist/block/beacon.js.map +1 -1
- package/dist/block/bed.d.ts +1 -1
- package/dist/block/bed.d.ts.map +1 -1
- package/dist/block/bed.js +1 -1
- package/dist/block/bed.js.map +1 -1
- package/dist/block/beehive.d.ts +4 -4
- package/dist/block/beehive.d.ts.map +1 -1
- package/dist/block/beehive.js +1 -1
- package/dist/block/beehive.js.map +1 -1
- package/dist/block/bell.d.ts +1 -1
- package/dist/block/bell.d.ts.map +1 -1
- package/dist/block/bell.js +1 -1
- package/dist/block/bell.js.map +1 -1
- package/dist/block/block.d.ts +10 -10
- package/dist/block/block.d.ts.map +1 -1
- package/dist/block/block.js +8 -8
- package/dist/block/block.js.map +1 -1
- package/dist/block/generic.d.ts +2 -2
- package/dist/block/generic.d.ts.map +1 -1
- package/dist/block/generic.js.map +1 -1
- package/dist/block/has-entity-data.d.ts +3 -3
- package/dist/block/has-entity-data.d.ts.map +1 -1
- package/dist/block/has-entity-data.js +1 -1
- package/dist/block/has-entity-data.js.map +1 -1
- package/dist/block/mixins/custom-name.d.ts +1 -1
- package/dist/block/mixins/custom-name.d.ts.map +1 -1
- package/dist/block/mixins/custom-name.js +1 -1
- package/dist/block/mixins/custom-name.js.map +1 -1
- package/dist/block/mixins/lock.d.ts +1 -1
- package/dist/block/mixins/lock.d.ts.map +1 -1
- package/dist/block/mixins/lock.js +1 -1
- package/dist/block/mixins/lock.js.map +1 -1
- package/dist/block/sign.d.ts +1 -1
- package/dist/block/sign.d.ts.map +1 -1
- package/dist/block/sign.js +1 -1
- package/dist/block/sign.js.map +1 -1
- package/dist/index.d.ts +38 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/lib/anvil.d.ts +3 -3
- package/dist/lib/anvil.d.ts.map +1 -1
- package/dist/lib/anvil.js +3 -3
- package/dist/lib/anvil.js.map +1 -1
- package/dist/lib/bit-data.d.ts +1 -1
- package/dist/lib/bit-data.d.ts.map +1 -1
- package/dist/lib/bit-data.js.map +1 -1
- package/dist/lib/block-data.d.ts +4 -4
- package/dist/lib/block-data.d.ts.map +1 -1
- package/dist/lib/block-data.js +1 -1
- package/dist/lib/block-data.js.map +1 -1
- package/dist/lib/chunk.d.ts +5 -5
- package/dist/lib/chunk.d.ts.map +1 -1
- package/dist/lib/chunk.js +3 -3
- package/dist/lib/chunk.js.map +1 -1
- package/dist/nbt/nbt-base.d.ts +2 -2
- package/dist/nbt/nbt-base.d.ts.map +1 -1
- package/dist/nbt/nbt-base.js.map +1 -1
- package/dist/nbt/nbt-byte-array.d.ts +3 -3
- package/dist/nbt/nbt-byte-array.d.ts.map +1 -1
- package/dist/nbt/nbt-byte-array.js +2 -2
- package/dist/nbt/nbt-byte-array.js.map +1 -1
- package/dist/nbt/nbt-byte.d.ts +3 -3
- package/dist/nbt/nbt-byte.d.ts.map +1 -1
- package/dist/nbt/nbt-byte.js +2 -2
- package/dist/nbt/nbt-byte.js.map +1 -1
- package/dist/nbt/nbt-compound.d.ts +3 -3
- package/dist/nbt/nbt-compound.d.ts.map +1 -1
- package/dist/nbt/nbt-compound.js +3 -3
- package/dist/nbt/nbt-compound.js.map +1 -1
- package/dist/nbt/nbt-double.d.ts +3 -3
- package/dist/nbt/nbt-double.d.ts.map +1 -1
- package/dist/nbt/nbt-double.js +2 -2
- package/dist/nbt/nbt-double.js.map +1 -1
- package/dist/nbt/nbt-end.d.ts +2 -2
- package/dist/nbt/nbt-end.d.ts.map +1 -1
- package/dist/nbt/nbt-end.js +2 -2
- package/dist/nbt/nbt-end.js.map +1 -1
- package/dist/nbt/nbt-float.d.ts +3 -3
- package/dist/nbt/nbt-float.d.ts.map +1 -1
- package/dist/nbt/nbt-float.js +2 -2
- package/dist/nbt/nbt-float.js.map +1 -1
- package/dist/nbt/nbt-int-array.d.ts +3 -3
- package/dist/nbt/nbt-int-array.d.ts.map +1 -1
- package/dist/nbt/nbt-int-array.js +2 -2
- package/dist/nbt/nbt-int-array.js.map +1 -1
- package/dist/nbt/nbt-int.d.ts +3 -3
- package/dist/nbt/nbt-int.d.ts.map +1 -1
- package/dist/nbt/nbt-int.js +2 -2
- package/dist/nbt/nbt-int.js.map +1 -1
- package/dist/nbt/nbt-list.d.ts +3 -3
- package/dist/nbt/nbt-list.d.ts.map +1 -1
- package/dist/nbt/nbt-list.js +3 -3
- package/dist/nbt/nbt-list.js.map +1 -1
- package/dist/nbt/nbt-long-array.d.ts +3 -3
- package/dist/nbt/nbt-long-array.d.ts.map +1 -1
- package/dist/nbt/nbt-long-array.js +2 -2
- package/dist/nbt/nbt-long-array.js.map +1 -1
- package/dist/nbt/nbt-long.d.ts +3 -3
- package/dist/nbt/nbt-long.d.ts.map +1 -1
- package/dist/nbt/nbt-long.js +2 -2
- package/dist/nbt/nbt-long.js.map +1 -1
- package/dist/nbt/nbt-short.d.ts +3 -3
- package/dist/nbt/nbt-short.d.ts.map +1 -1
- package/dist/nbt/nbt-short.js +2 -2
- package/dist/nbt/nbt-short.js.map +1 -1
- package/dist/nbt/nbt-string.d.ts +3 -3
- package/dist/nbt/nbt-string.d.ts.map +1 -1
- package/dist/nbt/nbt-string.js +2 -2
- package/dist/nbt/nbt-string.js.map +1 -1
- package/dist/nbt/nbt.d.ts +2 -2
- package/dist/nbt/nbt.d.ts.map +1 -1
- package/dist/nbt/nbt.js +17 -17
- package/dist/nbt/nbt.js.map +1 -1
- package/dist/nbt/snbt-parse.d.ts +1 -1
- package/dist/nbt/snbt-parse.d.ts.map +1 -1
- package/dist/nbt/snbt-parse.js +1 -1
- package/dist/nbt/snbt-parse.js.map +1 -1
- package/dist/nbt/snbt-to-nbt.d.ts +2 -2
- package/dist/nbt/snbt-to-nbt.d.ts.map +1 -1
- package/dist/nbt/snbt-to-nbt.js +12 -12
- package/dist/nbt/snbt-to-nbt.js.map +1 -1
- package/package.json +3 -3
- package/src/bin/mca-chunks.ts +1 -1
- package/src/bin/mca-find-signs.ts +3 -3
- package/src/bin/mca-json.ts +1 -1
- package/src/bin/mca-remove-chunks.ts +1 -1
- package/src/bin/nbt-get-player-location.ts +1 -1
- package/src/bin/nbt-json.ts +1 -1
- package/src/block/banner.ts +4 -4
- package/src/block/barrel.ts +8 -8
- package/src/block/beacon.ts +5 -5
- package/src/block/bed.ts +1 -1
- package/src/block/beehive.ts +5 -5
- package/src/block/bell.ts +1 -1
- package/src/block/block.ts +10 -10
- package/src/block/generic.ts +2 -2
- package/src/block/has-entity-data.ts +3 -3
- package/src/block/mixins/custom-name.ts +2 -2
- package/src/block/mixins/lock.ts +2 -2
- package/src/block/sign.ts +4 -4
- package/src/index.ts +38 -38
- package/src/lib/anvil.ts +4 -4
- package/src/lib/bit-data.ts +1 -1
- package/src/lib/block-data.ts +6 -6
- package/src/lib/chunk.ts +13 -13
- package/src/nbt/nbt-base.ts +2 -2
- package/src/nbt/nbt-byte-array.ts +3 -3
- package/src/nbt/nbt-byte.ts +3 -3
- package/src/nbt/nbt-compound.ts +4 -4
- package/src/nbt/nbt-double.ts +3 -3
- package/src/nbt/nbt-end.ts +2 -2
- package/src/nbt/nbt-float.ts +3 -3
- package/src/nbt/nbt-int-array.ts +3 -3
- package/src/nbt/nbt-int.ts +3 -3
- package/src/nbt/nbt-list.ts +4 -4
- package/src/nbt/nbt-long-array.ts +3 -3
- package/src/nbt/nbt-long.ts +3 -3
- package/src/nbt/nbt-short.ts +3 -3
- package/src/nbt/nbt-string.ts +3 -3
- package/src/nbt/nbt.ts +18 -18
- package/src/nbt/snbt-parse.ts +1 -1
- package/src/nbt/snbt-to-nbt.ts +14 -14
- package/tsconfig.json +2 -2
package/src/block/beehive.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Coords3d } from '../types/coords';
|
|
2
|
-
import { HasEntityData } from './has-entity-data';
|
|
3
|
-
import { NbtCompound } from '../nbt/nbt-compound';
|
|
4
|
-
import { NbtIntArray } from '../nbt/nbt-int-array';
|
|
5
|
-
import { NbtList } from '../nbt/nbt-list';
|
|
1
|
+
import { Coords3d } from '../types/coords.js';
|
|
2
|
+
import { HasEntityData } from './has-entity-data.js';
|
|
3
|
+
import { NbtCompound } from '../nbt/nbt-compound.js';
|
|
4
|
+
import { NbtIntArray } from '../nbt/nbt-int-array.js';
|
|
5
|
+
import { NbtList } from '../nbt/nbt-list.js';
|
|
6
6
|
|
|
7
7
|
export class Beehive extends HasEntityData {
|
|
8
8
|
bees(): NbtList<NbtCompound> | undefined {
|
package/src/block/bell.ts
CHANGED
package/src/block/block.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Banner } from './banner';
|
|
2
|
-
import { Barrel } from './barrel';
|
|
3
|
-
import { Beacon } from './beacon';
|
|
4
|
-
import { Bed } from './bed';
|
|
5
|
-
import { Beehive } from './beehive';
|
|
6
|
-
import { Bell } from './bell';
|
|
7
|
-
import { Coords3d } from '../types/coords';
|
|
8
|
-
import { Generic } from './generic';
|
|
9
|
-
import { NbtCompound } from '../nbt/nbt-compound';
|
|
10
|
-
import { Sign } from './sign';
|
|
1
|
+
import { Banner } from './banner.js';
|
|
2
|
+
import { Barrel } from './barrel.js';
|
|
3
|
+
import { Beacon } from './beacon.js';
|
|
4
|
+
import { Bed } from './bed.js';
|
|
5
|
+
import { Beehive } from './beehive.js';
|
|
6
|
+
import { Bell } from './bell.js';
|
|
7
|
+
import { Coords3d } from '../types/coords.js';
|
|
8
|
+
import { Generic } from './generic.js';
|
|
9
|
+
import { NbtCompound } from '../nbt/nbt-compound.js';
|
|
10
|
+
import { Sign } from './sign.js';
|
|
11
11
|
|
|
12
12
|
export type BlockInstance = Banner | Barrel | Beacon | Bed | Beehive | Bell | Generic | Sign;
|
|
13
13
|
|
package/src/block/generic.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Generic } from './generic';
|
|
2
|
-
import { Coords3d } from '../types/coords';
|
|
3
|
-
import { NbtCompound } from '../nbt/nbt-compound';
|
|
1
|
+
import { Generic } from './generic.js';
|
|
2
|
+
import { Coords3d } from '../types/coords.js';
|
|
3
|
+
import { NbtCompound } from '../nbt/nbt-compound.js';
|
|
4
4
|
|
|
5
5
|
export class HasEntityData extends Generic {
|
|
6
6
|
override entityData: NbtCompound;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HasEntityData } from '../has-entity-data';
|
|
2
|
-
import { NbtString } from '../../nbt/nbt-string';
|
|
1
|
+
import { HasEntityData } from '../has-entity-data.js';
|
|
2
|
+
import { NbtString } from '../../nbt/nbt-string.js';
|
|
3
3
|
|
|
4
4
|
export class CustomName extends HasEntityData {
|
|
5
5
|
customName(): string | undefined {
|
package/src/block/mixins/lock.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HasEntityData } from '../has-entity-data';
|
|
2
|
-
import { NbtString } from '../../nbt/nbt-string';
|
|
1
|
+
import { HasEntityData } from '../has-entity-data.js';
|
|
2
|
+
import { NbtString } from '../../nbt/nbt-string.js';
|
|
3
3
|
|
|
4
4
|
export class Lock extends HasEntityData {
|
|
5
5
|
lock(): string | undefined {
|
package/src/block/sign.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HasEntityData } from './has-entity-data';
|
|
2
|
-
import { NbtByte } from '../nbt/nbt-byte';
|
|
3
|
-
import { NbtList } from '../nbt/nbt-list';
|
|
4
|
-
import { NbtString } from '../nbt/nbt-string';
|
|
1
|
+
import { HasEntityData } from './has-entity-data.js';
|
|
2
|
+
import { NbtByte } from '../nbt/nbt-byte.js';
|
|
3
|
+
import { NbtList } from '../nbt/nbt-list.js';
|
|
4
|
+
import { NbtString } from '../nbt/nbt-string.js';
|
|
5
5
|
|
|
6
6
|
type SignText = [string, string, string, string];
|
|
7
7
|
|
package/src/index.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export * from './block/banner';
|
|
2
|
-
export * from './block/barrel';
|
|
3
|
-
export * from './block/beacon';
|
|
4
|
-
export * from './block/bed';
|
|
5
|
-
export * from './block/beehive';
|
|
6
|
-
export * from './block/bell';
|
|
7
|
-
export * from './block/block';
|
|
8
|
-
export * from './block/generic';
|
|
9
|
-
export * from './block/has-entity-data';
|
|
10
|
-
export * from './block/mixins/custom-name';
|
|
11
|
-
export * from './block/mixins/lock';
|
|
12
|
-
export * from './block/mixins/mixin';
|
|
13
|
-
export * from './block/sign';
|
|
14
|
-
export * from './lib/anvil';
|
|
15
|
-
export * from './lib/binary-data';
|
|
16
|
-
export * from './lib/bit-data';
|
|
17
|
-
export * from './lib/block-data';
|
|
18
|
-
export * from './lib/chunk';
|
|
19
|
-
export * from './nbt/nbt';
|
|
20
|
-
export * from './nbt/nbt-
|
|
21
|
-
export * from './nbt/nbt-byte';
|
|
22
|
-
export * from './nbt/nbt-
|
|
23
|
-
export * from './nbt/nbt-
|
|
24
|
-
export * from './nbt/nbt-
|
|
25
|
-
export * from './nbt/nbt-
|
|
26
|
-
export * from './nbt/nbt-
|
|
27
|
-
export * from './nbt/nbt-int';
|
|
28
|
-
export * from './nbt/nbt-
|
|
29
|
-
export * from './nbt/nbt-
|
|
30
|
-
export * from './nbt/nbt-long';
|
|
31
|
-
export * from './nbt/nbt-
|
|
32
|
-
export * from './nbt/nbt-
|
|
33
|
-
export * from './nbt/nbt-
|
|
34
|
-
export * from './nbt/nbt
|
|
35
|
-
export * from './nbt/snbt-data';
|
|
36
|
-
export * from './nbt/snbt-parse';
|
|
37
|
-
export * from './nbt/snbt-to-nbt';
|
|
38
|
-
export * from './types/coords';
|
|
1
|
+
export * from './block/banner.js';
|
|
2
|
+
export * from './block/barrel.js';
|
|
3
|
+
export * from './block/beacon.js';
|
|
4
|
+
export * from './block/bed.js';
|
|
5
|
+
export * from './block/beehive.js';
|
|
6
|
+
export * from './block/bell.js';
|
|
7
|
+
export * from './block/block.js';
|
|
8
|
+
export * from './block/generic.js';
|
|
9
|
+
export * from './block/has-entity-data.js';
|
|
10
|
+
export * from './block/mixins/custom-name.js';
|
|
11
|
+
export * from './block/mixins/lock.js';
|
|
12
|
+
export * from './block/mixins/mixin.js';
|
|
13
|
+
export * from './block/sign.js';
|
|
14
|
+
export * from './lib/anvil.js';
|
|
15
|
+
export * from './lib/binary-data.js';
|
|
16
|
+
export * from './lib/bit-data.js';
|
|
17
|
+
export * from './lib/block-data.js';
|
|
18
|
+
export * from './lib/chunk.js';
|
|
19
|
+
export * from './nbt/nbt-base.js';
|
|
20
|
+
export * from './nbt/nbt-byte-array.js';
|
|
21
|
+
export * from './nbt/nbt-byte.js';
|
|
22
|
+
export * from './nbt/nbt-compound.js';
|
|
23
|
+
export * from './nbt/nbt-double.js';
|
|
24
|
+
export * from './nbt/nbt-end.js';
|
|
25
|
+
export * from './nbt/nbt-float.js';
|
|
26
|
+
export * from './nbt/nbt-int-array.js';
|
|
27
|
+
export * from './nbt/nbt-int.js';
|
|
28
|
+
export * from './nbt/nbt-list.js';
|
|
29
|
+
export * from './nbt/nbt-long-array.js';
|
|
30
|
+
export * from './nbt/nbt-long.js';
|
|
31
|
+
export * from './nbt/nbt-short.js';
|
|
32
|
+
export * from './nbt/nbt-string.js';
|
|
33
|
+
export * from './nbt/nbt-tag-type.js';
|
|
34
|
+
export * from './nbt/nbt.js';
|
|
35
|
+
export * from './nbt/snbt-data.js';
|
|
36
|
+
export * from './nbt/snbt-parse.js';
|
|
37
|
+
export * from './nbt/snbt-to-nbt.js';
|
|
38
|
+
export * from './types/coords.js';
|
package/src/lib/anvil.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BinaryData } from './binary-data';
|
|
2
|
-
import { Chunk } from './chunk';
|
|
3
|
-
import { Coords2d } from '../types/coords';
|
|
1
|
+
import { BinaryData } from './binary-data.js';
|
|
2
|
+
import { Chunk } from './chunk.js';
|
|
3
|
+
import { Coords2d } from '../types/coords.js';
|
|
4
4
|
import { inflate } from 'pako';
|
|
5
|
-
import { Nbt } from '../nbt/nbt';
|
|
5
|
+
import { Nbt } from '../nbt/nbt.js';
|
|
6
6
|
|
|
7
7
|
type LocationEntry = {
|
|
8
8
|
offset: number; // 3 bytes
|
package/src/lib/bit-data.ts
CHANGED
package/src/lib/block-data.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BitData } from './bit-data';
|
|
3
|
-
import { Coords3d } from '../types/coords';
|
|
4
|
-
import { NbtCompound } from '../nbt/nbt-compound';
|
|
5
|
-
import { NbtList } from '../nbt/nbt-list';
|
|
6
|
-
import { NbtLongArray } from '../nbt/nbt-long-array';
|
|
7
|
-
import { NbtString } from '../nbt/nbt-string';
|
|
2
|
+
import { BitData } from './bit-data.js';
|
|
3
|
+
import { Coords3d } from '../types/coords.js';
|
|
4
|
+
import { NbtCompound } from '../nbt/nbt-compound.js';
|
|
5
|
+
import { NbtList } from '../nbt/nbt-list.js';
|
|
6
|
+
import { NbtLongArray } from '../nbt/nbt-long-array.js';
|
|
7
|
+
import { NbtString } from '../nbt/nbt-string.js';
|
|
8
8
|
|
|
9
9
|
const BLOCKS_PER_CHUNK = 16 * 16 * 16;
|
|
10
10
|
const debugLog = debug('block-data');
|
package/src/lib/chunk.ts
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
* This class helps manipulate the chunk data.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Block, BlockInstance } from '../block/block';
|
|
10
|
-
import { BlockData } from './block-data';
|
|
11
|
-
import { Coords2d, Coords3d } from '../types/coords';
|
|
12
|
-
import { NbtBase } from '../nbt/nbt-base';
|
|
13
|
-
import { NbtByte } from '../nbt/nbt-byte';
|
|
14
|
-
import { NbtCompound } from '../nbt/nbt-compound';
|
|
15
|
-
import { NbtInt } from '../nbt/nbt-int';
|
|
16
|
-
import { NbtIntArray } from '../nbt/nbt-int-array';
|
|
17
|
-
import { NbtList } from '../nbt/nbt-list';
|
|
18
|
-
import { NbtLong } from '../nbt/nbt-long';
|
|
19
|
-
import { NbtLongArray } from '../nbt/nbt-long-array';
|
|
20
|
-
import { NbtString } from '../nbt/nbt-string';
|
|
21
|
-
import { NbtTagType } from '../nbt/nbt-tag-type';
|
|
9
|
+
import { Block, BlockInstance } from '../block/block.js';
|
|
10
|
+
import { BlockData } from './block-data.js';
|
|
11
|
+
import { Coords2d, Coords3d } from '../types/coords.js';
|
|
12
|
+
import { NbtBase } from '../nbt/nbt-base.js';
|
|
13
|
+
import { NbtByte } from '../nbt/nbt-byte.js';
|
|
14
|
+
import { NbtCompound } from '../nbt/nbt-compound.js';
|
|
15
|
+
import { NbtInt } from '../nbt/nbt-int.js';
|
|
16
|
+
import { NbtIntArray } from '../nbt/nbt-int-array.js';
|
|
17
|
+
import { NbtList } from '../nbt/nbt-list.js';
|
|
18
|
+
import { NbtLong } from '../nbt/nbt-long.js';
|
|
19
|
+
import { NbtLongArray } from '../nbt/nbt-long-array.js';
|
|
20
|
+
import { NbtString } from '../nbt/nbt-string.js';
|
|
21
|
+
import { NbtTagType } from '../nbt/nbt-tag-type.js';
|
|
22
22
|
|
|
23
23
|
export class Chunk {
|
|
24
24
|
private dataVersion: number;
|
package/src/nbt/nbt-base.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BinaryData } from '../lib/binary-data';
|
|
2
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
1
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
2
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
3
3
|
|
|
4
4
|
export abstract class NbtBase<T> {
|
|
5
5
|
static readName(bd: BinaryData) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:byte-array:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-byte.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:byte:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-compound.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { Nbt } from './nbt';
|
|
4
|
-
import { NbtBase } from './nbt-base';
|
|
5
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { Nbt } from './nbt.js';
|
|
4
|
+
import { NbtBase } from './nbt-base.js';
|
|
5
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
6
6
|
|
|
7
7
|
const debugLogFromBinaryData = debug('nbt:compound:from-binary-data');
|
|
8
8
|
const debugLogFindChild = debug('nbt:compound:find-child');
|
package/src/nbt/nbt-double.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:double:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-end.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { NbtBase } from './nbt-base';
|
|
3
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { NbtBase } from './nbt-base.js';
|
|
3
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
4
4
|
|
|
5
5
|
const debugLogFromBinaryData = debug('nbt:end:from-binary-data');
|
|
6
6
|
|
package/src/nbt/nbt-float.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:float:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-int-array.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:int-array:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-int.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:int:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-list.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { fromBinaryData } from './nbt';
|
|
4
|
-
import { NbtBase } from './nbt-base';
|
|
5
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { fromBinaryData } from './nbt.js';
|
|
4
|
+
import { NbtBase } from './nbt-base.js';
|
|
5
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
6
6
|
|
|
7
7
|
const debugLogFromBinaryData = debug('nbt:list:from-binary-data');
|
|
8
8
|
const debugLogFindChild = debug('nbt:list:find-child');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:long-array:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-long.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:long:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-short.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:short:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt-string.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { BinaryData } from '../lib/binary-data';
|
|
3
|
-
import { NbtBase } from './nbt-base';
|
|
4
|
-
import { NbtTagType } from './nbt-tag-type';
|
|
2
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
3
|
+
import { NbtBase } from './nbt-base.js';
|
|
4
|
+
import { NbtTagType } from './nbt-tag-type.js';
|
|
5
5
|
|
|
6
6
|
const debugLogFromBinaryData = debug('nbt:string:from-binary-data');
|
|
7
7
|
|
package/src/nbt/nbt.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { BinaryData } from '../lib/binary-data';
|
|
2
|
-
import { NbtBase } from '../nbt/nbt-base';
|
|
3
|
-
import { NbtByte } from '../nbt/nbt-byte';
|
|
4
|
-
import { NbtByteArray } from '../nbt/nbt-byte-array';
|
|
5
|
-
import { NbtCompound } from '../nbt/nbt-compound';
|
|
6
|
-
import { NbtDouble } from '../nbt/nbt-double';
|
|
7
|
-
import { NbtEnd } from '../nbt/nbt-end';
|
|
8
|
-
import { NbtFloat } from '../nbt/nbt-float';
|
|
9
|
-
import { NbtInt } from '../nbt/nbt-int';
|
|
10
|
-
import { NbtIntArray } from '../nbt/nbt-int-array';
|
|
11
|
-
import { NbtList } from '../nbt/nbt-list';
|
|
12
|
-
import { NbtLong } from '../nbt/nbt-long';
|
|
13
|
-
import { NbtLongArray } from '../nbt/nbt-long-array';
|
|
14
|
-
import { NbtShort } from '../nbt/nbt-short';
|
|
15
|
-
import { NbtString } from '../nbt/nbt-string';
|
|
16
|
-
import { NbtTagType } from '../nbt/nbt-tag-type';
|
|
17
|
-
import { snbtParse } from './snbt-parse';
|
|
18
|
-
import { snbtToNbt } from './snbt-to-nbt';
|
|
1
|
+
import { BinaryData } from '../lib/binary-data.js';
|
|
2
|
+
import { NbtBase } from '../nbt/nbt-base.js';
|
|
3
|
+
import { NbtByte } from '../nbt/nbt-byte.js';
|
|
4
|
+
import { NbtByteArray } from '../nbt/nbt-byte-array.js';
|
|
5
|
+
import { NbtCompound } from '../nbt/nbt-compound.js';
|
|
6
|
+
import { NbtDouble } from '../nbt/nbt-double.js';
|
|
7
|
+
import { NbtEnd } from '../nbt/nbt-end.js';
|
|
8
|
+
import { NbtFloat } from '../nbt/nbt-float.js';
|
|
9
|
+
import { NbtInt } from '../nbt/nbt-int.js';
|
|
10
|
+
import { NbtIntArray } from '../nbt/nbt-int-array.js';
|
|
11
|
+
import { NbtList } from '../nbt/nbt-list.js';
|
|
12
|
+
import { NbtLong } from '../nbt/nbt-long.js';
|
|
13
|
+
import { NbtLongArray } from '../nbt/nbt-long-array.js';
|
|
14
|
+
import { NbtShort } from '../nbt/nbt-short.js';
|
|
15
|
+
import { NbtString } from '../nbt/nbt-string.js';
|
|
16
|
+
import { NbtTagType } from '../nbt/nbt-tag-type.js';
|
|
17
|
+
import { snbtParse } from './snbt-parse.js';
|
|
18
|
+
import { snbtToNbt } from './snbt-to-nbt.js';
|
|
19
19
|
|
|
20
20
|
export const fromBinaryData: {
|
|
21
21
|
[key: number]: (bd: BinaryData, name?: string) => NbtBase<any>;
|
package/src/nbt/snbt-parse.ts
CHANGED
package/src/nbt/snbt-to-nbt.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { NbtBase } from '../nbt/nbt-base';
|
|
2
|
-
import { NbtByteArray } from '../nbt/nbt-byte-array';
|
|
3
|
-
import { NbtByte } from '../nbt/nbt-byte';
|
|
4
|
-
import { NbtCompound } from '../nbt/nbt-compound';
|
|
5
|
-
import { NbtDouble } from '../nbt/nbt-double';
|
|
6
|
-
import { NbtFloat } from '../nbt/nbt-float';
|
|
7
|
-
import { NbtIntArray } from '../nbt/nbt-int-array';
|
|
8
|
-
import { NbtInt } from '../nbt/nbt-int';
|
|
9
|
-
import { NbtList } from '../nbt/nbt-list';
|
|
10
|
-
import { NbtLongArray } from '../nbt/nbt-long-array';
|
|
11
|
-
import { NbtLong } from '../nbt/nbt-long';
|
|
12
|
-
import { NbtShort } from '../nbt/nbt-short';
|
|
13
|
-
import { NbtString } from '../nbt/nbt-string';
|
|
14
|
-
import { SnbtData, SnbtToken } from './snbt-data';
|
|
1
|
+
import { NbtBase } from '../nbt/nbt-base.js';
|
|
2
|
+
import { NbtByteArray } from '../nbt/nbt-byte-array.js';
|
|
3
|
+
import { NbtByte } from '../nbt/nbt-byte.js';
|
|
4
|
+
import { NbtCompound } from '../nbt/nbt-compound.js';
|
|
5
|
+
import { NbtDouble } from '../nbt/nbt-double.js';
|
|
6
|
+
import { NbtFloat } from '../nbt/nbt-float.js';
|
|
7
|
+
import { NbtIntArray } from '../nbt/nbt-int-array.js';
|
|
8
|
+
import { NbtInt } from '../nbt/nbt-int.js';
|
|
9
|
+
import { NbtList } from '../nbt/nbt-list.js';
|
|
10
|
+
import { NbtLongArray } from '../nbt/nbt-long-array.js';
|
|
11
|
+
import { NbtLong } from '../nbt/nbt-long.js';
|
|
12
|
+
import { NbtShort } from '../nbt/nbt-short.js';
|
|
13
|
+
import { NbtString } from '../nbt/nbt-string.js';
|
|
14
|
+
import { SnbtData, SnbtToken } from './snbt-data.js';
|
|
15
15
|
|
|
16
16
|
export const fromSnbtData: {
|
|
17
17
|
[key: string]: (token: SnbtToken, snbtData: SnbtData) => NbtBase<any>;
|
package/tsconfig.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"experimentalDecorators": true,
|
|
8
8
|
"inlineSources": true,
|
|
9
9
|
"lib": ["esnext"],
|
|
10
|
-
"module": "
|
|
11
|
-
"moduleResolution": "
|
|
10
|
+
"module": "nodenext",
|
|
11
|
+
"moduleResolution": "nodenext",
|
|
12
12
|
"noFallthroughCasesInSwitch": true,
|
|
13
13
|
"noImplicitAny": true,
|
|
14
14
|
"noImplicitOverride": true,
|