@minecraft/server 1.4.0-rc.1.20.30-preview.21 → 1.4.0-rc.1.20.30-preview.24
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/README.md +1 -1
- package/index.d.ts +16 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,4 +6,4 @@ Contains many types related to manipulating a Minecraft world, including entitie
|
|
|
6
6
|
|
|
7
7
|
See full documentation for this module here:
|
|
8
8
|
|
|
9
|
-
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi
|
|
9
|
+
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```json
|
|
17
17
|
* {
|
|
18
18
|
* "module_name": "@minecraft/server",
|
|
19
|
-
* "version": "1.6.0-internal.1.20.30-preview.
|
|
19
|
+
* "version": "1.6.0-internal.1.20.30-preview.24"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -1171,13 +1171,13 @@ export class Entity {
|
|
|
1171
1171
|
* @beta
|
|
1172
1172
|
* @remarks
|
|
1173
1173
|
* Returns a scoreboard identity that represents this entity.
|
|
1174
|
+
* Will remain valid when the entity is killed.
|
|
1174
1175
|
*
|
|
1175
|
-
* @throws This property can throw when used.
|
|
1176
1176
|
*/
|
|
1177
1177
|
readonly scoreboardIdentity?: ScoreboardIdentity;
|
|
1178
1178
|
/**
|
|
1179
1179
|
* @remarks
|
|
1180
|
-
*
|
|
1180
|
+
* Identifier of the type of the entity - for example,
|
|
1181
1181
|
* 'minecraft:skeleton'. This property is accessible even if
|
|
1182
1182
|
* {@link Entity.isValid} is false.
|
|
1183
1183
|
*
|
|
@@ -4065,12 +4065,16 @@ export class Scoreboard {
|
|
|
4065
4065
|
*
|
|
4066
4066
|
* This function can't be called in read-only mode.
|
|
4067
4067
|
*
|
|
4068
|
+
* @returns
|
|
4069
|
+
* Returns the previous `ScoreboardObjective` set at the
|
|
4070
|
+
* display slot, if no objective was previously set it returns
|
|
4071
|
+
* `undefined`.
|
|
4068
4072
|
* @throws This function can throw errors.
|
|
4069
4073
|
*/
|
|
4070
4074
|
setObjectiveAtDisplaySlot(
|
|
4071
4075
|
displaySlotId: DisplaySlotId,
|
|
4072
4076
|
objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions,
|
|
4073
|
-
): ScoreboardObjective;
|
|
4077
|
+
): ScoreboardObjective | undefined;
|
|
4074
4078
|
}
|
|
4075
4079
|
|
|
4076
4080
|
/**
|
|
@@ -4104,7 +4108,7 @@ export class ScoreboardIdentity {
|
|
|
4104
4108
|
*
|
|
4105
4109
|
* @throws This function can throw errors.
|
|
4106
4110
|
*/
|
|
4107
|
-
getEntity(): Entity;
|
|
4111
|
+
getEntity(): Entity | undefined;
|
|
4108
4112
|
isValid(): boolean;
|
|
4109
4113
|
}
|
|
4110
4114
|
|
|
@@ -5599,6 +5603,13 @@ export interface RawMessage {
|
|
|
5599
5603
|
*
|
|
5600
5604
|
*/
|
|
5601
5605
|
translate?: string;
|
|
5606
|
+
/**
|
|
5607
|
+
* @remarks
|
|
5608
|
+
* Arguments for the translation token. Can be either an array
|
|
5609
|
+
* of strings or RawMessage containing an array of raw text
|
|
5610
|
+
* objects.
|
|
5611
|
+
*
|
|
5612
|
+
*/
|
|
5602
5613
|
with?: string[] | RawMessage;
|
|
5603
5614
|
}
|
|
5604
5615
|
|