mcbe-leveldb 1.9.0 → 1.9.1-jsonly

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/nbtSchemas.d.ts CHANGED
@@ -9583,15 +9583,15 @@ export declare namespace NBTSchemas {
9583
9583
  /**
9584
9584
  * The ID of this schema.
9585
9585
  */
9586
- id?: string;
9586
+ id?: string | undefined;
9587
9587
  /**
9588
9588
  * The ID of this schema.
9589
9589
  */
9590
- $id?: string;
9590
+ $id?: string | undefined;
9591
9591
  /**
9592
9592
  * The schema that this schema is based on.
9593
9593
  */
9594
- $schema?: string;
9594
+ $schema?: string | undefined;
9595
9595
  /**
9596
9596
  * If this is a schema fragment.
9597
9597
  *
@@ -9603,142 +9603,142 @@ export declare namespace NBTSchemas {
9603
9603
  /**
9604
9604
  * The type of NBT tag this schema describes.
9605
9605
  */
9606
- type?: `${NBT.TagType}` | `${NBT.TagType}`[];
9606
+ type?: `${NBT.TagType}` | `${NBT.TagType}`[] | undefined;
9607
9607
  /**
9608
9608
  * The title of this schema.
9609
9609
  */
9610
- title?: string;
9610
+ title?: string | undefined;
9611
9611
  /**
9612
9612
  * The default value for this schema.
9613
9613
  */
9614
9614
  default?: {
9615
9615
  type: `${NBT.TagType}`;
9616
9616
  value: any;
9617
- };
9617
+ } | undefined;
9618
9618
  /**
9619
9619
  * @todo
9620
9620
  */
9621
9621
  definitions?: {
9622
9622
  [name: string]: NBTSchema;
9623
- };
9623
+ } | undefined;
9624
9624
  /**
9625
9625
  * The description of this schema.
9626
9626
  */
9627
- description?: string;
9627
+ description?: string | undefined;
9628
9628
  /**
9629
9629
  * The properties of this compound schema.
9630
9630
  */
9631
- properties?: NBTSchemaMap;
9631
+ properties?: NBTSchemaMap | undefined;
9632
9632
  /**
9633
9633
  * A map of RegExp patterns to the NBT schemas for the properties that match.
9634
9634
  */
9635
- patternProperties?: NBTSchemaMap;
9635
+ patternProperties?: NBTSchemaMap | undefined;
9636
9636
  /**
9637
9637
  * @todo
9638
9638
  */
9639
- patternPropertiesTS?: NBTSchemaMap;
9639
+ patternPropertiesTS?: NBTSchemaMap | undefined;
9640
9640
  /**
9641
9641
  * Whether additional properties are allowed, or a schema to use for them.
9642
9642
  */
9643
- additionalProperties?: boolean | NBTSubSchemaRef;
9643
+ additionalProperties?: boolean | NBTSubSchemaRef | undefined;
9644
9644
  /**
9645
9645
  * @todo
9646
9646
  */
9647
- minProperties?: number;
9647
+ minProperties?: number | undefined;
9648
9648
  /**
9649
9649
  * @todo
9650
9650
  */
9651
- maxProperties?: number;
9651
+ maxProperties?: number | undefined;
9652
9652
  /**
9653
9653
  * @todo
9654
9654
  */
9655
9655
  dependencies?: NBTSchemaMap | {
9656
9656
  [prop: string]: string[];
9657
- };
9657
+ } | undefined;
9658
9658
  /**
9659
9659
  * @todo
9660
9660
  */
9661
- items?: NBTSubSchemaRef | NBTSubSchemaRef[];
9661
+ items?: NBTSubSchemaRef | NBTSubSchemaRef[] | undefined;
9662
9662
  /**
9663
9663
  * @todo
9664
9664
  */
9665
- minItems?: number;
9665
+ minItems?: number | undefined;
9666
9666
  /**
9667
9667
  * @todo
9668
9668
  */
9669
- maxItems?: number;
9669
+ maxItems?: number | undefined;
9670
9670
  /**
9671
9671
  * @todo
9672
9672
  */
9673
- uniqueItems?: boolean;
9673
+ uniqueItems?: boolean | undefined;
9674
9674
  /**
9675
9675
  * @todo
9676
9676
  */
9677
- additionalItems?: boolean | NBTSubSchemaRef;
9677
+ additionalItems?: boolean | NBTSubSchemaRef | undefined;
9678
9678
  /**
9679
9679
  * @todo
9680
9680
  */
9681
- pattern?: string;
9681
+ pattern?: string | undefined;
9682
9682
  /**
9683
9683
  * @todo
9684
9684
  */
9685
- minLength?: number;
9685
+ minLength?: number | undefined;
9686
9686
  /**
9687
9687
  * @todo
9688
9688
  */
9689
- maxLength?: number;
9689
+ maxLength?: number | undefined;
9690
9690
  /**
9691
9691
  * @todo
9692
9692
  */
9693
- minimum?: number;
9693
+ minimum?: number | undefined;
9694
9694
  /**
9695
9695
  * @todo
9696
9696
  */
9697
- maximum?: number;
9697
+ maximum?: number | undefined;
9698
9698
  /**
9699
9699
  * @todo
9700
9700
  */
9701
- exclusiveMinimum?: boolean | number;
9701
+ exclusiveMinimum?: boolean | number | undefined;
9702
9702
  /**
9703
9703
  * @todo
9704
9704
  */
9705
- exclusiveMaximum?: boolean | number;
9705
+ exclusiveMaximum?: boolean | number | undefined;
9706
9706
  /**
9707
9707
  * @todo
9708
9708
  */
9709
- multipleOf?: number;
9709
+ multipleOf?: number | undefined;
9710
9710
  /**
9711
9711
  * @todo
9712
9712
  */
9713
- required?: string[];
9713
+ required?: string[] | undefined;
9714
9714
  /**
9715
9715
  * The ID of another schema to reference.
9716
9716
  */
9717
- $ref?: string;
9717
+ $ref?: string | undefined;
9718
9718
  /**
9719
9719
  * @todo
9720
9720
  */
9721
- anyOf?: NBTSubSchemaRef[];
9721
+ anyOf?: NBTSubSchemaRef[] | undefined;
9722
9722
  /**
9723
9723
  * @todo
9724
9724
  */
9725
- allOf?: NBTSubSchemaRef[];
9725
+ allOf?: NBTSubSchemaRef[] | undefined;
9726
9726
  /**
9727
9727
  * @todo
9728
9728
  */
9729
- oneOf?: NBTSubSchemaRef[];
9729
+ oneOf?: NBTSubSchemaRef[] | undefined;
9730
9730
  /**
9731
9731
  * @todo
9732
9732
  */
9733
- not?: NBTSubSchemaRef;
9733
+ not?: NBTSubSchemaRef | undefined;
9734
9734
  /**
9735
9735
  * The values of this enum.
9736
9736
  */
9737
- enum?: NBT.Tags[NBT.TagType][];
9737
+ enum?: NBT.Tags[NBT.TagType][] | undefined;
9738
9738
  /**
9739
9739
  * @todo
9740
9740
  */
9741
- format?: string;
9741
+ format?: string | undefined;
9742
9742
  /**
9743
9743
  * @todo
9744
9744
  */
@@ -9746,31 +9746,31 @@ export declare namespace NBTSchemas {
9746
9746
  /**
9747
9747
  * @todo
9748
9748
  */
9749
- contains?: NBTSubSchemaRef;
9749
+ contains?: NBTSubSchemaRef | undefined;
9750
9750
  /**
9751
9751
  * @todo
9752
9752
  */
9753
- propertyNames?: NBTSubSchemaRef;
9753
+ propertyNames?: NBTSubSchemaRef | undefined;
9754
9754
  /**
9755
9755
  * @todo
9756
9756
  */
9757
- examples?: NBT.Tags[NBT.TagType][];
9757
+ examples?: NBT.Tags[NBT.TagType][] | undefined;
9758
9758
  /**
9759
9759
  * @todo
9760
9760
  */
9761
- $comment?: string;
9761
+ $comment?: string | undefined;
9762
9762
  /**
9763
9763
  * @todo
9764
9764
  */
9765
- if?: NBTSubSchemaRef;
9765
+ if?: NBTSubSchemaRef | undefined;
9766
9766
  /**
9767
9767
  * @todo
9768
9768
  */
9769
- then?: NBTSubSchemaRef;
9769
+ then?: NBTSubSchemaRef | undefined;
9770
9770
  /**
9771
9771
  * @todo
9772
9772
  */
9773
- else?: NBTSubSchemaRef;
9773
+ else?: NBTSubSchemaRef | undefined;
9774
9774
  /**
9775
9775
  * @todo
9776
9776
  */
@@ -9778,15 +9778,15 @@ export declare namespace NBTSchemas {
9778
9778
  /**
9779
9779
  * The label of this snippet.
9780
9780
  */
9781
- label?: string;
9781
+ label?: string | undefined;
9782
9782
  /**
9783
9783
  * The description of this snippet.
9784
9784
  */
9785
- description?: string;
9785
+ description?: string | undefined;
9786
9786
  /**
9787
9787
  * The markdown description of this snippet.
9788
9788
  */
9789
- markdownDescription?: string;
9789
+ markdownDescription?: string | undefined;
9790
9790
  /**
9791
9791
  * The body of this snippet.
9792
9792
  */
@@ -9794,48 +9794,48 @@ export declare namespace NBTSchemas {
9794
9794
  /**
9795
9795
  * The body text of this snippet.
9796
9796
  */
9797
- bodyText?: string;
9798
- }[];
9797
+ bodyText?: string | undefined;
9798
+ }[] | undefined;
9799
9799
  /**
9800
9800
  * @todo
9801
9801
  */
9802
- errorMessage?: string;
9802
+ errorMessage?: string | undefined;
9803
9803
  /**
9804
9804
  * @todo
9805
9805
  */
9806
- patternErrorMessage?: string;
9806
+ patternErrorMessage?: string | undefined;
9807
9807
  /**
9808
9808
  * @todo
9809
9809
  */
9810
- deprecationMessage?: string;
9810
+ deprecationMessage?: string | undefined;
9811
9811
  /**
9812
9812
  * Descriptions for each enum value, in the same order as {@link NBTSubSchema.enum}.
9813
9813
  */
9814
- enumDescriptions?: string[];
9814
+ enumDescriptions?: string[] | undefined;
9815
9815
  /**
9816
9816
  * @todo
9817
9817
  */
9818
- markdownEnumDescriptions?: string[];
9818
+ markdownEnumDescriptions?: string[] | undefined;
9819
9819
  /**
9820
9820
  * @todo
9821
9821
  */
9822
- markdownDescription?: string;
9822
+ markdownDescription?: string | undefined;
9823
9823
  /**
9824
9824
  * @todo
9825
9825
  */
9826
- doNotSuggest?: boolean;
9826
+ doNotSuggest?: boolean | undefined;
9827
9827
  /**
9828
9828
  * @todo
9829
9829
  */
9830
- suggestSortText?: string;
9830
+ suggestSortText?: string | undefined;
9831
9831
  /**
9832
9832
  * @todo
9833
9833
  */
9834
- allowComments?: boolean;
9834
+ allowComments?: boolean | undefined;
9835
9835
  /**
9836
9836
  * @todo
9837
9837
  */
9838
- allowTrailingCommas?: boolean;
9838
+ allowTrailingCommas?: boolean | undefined;
9839
9839
  }
9840
9840
  /**
9841
9841
  * An NBT schema map.
@@ -10078,19 +10078,19 @@ export declare namespace NBTSchemas {
10078
10078
  *
10079
10079
  * @default true
10080
10080
  */
10081
- generateIDs?: boolean;
10081
+ generateIDs?: boolean | undefined;
10082
10082
  /**
10083
10083
  * The category of the NBT schemas.
10084
10084
  *
10085
10085
  * @default "others"
10086
10086
  */
10087
- category?: WikiNBTSchemaCategory;
10087
+ category?: WikiNBTSchemaCategory | undefined;
10088
10088
  /**
10089
10089
  * Whether to replace the root tag description with the description text.
10090
10090
  *
10091
10091
  * @default false
10092
10092
  */
10093
- replaceSchemaRootTagDescriptionsWithDescriptionText?: boolean;
10093
+ replaceSchemaRootTagDescriptionsWithDescriptionText?: boolean | undefined;
10094
10094
  }
10095
10095
  /**
10096
10096
  * Extracts NBT schemas from a full Minecraft Wiki page's source contents.
@@ -22175,69 +22175,69 @@ interface JSONSchemaMap {
22175
22175
  * A JSON schema.
22176
22176
  */
22177
22177
  interface JSONSchema {
22178
- id?: string;
22179
- $id?: string;
22180
- $schema?: string;
22181
- type?: string | string[];
22182
- title?: string;
22178
+ id?: string | undefined;
22179
+ $id?: string | undefined;
22180
+ $schema?: string | undefined;
22181
+ type?: string | string[] | undefined;
22182
+ title?: string | undefined;
22183
22183
  default?: any;
22184
22184
  definitions?: {
22185
22185
  [name: string]: JSONSchema;
22186
- };
22187
- description?: string;
22188
- properties?: JSONSchemaMap;
22189
- patternProperties?: JSONSchemaMap;
22190
- additionalProperties?: boolean | JSONSchemaRef;
22191
- minProperties?: number;
22192
- maxProperties?: number;
22186
+ } | undefined;
22187
+ description?: string | undefined;
22188
+ properties?: JSONSchemaMap | undefined;
22189
+ patternProperties?: JSONSchemaMap | undefined;
22190
+ additionalProperties?: boolean | JSONSchemaRef | undefined;
22191
+ minProperties?: number | undefined;
22192
+ maxProperties?: number | undefined;
22193
22193
  dependencies?: JSONSchemaMap | {
22194
22194
  [prop: string]: string[];
22195
- };
22196
- items?: JSONSchemaRef | JSONSchemaRef[];
22197
- minItems?: number;
22198
- maxItems?: number;
22199
- uniqueItems?: boolean;
22200
- additionalItems?: boolean | JSONSchemaRef;
22201
- pattern?: string;
22202
- minLength?: number;
22203
- maxLength?: number;
22204
- minimum?: number;
22205
- maximum?: number;
22206
- exclusiveMinimum?: boolean | number;
22207
- exclusiveMaximum?: boolean | number;
22208
- multipleOf?: number;
22209
- required?: string[];
22210
- $ref?: string;
22211
- anyOf?: JSONSchemaRef[];
22212
- allOf?: JSONSchemaRef[];
22213
- oneOf?: JSONSchemaRef[];
22214
- not?: JSONSchemaRef;
22215
- enum?: any[];
22216
- format?: string;
22217
- const?: any;
22218
- contains?: JSONSchemaRef;
22219
- propertyNames?: JSONSchemaRef;
22220
- examples?: any[];
22221
- $comment?: string;
22222
- if?: JSONSchemaRef;
22223
- then?: JSONSchemaRef;
22224
- else?: JSONSchemaRef;
22195
+ } | undefined;
22196
+ items?: JSONSchemaRef | JSONSchemaRef[] | undefined;
22197
+ minItems?: number | undefined;
22198
+ maxItems?: number | undefined;
22199
+ uniqueItems?: boolean | undefined;
22200
+ additionalItems?: boolean | JSONSchemaRef | undefined;
22201
+ pattern?: string | undefined;
22202
+ minLength?: number | undefined;
22203
+ maxLength?: number | undefined;
22204
+ minimum?: number | undefined;
22205
+ maximum?: number | undefined;
22206
+ exclusiveMinimum?: boolean | number | undefined;
22207
+ exclusiveMaximum?: boolean | number | undefined;
22208
+ multipleOf?: number | undefined;
22209
+ required?: string[] | undefined;
22210
+ $ref?: string | undefined;
22211
+ anyOf?: JSONSchemaRef[] | undefined;
22212
+ allOf?: JSONSchemaRef[] | undefined;
22213
+ oneOf?: JSONSchemaRef[] | undefined;
22214
+ not?: JSONSchemaRef | undefined;
22215
+ enum?: any[] | undefined;
22216
+ format?: string | undefined;
22217
+ const?: any | undefined;
22218
+ contains?: JSONSchemaRef | undefined;
22219
+ propertyNames?: JSONSchemaRef | undefined;
22220
+ examples?: any[] | undefined;
22221
+ $comment?: string | undefined;
22222
+ if?: JSONSchemaRef | undefined;
22223
+ then?: JSONSchemaRef | undefined;
22224
+ else?: JSONSchemaRef | undefined;
22225
22225
  defaultSnippets?: {
22226
- label?: string;
22227
- description?: string;
22228
- markdownDescription?: string;
22226
+ label?: string | undefined;
22227
+ description?: string | undefined;
22228
+ markdownDescription?: string | undefined;
22229
22229
  body?: any;
22230
- bodyText?: string;
22231
- }[];
22232
- errorMessage?: string;
22233
- patternErrorMessage?: string;
22234
- deprecationMessage?: string;
22235
- enumDescriptions?: string[];
22236
- markdownEnumDescriptions?: string[];
22237
- markdownDescription?: string;
22238
- doNotSuggest?: boolean;
22239
- suggestSortText?: string;
22240
- allowComments?: boolean;
22241
- allowTrailingCommas?: boolean;
22230
+ bodyText?: string | undefined;
22231
+ }[] | undefined;
22232
+ errorMessage?: string | undefined;
22233
+ patternErrorMessage?: string | undefined;
22234
+ deprecationMessage?: string | undefined;
22235
+ enumDescriptions?: string[] | undefined;
22236
+ markdownEnumDescriptions?: string[] | undefined;
22237
+ markdownDescription?: string | undefined;
22238
+ doNotSuggest?: boolean | undefined;
22239
+ suggestSortText?: string | undefined;
22240
+ allowComments?: boolean | undefined;
22241
+ allowTrailingCommas?: boolean | undefined;
22242
22242
  }
22243
22243
  export {};
package/nbtSchemas.js CHANGED
@@ -8955,11 +8955,15 @@ however when the corresponding block in the block layer is broken, this block ge
8955
8955
  */
8956
8956
  NBTSchemas.GenericPrismarineJSONNBTSchema = {
8957
8957
  $schema: "https://json-schema.org/draft/2020-12/schema",
8958
- $id: "https://example.com/compound.schema.json",
8958
+ $id: "GenericPrismarineJSONNBTSchema",
8959
8959
  title: "Prismarine NBT JSON Schema",
8960
8960
  type: "object",
8961
8961
  required: ["type", "value"],
8962
8962
  properties: {
8963
+ name: {
8964
+ type: "string",
8965
+ default: "",
8966
+ },
8963
8967
  type: {
8964
8968
  const: "compound",
8965
8969
  },