@minecraft/server 1.9.0-beta.1.20.60-preview.20 → 1.9.0-beta.1.20.60-preview.21
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 +203 -67
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -119,11 +119,37 @@ export enum CompoundBlockVolumePositionRelativity {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @beta
|
|
122
|
+
* An enumeration for the various difficulty levels of
|
|
123
|
+
* Minecraft.
|
|
122
124
|
*/
|
|
123
125
|
export enum Difficulty {
|
|
126
|
+
/**
|
|
127
|
+
* @beta
|
|
128
|
+
* @remarks
|
|
129
|
+
* Peaceful difficulty level.
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
124
132
|
Peaceful = 0,
|
|
133
|
+
/**
|
|
134
|
+
* @beta
|
|
135
|
+
* @remarks
|
|
136
|
+
* Easy difficulty level.
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
125
139
|
Easy = 1,
|
|
140
|
+
/**
|
|
141
|
+
* @beta
|
|
142
|
+
* @remarks
|
|
143
|
+
* Normal difficulty level.
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
126
146
|
Normal = 2,
|
|
147
|
+
/**
|
|
148
|
+
* @beta
|
|
149
|
+
* @remarks
|
|
150
|
+
* Hard difficulty level.
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
127
153
|
Hard = 3,
|
|
128
154
|
}
|
|
129
155
|
|
|
@@ -640,11 +666,16 @@ export enum EntityInitializationCause {
|
|
|
640
666
|
Born = 'Born',
|
|
641
667
|
/**
|
|
642
668
|
* @remarks
|
|
643
|
-
* Case when an entity is created by an event, e.g.,
|
|
644
|
-
* trader spawning llamas.
|
|
669
|
+
* Case when an entity is created by an event, e.g., a
|
|
670
|
+
* Wandering trader spawning llamas.
|
|
645
671
|
*
|
|
646
672
|
*/
|
|
647
673
|
Event = 'Event',
|
|
674
|
+
/**
|
|
675
|
+
* @remarks
|
|
676
|
+
* Case when an entity is loaded into the world.
|
|
677
|
+
*
|
|
678
|
+
*/
|
|
648
679
|
Loaded = 'Loaded',
|
|
649
680
|
/**
|
|
650
681
|
* @remarks
|
|
@@ -1021,11 +1052,47 @@ export enum SignSide {
|
|
|
1021
1052
|
* day.
|
|
1022
1053
|
*/
|
|
1023
1054
|
export enum TimeOfDay {
|
|
1055
|
+
/**
|
|
1056
|
+
* @remarks
|
|
1057
|
+
* Sets the time to the start of the day, which is time of the
|
|
1058
|
+
* day 1,000 (or the equivalent of 7am) in Minecraft.
|
|
1059
|
+
*
|
|
1060
|
+
*/
|
|
1024
1061
|
Day = 1000,
|
|
1062
|
+
/**
|
|
1063
|
+
* @remarks
|
|
1064
|
+
* Sets the time to noon, which is time of the day 6,000 in
|
|
1065
|
+
* Minecraft.
|
|
1066
|
+
*
|
|
1067
|
+
*/
|
|
1025
1068
|
Noon = 6000,
|
|
1069
|
+
/**
|
|
1070
|
+
* @remarks
|
|
1071
|
+
* Sets the time to sunset, which is time of the day 12,000 (or
|
|
1072
|
+
* the equivalent of 6pm) in Minecraft.
|
|
1073
|
+
*
|
|
1074
|
+
*/
|
|
1026
1075
|
Sunset = 12000,
|
|
1076
|
+
/**
|
|
1077
|
+
* @remarks
|
|
1078
|
+
* Sets the time to night, which is time of the day 13,000 (or
|
|
1079
|
+
* the equivalent of 7:00pm) in Minecraft.
|
|
1080
|
+
*
|
|
1081
|
+
*/
|
|
1027
1082
|
Night = 13000,
|
|
1083
|
+
/**
|
|
1084
|
+
* @remarks
|
|
1085
|
+
* Sets the time to midnight, which is time of the day 18,000
|
|
1086
|
+
* (or the equivalent of 12:00am) in Minecraft.
|
|
1087
|
+
*
|
|
1088
|
+
*/
|
|
1028
1089
|
Midnight = 18000,
|
|
1090
|
+
/**
|
|
1091
|
+
* @remarks
|
|
1092
|
+
* Sets the time to sunrise, which is time of the day 23,000
|
|
1093
|
+
* (or the equivalent of 5am) in Minecraft.
|
|
1094
|
+
*
|
|
1095
|
+
*/
|
|
1029
1096
|
Sunrise = 23000,
|
|
1030
1097
|
}
|
|
1031
1098
|
|
|
@@ -1582,6 +1649,16 @@ export class Block {
|
|
|
1582
1649
|
north(steps?: number): Block | undefined;
|
|
1583
1650
|
/**
|
|
1584
1651
|
* @beta
|
|
1652
|
+
* @remarks
|
|
1653
|
+
* Returns a block at an offset relative vector to this block.
|
|
1654
|
+
*
|
|
1655
|
+
* @param offset
|
|
1656
|
+
* The offset vector. For example, an offset of 0, 1, 0 will
|
|
1657
|
+
* return the block above the current block.
|
|
1658
|
+
* @returns
|
|
1659
|
+
* Block at the specified offset, or undefined if that block
|
|
1660
|
+
* could not be retrieved (for example, the block and its
|
|
1661
|
+
* relative chunk is not loaded yet.)
|
|
1585
1662
|
* @throws This function can throw errors.
|
|
1586
1663
|
*
|
|
1587
1664
|
* {@link LocationInUnloadedChunkError}
|
|
@@ -2790,33 +2867,24 @@ export class ChatSendAfterEvent {
|
|
|
2790
2867
|
private constructor();
|
|
2791
2868
|
/**
|
|
2792
2869
|
* @remarks
|
|
2793
|
-
* Message that is being broadcast.
|
|
2794
|
-
* handler, _message_ can be updated with edits before the
|
|
2795
|
-
* message is displayed to players.
|
|
2870
|
+
* Message that is being broadcast.
|
|
2796
2871
|
*
|
|
2797
2872
|
*/
|
|
2798
|
-
message: string;
|
|
2873
|
+
readonly message: string;
|
|
2799
2874
|
/**
|
|
2800
2875
|
* @remarks
|
|
2801
2876
|
* Player that sent the chat message.
|
|
2802
2877
|
*
|
|
2803
2878
|
*/
|
|
2804
|
-
sender: Player;
|
|
2879
|
+
readonly sender: Player;
|
|
2805
2880
|
/**
|
|
2806
2881
|
* @remarks
|
|
2807
|
-
*
|
|
2882
|
+
* Optional list of players that will receive this message. If
|
|
2883
|
+
* defined, this message is directly targeted to one or more
|
|
2808
2884
|
* players (i.e., is not broadcast.)
|
|
2809
2885
|
*
|
|
2810
2886
|
*/
|
|
2811
|
-
|
|
2812
|
-
/**
|
|
2813
|
-
* @remarks
|
|
2814
|
-
* List of players that will receive this message.
|
|
2815
|
-
*
|
|
2816
|
-
* @returns
|
|
2817
|
-
* List of player objects.
|
|
2818
|
-
*/
|
|
2819
|
-
getTargets(): Player[];
|
|
2887
|
+
readonly targets?: Player[];
|
|
2820
2888
|
}
|
|
2821
2889
|
|
|
2822
2890
|
/**
|
|
@@ -2863,8 +2931,7 @@ export class ChatSendAfterEventSignal {
|
|
|
2863
2931
|
* @beta
|
|
2864
2932
|
* An event that fires as players enter chat messages.
|
|
2865
2933
|
*/
|
|
2866
|
-
|
|
2867
|
-
export class ChatSendBeforeEvent extends ChatSendAfterEvent {
|
|
2934
|
+
export class ChatSendBeforeEvent {
|
|
2868
2935
|
private constructor();
|
|
2869
2936
|
/**
|
|
2870
2937
|
* @remarks
|
|
@@ -2875,13 +2942,24 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
|
|
|
2875
2942
|
cancel: boolean;
|
|
2876
2943
|
/**
|
|
2877
2944
|
* @remarks
|
|
2878
|
-
*
|
|
2879
|
-
*
|
|
2945
|
+
* Message that is being broadcast.
|
|
2946
|
+
*
|
|
2947
|
+
*/
|
|
2948
|
+
readonly message: string;
|
|
2949
|
+
/**
|
|
2950
|
+
* @remarks
|
|
2951
|
+
* Player that sent the chat message.
|
|
2880
2952
|
*
|
|
2881
|
-
* @param players
|
|
2882
|
-
* Updated array of players that should receive this message.
|
|
2883
2953
|
*/
|
|
2884
|
-
|
|
2954
|
+
readonly sender: Player;
|
|
2955
|
+
/**
|
|
2956
|
+
* @remarks
|
|
2957
|
+
* Optional list of players that will receive this message. If
|
|
2958
|
+
* defined, this message is directly targeted to one or more
|
|
2959
|
+
* players (i.e., is not broadcast.)
|
|
2960
|
+
*
|
|
2961
|
+
*/
|
|
2962
|
+
readonly targets?: Player[];
|
|
2885
2963
|
}
|
|
2886
2964
|
|
|
2887
2965
|
/**
|
|
@@ -3991,8 +4069,13 @@ export class Dimension {
|
|
|
3991
4069
|
/**
|
|
3992
4070
|
* @beta
|
|
3993
4071
|
* @remarks
|
|
4072
|
+
* Returns the current weather.
|
|
4073
|
+
*
|
|
3994
4074
|
* This function can't be called in read-only mode.
|
|
3995
4075
|
*
|
|
4076
|
+
* @returns
|
|
4077
|
+
* Returns a WeatherType that explains the broad category of
|
|
4078
|
+
* weather that is currently going on.
|
|
3996
4079
|
*/
|
|
3997
4080
|
getWeather(): WeatherType;
|
|
3998
4081
|
/**
|
|
@@ -4291,18 +4374,14 @@ export class EffectAddAfterEvent {
|
|
|
4291
4374
|
* @remarks
|
|
4292
4375
|
* Additional properties and details of the effect.
|
|
4293
4376
|
*
|
|
4294
|
-
* This property can't be edited in read-only mode.
|
|
4295
|
-
*
|
|
4296
4377
|
*/
|
|
4297
|
-
effect: Effect;
|
|
4378
|
+
readonly effect: Effect;
|
|
4298
4379
|
/**
|
|
4299
4380
|
* @remarks
|
|
4300
4381
|
* Entity that the effect is being added to.
|
|
4301
4382
|
*
|
|
4302
|
-
* This property can't be edited in read-only mode.
|
|
4303
|
-
*
|
|
4304
4383
|
*/
|
|
4305
|
-
entity: Entity;
|
|
4384
|
+
readonly entity: Entity;
|
|
4306
4385
|
}
|
|
4307
4386
|
|
|
4308
4387
|
/**
|
|
@@ -4349,6 +4428,11 @@ export class EffectAddBeforeEvent {
|
|
|
4349
4428
|
*
|
|
4350
4429
|
*/
|
|
4351
4430
|
cancel: boolean;
|
|
4431
|
+
/**
|
|
4432
|
+
* @remarks
|
|
4433
|
+
* Effect duration.
|
|
4434
|
+
*
|
|
4435
|
+
*/
|
|
4352
4436
|
duration: number;
|
|
4353
4437
|
/**
|
|
4354
4438
|
* @remarks
|
|
@@ -4952,6 +5036,10 @@ export class Entity {
|
|
|
4952
5036
|
applyKnockback(directionX: number, directionZ: number, horizontalStrength: number, verticalStrength: number): void;
|
|
4953
5037
|
/**
|
|
4954
5038
|
* @beta
|
|
5039
|
+
* @remarks
|
|
5040
|
+
* Clears all dynamic properties that have been set on this
|
|
5041
|
+
* entity.
|
|
5042
|
+
*
|
|
4955
5043
|
* @throws This function can throw errors.
|
|
4956
5044
|
*/
|
|
4957
5045
|
clearDynamicProperties(): void;
|
|
@@ -5071,11 +5159,25 @@ export class Entity {
|
|
|
5071
5159
|
getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined;
|
|
5072
5160
|
/**
|
|
5073
5161
|
* @beta
|
|
5162
|
+
* @remarks
|
|
5163
|
+
* Returns the available set of dynamic property identifiers
|
|
5164
|
+
* that have been used on this entity.
|
|
5165
|
+
*
|
|
5166
|
+
* @returns
|
|
5167
|
+
* A string array of the dynamic properties set on this entity.
|
|
5074
5168
|
* @throws This function can throw errors.
|
|
5075
5169
|
*/
|
|
5076
5170
|
getDynamicPropertyIds(): string[];
|
|
5077
5171
|
/**
|
|
5078
5172
|
* @beta
|
|
5173
|
+
* @remarks
|
|
5174
|
+
* Returns the total size, in bytes, of all the dynamic
|
|
5175
|
+
* properties that are currently stored for this entity. This
|
|
5176
|
+
* can be useful for diagnosing performance warning signs - if,
|
|
5177
|
+
* for example, an entity has many megabytes of associated
|
|
5178
|
+
* dynamic properties, it may be slow to load on various
|
|
5179
|
+
* devices.
|
|
5180
|
+
*
|
|
5079
5181
|
* @throws This function can throw errors.
|
|
5080
5182
|
*/
|
|
5081
5183
|
getDynamicPropertyTotalByteCount(): number;
|
|
@@ -5969,8 +6071,6 @@ export class EntityEquippableComponent extends EntityComponent {
|
|
|
5969
6071
|
* @remarks
|
|
5970
6072
|
* Gets the equipped item for the given EquipmentSlot.
|
|
5971
6073
|
*
|
|
5972
|
-
* This function can't be called in read-only mode.
|
|
5973
|
-
*
|
|
5974
6074
|
* @param equipmentSlot
|
|
5975
6075
|
* The equipment slot. e.g. "head", "chest", "offhand"
|
|
5976
6076
|
* @returns
|
|
@@ -5985,8 +6085,6 @@ export class EntityEquippableComponent extends EntityComponent {
|
|
|
5985
6085
|
* Gets the ContainerSlot corresponding to the given
|
|
5986
6086
|
* EquipmentSlot.
|
|
5987
6087
|
*
|
|
5988
|
-
* This function can't be called in read-only mode.
|
|
5989
|
-
*
|
|
5990
6088
|
* @param equipmentSlot
|
|
5991
6089
|
* The equipment slot. e.g. "head", "chest", "offhand".
|
|
5992
6090
|
* @returns
|
|
@@ -7603,7 +7701,7 @@ export class EntityTypes {
|
|
|
7603
7701
|
* Retrieves an iterator of all entity types within this world.
|
|
7604
7702
|
*
|
|
7605
7703
|
*/
|
|
7606
|
-
static getAll():
|
|
7704
|
+
static getAll(): EntityType[];
|
|
7607
7705
|
}
|
|
7608
7706
|
|
|
7609
7707
|
/**
|
|
@@ -8213,23 +8311,16 @@ export class ItemDurabilityComponent extends ItemComponent {
|
|
|
8213
8311
|
*
|
|
8214
8312
|
* This function can't be called in read-only mode.
|
|
8215
8313
|
*
|
|
8216
|
-
* @param unbreaking
|
|
8217
|
-
* Unbreaking factor to consider in factoring the damage
|
|
8218
|
-
* chance. Incoming unbreaking parameter must be greater than
|
|
8219
|
-
* 0.
|
|
8220
8314
|
* @throws This function can throw errors.
|
|
8221
8315
|
*/
|
|
8222
|
-
getDamageChance(
|
|
8316
|
+
getDamageChance(unbreakingEnchantmentLevel?: number): number;
|
|
8223
8317
|
/**
|
|
8224
8318
|
* @remarks
|
|
8225
|
-
* A range of numbers that describes the chance of the item
|
|
8226
|
-
* losing durability.
|
|
8227
|
-
*
|
|
8228
8319
|
* This function can't be called in read-only mode.
|
|
8229
8320
|
*
|
|
8230
8321
|
* @throws This function can throw errors.
|
|
8231
8322
|
*/
|
|
8232
|
-
|
|
8323
|
+
getDamageChanceRange(): minecraftcommon.NumberRange;
|
|
8233
8324
|
}
|
|
8234
8325
|
|
|
8235
8326
|
/**
|
|
@@ -9835,8 +9926,18 @@ export class Player extends Entity {
|
|
|
9835
9926
|
/**
|
|
9836
9927
|
* @beta
|
|
9837
9928
|
* @remarks
|
|
9929
|
+
* Creates a new particle emitter at a specified location in
|
|
9930
|
+
* the world. Only visible to the target player.
|
|
9931
|
+
*
|
|
9838
9932
|
* This function can't be called in read-only mode.
|
|
9839
9933
|
*
|
|
9934
|
+
* @param effectName
|
|
9935
|
+
* Identifier of the particle to create.
|
|
9936
|
+
* @param location
|
|
9937
|
+
* The location at which to create the particle emitter.
|
|
9938
|
+
* @param molangVariables
|
|
9939
|
+
* A set of optional, customizable variables that can be
|
|
9940
|
+
* adjusted for this particle.
|
|
9840
9941
|
* @throws This function can throw errors.
|
|
9841
9942
|
*
|
|
9842
9943
|
* {@link Error}
|
|
@@ -9844,6 +9945,26 @@ export class Player extends Entity {
|
|
|
9844
9945
|
* {@link LocationInUnloadedChunkError}
|
|
9845
9946
|
*
|
|
9846
9947
|
* {@link LocationOutOfWorldBoundariesError}
|
|
9948
|
+
* @example spawnParticle.ts
|
|
9949
|
+
* ```typescript
|
|
9950
|
+
* for (let i = 0; i < 100; i++) {
|
|
9951
|
+
* const molang = new mc.MolangVariableMap();
|
|
9952
|
+
*
|
|
9953
|
+
* molang.setColorRGB("variable.color", {
|
|
9954
|
+
* red: Math.random(),
|
|
9955
|
+
* green: Math.random(),
|
|
9956
|
+
* blue: Math.random(),
|
|
9957
|
+
* alpha: 1,
|
|
9958
|
+
* });
|
|
9959
|
+
*
|
|
9960
|
+
* let newLocation = {
|
|
9961
|
+
* x: targetLocation.x + Math.floor(Math.random() * 8) - 4,
|
|
9962
|
+
* y: targetLocation.y + Math.floor(Math.random() * 8) - 4,
|
|
9963
|
+
* z: targetLocation.z + Math.floor(Math.random() * 8) - 4,
|
|
9964
|
+
* };
|
|
9965
|
+
* player.spawnParticle("minecraft:colored_flame_particle", newLocation, molang);
|
|
9966
|
+
* }
|
|
9967
|
+
* ```
|
|
9847
9968
|
*/
|
|
9848
9969
|
spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void;
|
|
9849
9970
|
/**
|
|
@@ -11908,6 +12029,10 @@ export class World {
|
|
|
11908
12029
|
broadcastClientMessage(id: string, value: string): void;
|
|
11909
12030
|
/**
|
|
11910
12031
|
* @beta
|
|
12032
|
+
* @remarks
|
|
12033
|
+
* Clears the set of dynamic properties declared for this
|
|
12034
|
+
* behavior pack within the world.
|
|
12035
|
+
*
|
|
11911
12036
|
*/
|
|
11912
12037
|
clearDynamicProperties(): void;
|
|
11913
12038
|
/**
|
|
@@ -12024,10 +12149,21 @@ export class World {
|
|
|
12024
12149
|
getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined;
|
|
12025
12150
|
/**
|
|
12026
12151
|
* @beta
|
|
12152
|
+
* @remarks
|
|
12153
|
+
* Gets a set of dynamic property identifiers that have been
|
|
12154
|
+
* set in this world.
|
|
12155
|
+
*
|
|
12156
|
+
* @returns
|
|
12157
|
+
* A string array of active dynamic property identifiers.
|
|
12027
12158
|
*/
|
|
12028
12159
|
getDynamicPropertyIds(): string[];
|
|
12029
12160
|
/**
|
|
12030
12161
|
* @beta
|
|
12162
|
+
* @remarks
|
|
12163
|
+
* Gets the total byte count of dynamic properties. This could
|
|
12164
|
+
* potentially be used for your own analytics to ensure you're
|
|
12165
|
+
* not storing gigantic sets of dynamic properties.
|
|
12166
|
+
*
|
|
12031
12167
|
*/
|
|
12032
12168
|
getDynamicPropertyTotalByteCount(): number;
|
|
12033
12169
|
/**
|
|
@@ -12349,7 +12485,7 @@ export class WorldAfterEvents {
|
|
|
12349
12485
|
* entity.
|
|
12350
12486
|
*
|
|
12351
12487
|
*/
|
|
12352
|
-
readonly
|
|
12488
|
+
readonly dataDrivenEntityTrigger: DataDrivenEntityTriggerAfterEventSignal;
|
|
12353
12489
|
/**
|
|
12354
12490
|
* @beta
|
|
12355
12491
|
* @remarks
|
|
@@ -12518,10 +12654,16 @@ export class WorldAfterEvents {
|
|
|
12518
12654
|
readonly playerDimensionChange: PlayerDimensionChangeAfterEventSignal;
|
|
12519
12655
|
/**
|
|
12520
12656
|
* @beta
|
|
12657
|
+
* @remarks
|
|
12658
|
+
* An event for when a player interacts with a block.
|
|
12659
|
+
*
|
|
12521
12660
|
*/
|
|
12522
12661
|
readonly playerInteractWithBlock: PlayerInteractWithBlockAfterEventSignal;
|
|
12523
12662
|
/**
|
|
12524
12663
|
* @beta
|
|
12664
|
+
* @remarks
|
|
12665
|
+
* This event fires when a player interacts with an entity.
|
|
12666
|
+
*
|
|
12525
12667
|
*/
|
|
12526
12668
|
readonly playerInteractWithEntity: PlayerInteractWithEntityAfterEventSignal;
|
|
12527
12669
|
/**
|
|
@@ -12696,14 +12838,23 @@ export class WorldBeforeEvents {
|
|
|
12696
12838
|
readonly playerBreakBlock: PlayerBreakBlockBeforeEventSignal;
|
|
12697
12839
|
/**
|
|
12698
12840
|
* @beta
|
|
12841
|
+
* @remarks
|
|
12842
|
+
* Fires before a player interacts with a block.
|
|
12843
|
+
*
|
|
12699
12844
|
*/
|
|
12700
12845
|
readonly playerInteractWithBlock: PlayerInteractWithBlockBeforeEventSignal;
|
|
12701
12846
|
/**
|
|
12702
12847
|
* @beta
|
|
12848
|
+
* @remarks
|
|
12849
|
+
* Fires before a player interacts with an entity.
|
|
12850
|
+
*
|
|
12703
12851
|
*/
|
|
12704
12852
|
readonly playerInteractWithEntity: PlayerInteractWithEntityBeforeEventSignal;
|
|
12705
12853
|
/**
|
|
12706
12854
|
* @beta
|
|
12855
|
+
* @remarks
|
|
12856
|
+
* Fires when a player leaves the game.
|
|
12857
|
+
*
|
|
12707
12858
|
*/
|
|
12708
12859
|
readonly playerLeave: PlayerLeaveBeforeEventSignal;
|
|
12709
12860
|
/**
|
|
@@ -12951,6 +13102,11 @@ export interface BoundingBox {
|
|
|
12951
13102
|
}
|
|
12952
13103
|
|
|
12953
13104
|
export interface CameraDefaultOptions {
|
|
13105
|
+
/**
|
|
13106
|
+
* @remarks
|
|
13107
|
+
* Sets a set of easing options for the camera.
|
|
13108
|
+
*
|
|
13109
|
+
*/
|
|
12954
13110
|
easeOptions: CameraEaseOptions;
|
|
12955
13111
|
}
|
|
12956
13112
|
|
|
@@ -13734,7 +13890,8 @@ export interface RGB {
|
|
|
13734
13890
|
/**
|
|
13735
13891
|
* Represents a fully customizable color within Minecraft.
|
|
13736
13892
|
*/
|
|
13737
|
-
|
|
13893
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
13894
|
+
export interface RGBA extends RGB {
|
|
13738
13895
|
/**
|
|
13739
13896
|
* @remarks
|
|
13740
13897
|
* Determines a color's alpha (opacity) component. Valid values
|
|
@@ -13742,27 +13899,6 @@ export interface RGBA {
|
|
|
13742
13899
|
*
|
|
13743
13900
|
*/
|
|
13744
13901
|
alpha: number;
|
|
13745
|
-
/**
|
|
13746
|
-
* @remarks
|
|
13747
|
-
* Determines a color's blue component. Valid values are
|
|
13748
|
-
* between 0 and 1.0.
|
|
13749
|
-
*
|
|
13750
|
-
*/
|
|
13751
|
-
blue: number;
|
|
13752
|
-
/**
|
|
13753
|
-
* @remarks
|
|
13754
|
-
* Determines a color's green component. Valid values are
|
|
13755
|
-
* between 0 and 1.0.
|
|
13756
|
-
*
|
|
13757
|
-
*/
|
|
13758
|
-
green: number;
|
|
13759
|
-
/**
|
|
13760
|
-
* @remarks
|
|
13761
|
-
* Determines a color's red component. Valid values are between
|
|
13762
|
-
* 0 and 1.0.
|
|
13763
|
-
*
|
|
13764
|
-
*/
|
|
13765
|
-
red: number;
|
|
13766
13902
|
}
|
|
13767
13903
|
|
|
13768
13904
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "1.9.0-beta.1.20.60-preview.
|
|
3
|
+
"version": "1.9.0-beta.1.20.60-preview.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/common": "^1.1.0-rc.1.20.60-preview.
|
|
16
|
+
"@minecraft/common": "^1.1.0-rc.1.20.60-preview.21"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|