@minecraft/server 1.5.0-rc.1.20.30-preview.22 → 1.5.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 +23 -2
- 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
|
*
|
|
@@ -1262,7 +1262,6 @@ export class Entity {
|
|
|
1262
1262
|
* Returns a scoreboard identity that represents this entity.
|
|
1263
1263
|
* Will remain valid when the entity is killed.
|
|
1264
1264
|
*
|
|
1265
|
-
* @throws This property can throw when used.
|
|
1266
1265
|
*/
|
|
1267
1266
|
readonly scoreboardIdentity?: ScoreboardIdentity;
|
|
1268
1267
|
/**
|
|
@@ -2041,6 +2040,8 @@ export class EntityDieAfterEventSignal {
|
|
|
2041
2040
|
|
|
2042
2041
|
/**
|
|
2043
2042
|
* @beta
|
|
2043
|
+
* Provides access to a mob's equipment slots. This component
|
|
2044
|
+
* exists for all mob entities.
|
|
2044
2045
|
*/
|
|
2045
2046
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2046
2047
|
export class EntityEquippableComponent extends EntityComponent {
|
|
@@ -2048,15 +2049,28 @@ export class EntityEquippableComponent extends EntityComponent {
|
|
|
2048
2049
|
static readonly componentId = 'minecraft:equippable';
|
|
2049
2050
|
/**
|
|
2050
2051
|
* @remarks
|
|
2052
|
+
* Gets the equipped item for the given EquipmentSlot.
|
|
2053
|
+
*
|
|
2051
2054
|
* This function can't be called in read-only mode.
|
|
2052
2055
|
*
|
|
2056
|
+
* @param equipmentSlot
|
|
2057
|
+
* The equipment slot. e.g. "head", "chest", "offhand"
|
|
2058
|
+
* @returns
|
|
2059
|
+
* Returns the item equipped to the given EquipmentSlot. If
|
|
2060
|
+
* empty, returns undefined.
|
|
2053
2061
|
* @throws This function can throw errors.
|
|
2054
2062
|
*/
|
|
2055
2063
|
getEquipment(equipmentSlot: EquipmentSlot): ItemStack | undefined;
|
|
2056
2064
|
/**
|
|
2057
2065
|
* @remarks
|
|
2066
|
+
* Replaces the item in the given EquipmentSlot.
|
|
2067
|
+
*
|
|
2058
2068
|
* This function can't be called in read-only mode.
|
|
2059
2069
|
*
|
|
2070
|
+
* @param equipmentSlot
|
|
2071
|
+
* The equipment slot. e.g. "head", "chest", "offhand".
|
|
2072
|
+
* @param itemStack
|
|
2073
|
+
* The item to equip. If undefined, clears the slot.
|
|
2060
2074
|
* @throws This function can throw errors.
|
|
2061
2075
|
*/
|
|
2062
2076
|
setEquipment(equipmentSlot: EquipmentSlot, itemStack?: ItemStack): boolean;
|
|
@@ -6004,6 +6018,13 @@ export interface RawMessage {
|
|
|
6004
6018
|
*
|
|
6005
6019
|
*/
|
|
6006
6020
|
translate?: string;
|
|
6021
|
+
/**
|
|
6022
|
+
* @remarks
|
|
6023
|
+
* Arguments for the translation token. Can be either an array
|
|
6024
|
+
* of strings or RawMessage containing an array of raw text
|
|
6025
|
+
* objects.
|
|
6026
|
+
*
|
|
6027
|
+
*/
|
|
6007
6028
|
with?: string[] | RawMessage;
|
|
6008
6029
|
}
|
|
6009
6030
|
|