@serenityjs/protocol 0.8.8-beta-20250809160213 → 0.8.8-beta-20250810010047
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/CHANGELOG.md +3 -3
- package/dist/index.d.mts +8 -35
- package/dist/index.d.ts +8 -35
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @serenityjs/protocol
|
|
2
2
|
|
|
3
|
-
## 0.8.8-beta-
|
|
3
|
+
## 0.8.8-beta-20250810010047
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- [`314f82a`](https://github.com/SerenityJS/serenity/commit/314f82a1c23a8d75c7f2e3daea5c6c95b714c60b) Thanks [@PMK744](https://github.com/PMK744)! - init v0.8.8-beta
|
|
8
8
|
|
|
9
9
|
- Updated dependencies [[`314f82a`](https://github.com/SerenityJS/serenity/commit/314f82a1c23a8d75c7f2e3daea5c6c95b714c60b)]:
|
|
10
|
-
- @serenityjs/nbt@0.8.8-beta-
|
|
11
|
-
- @serenityjs/raknet@0.8.8-beta-
|
|
10
|
+
- @serenityjs/nbt@0.8.8-beta-20250810010047
|
|
11
|
+
- @serenityjs/raknet@0.8.8-beta-20250810010047
|
|
12
12
|
|
|
13
13
|
## 0.8.7
|
|
14
14
|
|
package/dist/index.d.mts
CHANGED
|
@@ -3766,31 +3766,16 @@ interface RecipeIngredientDeferred {
|
|
|
3766
3766
|
interface RecipeIngredientComplexAlias {
|
|
3767
3767
|
name: string;
|
|
3768
3768
|
}
|
|
3769
|
+
type RecipeIngredientType = RecipeIngredientDefault | RecipeIngredientMolang | RecipeIngredientItemTag | RecipeIngredientDeferred | RecipeIngredientComplexAlias;
|
|
3769
3770
|
declare class RecipeIngredient extends DataType {
|
|
3770
3771
|
/**
|
|
3771
3772
|
* The type of the ingredient.
|
|
3772
3773
|
*/
|
|
3773
3774
|
readonly type: InternalType;
|
|
3774
3775
|
/**
|
|
3775
|
-
*
|
|
3776
|
+
* The the ingredient item definition based on the type.
|
|
3776
3777
|
*/
|
|
3777
|
-
readonly
|
|
3778
|
-
/**
|
|
3779
|
-
* If the ingredient is a molang item, this is the molang string and version
|
|
3780
|
-
*/
|
|
3781
|
-
readonly molang: RecipeIngredientMolang | null;
|
|
3782
|
-
/**
|
|
3783
|
-
* If the ingredient is an item tag, this is the tag.
|
|
3784
|
-
*/
|
|
3785
|
-
readonly itemTag: RecipeIngredientItemTag | null;
|
|
3786
|
-
/**
|
|
3787
|
-
* If the ingredient is a deferred item, this is the name and metadata.
|
|
3788
|
-
*/
|
|
3789
|
-
readonly deferred: RecipeIngredientDeferred | null;
|
|
3790
|
-
/**
|
|
3791
|
-
* If the ingredient is a complex alias, this is the name
|
|
3792
|
-
*/
|
|
3793
|
-
readonly complexAlias: RecipeIngredientComplexAlias | null;
|
|
3778
|
+
readonly definition: RecipeIngredientType | null;
|
|
3794
3779
|
/**
|
|
3795
3780
|
* The stack size of the ingredient
|
|
3796
3781
|
*/
|
|
@@ -3798,14 +3783,10 @@ declare class RecipeIngredient extends DataType {
|
|
|
3798
3783
|
/**
|
|
3799
3784
|
* Constructor for the RecipeIngredient class
|
|
3800
3785
|
* @param type The type of the ingredient.
|
|
3801
|
-
* @param default_ If the ingredient is a default item, this is the item's network ID and metadata.
|
|
3802
|
-
* @param molang If the ingredient is a molang item, this is the molang string and version
|
|
3803
|
-
* @param itemTag If the ingredient is an item tag, this is the tag.
|
|
3804
|
-
* @param deferred If the ingredient is a deferred item, this is the name and metadata.
|
|
3805
|
-
* @param complexAlias If the ingredient is a complex alias, this is the name
|
|
3806
3786
|
* @param stackSize The stack size of the ingredient
|
|
3787
|
+
* @param definition The the ingredient item definition based on the type.
|
|
3807
3788
|
*/
|
|
3808
|
-
constructor(type: InternalType,
|
|
3789
|
+
constructor(type: InternalType, stackSize: number, definition: RecipeIngredientType | null);
|
|
3809
3790
|
static read(stream: BinaryStream): RecipeIngredient;
|
|
3810
3791
|
static write(stream: BinaryStream, value: RecipeIngredient): void;
|
|
3811
3792
|
}
|
|
@@ -4186,19 +4167,11 @@ declare class UserDataShapelessRecipe extends DataType {
|
|
|
4186
4167
|
static write(stream: BinaryStream, value: UserDataShapelessRecipe): void;
|
|
4187
4168
|
}
|
|
4188
4169
|
|
|
4170
|
+
type CraftingDataEntryRecipe = ShapelessRecipe | ShapedRecipe | FurnanceRecipe | FurnanceAuxRecipe | MultiRecipe | UserDataShapelessRecipe | ShapelessRecipe | SmithingTransformRecipe | SmithingTrimRecipe;
|
|
4189
4171
|
declare class CraftingDataEntry extends DataType {
|
|
4190
4172
|
readonly type: CraftingDataEntryType;
|
|
4191
|
-
readonly
|
|
4192
|
-
|
|
4193
|
-
readonly furnace: FurnanceRecipe | null;
|
|
4194
|
-
readonly furnaceAux: FurnanceAuxRecipe | null;
|
|
4195
|
-
readonly multi: MultiRecipe | null;
|
|
4196
|
-
readonly userDataShapeless: UserDataShapelessRecipe | null;
|
|
4197
|
-
readonly shapelessChemistry: ShapelessRecipe | null;
|
|
4198
|
-
readonly shapedChemistry: ShapedRecipe | null;
|
|
4199
|
-
readonly smithingTransform: SmithingTransformRecipe | null;
|
|
4200
|
-
readonly smithingTrim: SmithingTrimRecipe | null;
|
|
4201
|
-
constructor(type: CraftingDataEntryType, shapeless: ShapelessRecipe | null, shaped: ShapedRecipe | null, furnace: FurnanceRecipe | null, furnaceAux: FurnanceAuxRecipe | null, multi: MultiRecipe | null, userDataShapeless: UserDataShapelessRecipe | null, shapelessChemistry: ShapelessRecipe | null, shapedChemistry: ShapedRecipe | null, smithingTransform: SmithingTransformRecipe | null, smithingTrim: SmithingTrimRecipe | null);
|
|
4173
|
+
readonly recipe: CraftingDataEntryRecipe;
|
|
4174
|
+
constructor(type: CraftingDataEntryType, recipe: CraftingDataEntryRecipe);
|
|
4202
4175
|
static read(stream: BinaryStream): Array<CraftingDataEntry>;
|
|
4203
4176
|
static write(stream: BinaryStream, entries: Array<CraftingDataEntry>): void;
|
|
4204
4177
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3766,31 +3766,16 @@ interface RecipeIngredientDeferred {
|
|
|
3766
3766
|
interface RecipeIngredientComplexAlias {
|
|
3767
3767
|
name: string;
|
|
3768
3768
|
}
|
|
3769
|
+
type RecipeIngredientType = RecipeIngredientDefault | RecipeIngredientMolang | RecipeIngredientItemTag | RecipeIngredientDeferred | RecipeIngredientComplexAlias;
|
|
3769
3770
|
declare class RecipeIngredient extends DataType {
|
|
3770
3771
|
/**
|
|
3771
3772
|
* The type of the ingredient.
|
|
3772
3773
|
*/
|
|
3773
3774
|
readonly type: InternalType;
|
|
3774
3775
|
/**
|
|
3775
|
-
*
|
|
3776
|
+
* The the ingredient item definition based on the type.
|
|
3776
3777
|
*/
|
|
3777
|
-
readonly
|
|
3778
|
-
/**
|
|
3779
|
-
* If the ingredient is a molang item, this is the molang string and version
|
|
3780
|
-
*/
|
|
3781
|
-
readonly molang: RecipeIngredientMolang | null;
|
|
3782
|
-
/**
|
|
3783
|
-
* If the ingredient is an item tag, this is the tag.
|
|
3784
|
-
*/
|
|
3785
|
-
readonly itemTag: RecipeIngredientItemTag | null;
|
|
3786
|
-
/**
|
|
3787
|
-
* If the ingredient is a deferred item, this is the name and metadata.
|
|
3788
|
-
*/
|
|
3789
|
-
readonly deferred: RecipeIngredientDeferred | null;
|
|
3790
|
-
/**
|
|
3791
|
-
* If the ingredient is a complex alias, this is the name
|
|
3792
|
-
*/
|
|
3793
|
-
readonly complexAlias: RecipeIngredientComplexAlias | null;
|
|
3778
|
+
readonly definition: RecipeIngredientType | null;
|
|
3794
3779
|
/**
|
|
3795
3780
|
* The stack size of the ingredient
|
|
3796
3781
|
*/
|
|
@@ -3798,14 +3783,10 @@ declare class RecipeIngredient extends DataType {
|
|
|
3798
3783
|
/**
|
|
3799
3784
|
* Constructor for the RecipeIngredient class
|
|
3800
3785
|
* @param type The type of the ingredient.
|
|
3801
|
-
* @param default_ If the ingredient is a default item, this is the item's network ID and metadata.
|
|
3802
|
-
* @param molang If the ingredient is a molang item, this is the molang string and version
|
|
3803
|
-
* @param itemTag If the ingredient is an item tag, this is the tag.
|
|
3804
|
-
* @param deferred If the ingredient is a deferred item, this is the name and metadata.
|
|
3805
|
-
* @param complexAlias If the ingredient is a complex alias, this is the name
|
|
3806
3786
|
* @param stackSize The stack size of the ingredient
|
|
3787
|
+
* @param definition The the ingredient item definition based on the type.
|
|
3807
3788
|
*/
|
|
3808
|
-
constructor(type: InternalType,
|
|
3789
|
+
constructor(type: InternalType, stackSize: number, definition: RecipeIngredientType | null);
|
|
3809
3790
|
static read(stream: BinaryStream): RecipeIngredient;
|
|
3810
3791
|
static write(stream: BinaryStream, value: RecipeIngredient): void;
|
|
3811
3792
|
}
|
|
@@ -4186,19 +4167,11 @@ declare class UserDataShapelessRecipe extends DataType {
|
|
|
4186
4167
|
static write(stream: BinaryStream, value: UserDataShapelessRecipe): void;
|
|
4187
4168
|
}
|
|
4188
4169
|
|
|
4170
|
+
type CraftingDataEntryRecipe = ShapelessRecipe | ShapedRecipe | FurnanceRecipe | FurnanceAuxRecipe | MultiRecipe | UserDataShapelessRecipe | ShapelessRecipe | SmithingTransformRecipe | SmithingTrimRecipe;
|
|
4189
4171
|
declare class CraftingDataEntry extends DataType {
|
|
4190
4172
|
readonly type: CraftingDataEntryType;
|
|
4191
|
-
readonly
|
|
4192
|
-
|
|
4193
|
-
readonly furnace: FurnanceRecipe | null;
|
|
4194
|
-
readonly furnaceAux: FurnanceAuxRecipe | null;
|
|
4195
|
-
readonly multi: MultiRecipe | null;
|
|
4196
|
-
readonly userDataShapeless: UserDataShapelessRecipe | null;
|
|
4197
|
-
readonly shapelessChemistry: ShapelessRecipe | null;
|
|
4198
|
-
readonly shapedChemistry: ShapedRecipe | null;
|
|
4199
|
-
readonly smithingTransform: SmithingTransformRecipe | null;
|
|
4200
|
-
readonly smithingTrim: SmithingTrimRecipe | null;
|
|
4201
|
-
constructor(type: CraftingDataEntryType, shapeless: ShapelessRecipe | null, shaped: ShapedRecipe | null, furnace: FurnanceRecipe | null, furnaceAux: FurnanceAuxRecipe | null, multi: MultiRecipe | null, userDataShapeless: UserDataShapelessRecipe | null, shapelessChemistry: ShapelessRecipe | null, shapedChemistry: ShapedRecipe | null, smithingTransform: SmithingTransformRecipe | null, smithingTrim: SmithingTrimRecipe | null);
|
|
4173
|
+
readonly recipe: CraftingDataEntryRecipe;
|
|
4174
|
+
constructor(type: CraftingDataEntryType, recipe: CraftingDataEntryRecipe);
|
|
4202
4175
|
static read(stream: BinaryStream): Array<CraftingDataEntry>;
|
|
4203
4176
|
static write(stream: BinaryStream, entries: Array<CraftingDataEntry>): void;
|
|
4204
4177
|
}
|