@minecraft/server 1.4.0-rc.1.20.30-preview.21 → 1.4.0-rc.1.20.30-preview.22
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/index.d.ts +9 -4
- 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.6.0-internal.1.20.30-preview.
|
|
19
|
+
* "version": "1.6.0-internal.1.20.30-preview.22"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -1171,13 +1171,14 @@ 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
1176
|
* @throws This property can throw when used.
|
|
1176
1177
|
*/
|
|
1177
1178
|
readonly scoreboardIdentity?: ScoreboardIdentity;
|
|
1178
1179
|
/**
|
|
1179
1180
|
* @remarks
|
|
1180
|
-
*
|
|
1181
|
+
* Identifier of the type of the entity - for example,
|
|
1181
1182
|
* 'minecraft:skeleton'. This property is accessible even if
|
|
1182
1183
|
* {@link Entity.isValid} is false.
|
|
1183
1184
|
*
|
|
@@ -4065,12 +4066,16 @@ export class Scoreboard {
|
|
|
4065
4066
|
*
|
|
4066
4067
|
* This function can't be called in read-only mode.
|
|
4067
4068
|
*
|
|
4069
|
+
* @returns
|
|
4070
|
+
* Returns the previous `ScoreboardObjective` set at the
|
|
4071
|
+
* display slot, if no objective was previously set it returns
|
|
4072
|
+
* `undefined`.
|
|
4068
4073
|
* @throws This function can throw errors.
|
|
4069
4074
|
*/
|
|
4070
4075
|
setObjectiveAtDisplaySlot(
|
|
4071
4076
|
displaySlotId: DisplaySlotId,
|
|
4072
4077
|
objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions,
|
|
4073
|
-
): ScoreboardObjective;
|
|
4078
|
+
): ScoreboardObjective | undefined;
|
|
4074
4079
|
}
|
|
4075
4080
|
|
|
4076
4081
|
/**
|
|
@@ -4104,7 +4109,7 @@ export class ScoreboardIdentity {
|
|
|
4104
4109
|
*
|
|
4105
4110
|
* @throws This function can throw errors.
|
|
4106
4111
|
*/
|
|
4107
|
-
getEntity(): Entity;
|
|
4112
|
+
getEntity(): Entity | undefined;
|
|
4108
4113
|
isValid(): boolean;
|
|
4109
4114
|
}
|
|
4110
4115
|
|