@minecraft/server 1.1.0-beta.1.19.60-preview.25 → 1.1.0-beta.1.19.60-preview.26

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.
Files changed (2) hide show
  1. package/index.d.ts +15 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * ```json
17
17
  * {
18
18
  * "module_name": "@minecraft/server",
19
- * "version": "1.1.0-internal.1.19.60-preview.25"
19
+ * "version": "1.1.0-internal.1.19.60-preview.26"
20
20
  * }
21
21
  * ```
22
22
  *
@@ -3946,7 +3946,7 @@ export class EntityHealthComponent extends IEntityComponent {
3946
3946
  * @param value
3947
3947
  * @throws This function can throw errors.
3948
3948
  */
3949
- setCurrent(value: number): void;
3949
+ setCurrent(value: number): boolean;
3950
3950
  }
3951
3951
  /**
3952
3952
  * @beta
@@ -4434,7 +4434,7 @@ export class EntityLavaMovementComponent extends IEntityComponent {
4434
4434
  * @param value
4435
4435
  * @throws This function can throw errors.
4436
4436
  */
4437
- setCurrent(value: number): void;
4437
+ setCurrent(value: number): boolean;
4438
4438
  }
4439
4439
  /**
4440
4440
  * @beta
@@ -4624,7 +4624,7 @@ export class EntityMovementComponent extends IEntityComponent {
4624
4624
  * @param value
4625
4625
  * @throws This function can throw errors.
4626
4626
  */
4627
- setCurrent(value: number): void;
4627
+ setCurrent(value: number): boolean;
4628
4628
  }
4629
4629
  /**
4630
4630
  * @beta
@@ -5945,7 +5945,7 @@ export class EntityUnderwaterMovementComponent extends IEntityComponent {
5945
5945
  * @param value
5946
5946
  * @throws This function can throw errors.
5947
5947
  */
5948
- setCurrent(value: number): void;
5948
+ setCurrent(value: number): boolean;
5949
5949
  }
5950
5950
  /**
5951
5951
  * @beta
@@ -13768,7 +13768,7 @@ export class Player extends Entity {
13768
13768
  * @param message
13769
13769
  * @throws This function can throw errors.
13770
13770
  */
13771
- tell(message: RawMessage | string): void;
13771
+ tell(message: (RawMessage | string)[] | RawMessage | string): void;
13772
13772
  /**
13773
13773
  * @beta
13774
13774
  * @remarks
@@ -14153,6 +14153,7 @@ export class Scoreboard {
14153
14153
  * @throws This function can throw errors.
14154
14154
  */
14155
14155
  getParticipants(): ScoreboardIdentity[];
14156
+ getScore(objective: ScoreboardObjective, participant: ScoreboardIdentity): number;
14156
14157
  /**
14157
14158
  * @remarks
14158
14159
  * Removes an objective from the scoreboard.
@@ -14172,6 +14173,7 @@ export class Scoreboard {
14172
14173
  displaySlotId: string,
14173
14174
  objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions,
14174
14175
  ): ScoreboardObjective;
14176
+ setScore(objective: ScoreboardObjective, participant: ScoreboardIdentity, score: number): boolean;
14175
14177
  }
14176
14178
  /**
14177
14179
  * @beta
@@ -14198,6 +14200,9 @@ export class ScoreboardIdentity {
14198
14200
  * @throws This function can throw errors.
14199
14201
  */
14200
14202
  getEntity(): Entity;
14203
+ getScore(objective: ScoreboardObjective): number;
14204
+ removeFromObjective(objective: ScoreboardObjective): boolean;
14205
+ setScore(objective: ScoreboardObjective, score: number): boolean;
14201
14206
  }
14202
14207
  /**
14203
14208
  * @beta
@@ -14236,6 +14241,8 @@ export class ScoreboardObjective {
14236
14241
  * @throws This function can throw errors.
14237
14242
  */
14238
14243
  getScores(): ScoreboardScoreInfo[];
14244
+ removeParticipant(participant: ScoreboardIdentity): boolean;
14245
+ setScore(participant: ScoreboardIdentity, score: number): boolean;
14239
14246
  }
14240
14247
  /**
14241
14248
  * @beta
@@ -14852,7 +14859,7 @@ export class World {
14852
14859
  * @param message
14853
14860
  * @throws This function can throw errors.
14854
14861
  */
14855
- say(message: RawMessage | string): void;
14862
+ say(message: (RawMessage | string)[] | RawMessage | string): void;
14856
14863
  /**
14857
14864
  * @beta
14858
14865
  * @remarks
@@ -15225,7 +15232,7 @@ export interface RawMessage {
15225
15232
  rawtext?: (RawMessage | string)[];
15226
15233
  text?: string;
15227
15234
  translate?: string;
15228
- with?: (RawMessage | string)[];
15235
+ with?: string[] | RawMessage;
15229
15236
  }
15230
15237
  /**
15231
15238
  * @beta
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "1.1.0-beta.1.19.60-preview.25",
3
+ "version": "1.1.0-beta.1.19.60-preview.26",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {