@minecraft/server 1.12.0-beta.1.21.0-preview.26 → 1.12.0-beta.1.21.0-stable
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 +1 -143
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* ```json
|
|
16
16
|
* {
|
|
17
17
|
* "module_name": "@minecraft/server",
|
|
18
|
-
* "version": "1.
|
|
18
|
+
* "version": "1.11.0"
|
|
19
19
|
* }
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
@@ -383,9 +383,6 @@ export enum EasingType {
|
|
|
383
383
|
Spring = 'Spring',
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
/**
|
|
387
|
-
* @beta
|
|
388
|
-
*/
|
|
389
386
|
export enum EnchantmentSlot {
|
|
390
387
|
ArmorFeet = 'ArmorFeet',
|
|
391
388
|
ArmorHead = 'ArmorHead',
|
|
@@ -879,12 +876,8 @@ export enum GameMode {
|
|
|
879
876
|
survival = 'survival',
|
|
880
877
|
}
|
|
881
878
|
|
|
882
|
-
/**
|
|
883
|
-
* @beta
|
|
884
|
-
*/
|
|
885
879
|
export enum GameRule {
|
|
886
880
|
/**
|
|
887
|
-
* @beta
|
|
888
881
|
* @remarks
|
|
889
882
|
* Whether command blocks should notify admins when they
|
|
890
883
|
* perform commands.
|
|
@@ -892,35 +885,30 @@ export enum GameRule {
|
|
|
892
885
|
*/
|
|
893
886
|
CommandBlockOutput = 'commandBlockOutput',
|
|
894
887
|
/**
|
|
895
|
-
* @beta
|
|
896
888
|
* @remarks
|
|
897
889
|
* Controls whether command blocks can execute commands.
|
|
898
890
|
*
|
|
899
891
|
*/
|
|
900
892
|
CommandBlocksEnabled = 'commandBlocksEnabled',
|
|
901
893
|
/**
|
|
902
|
-
* @beta
|
|
903
894
|
* @remarks
|
|
904
895
|
* Controls whether the day and night cycles progress.
|
|
905
896
|
*
|
|
906
897
|
*/
|
|
907
898
|
DoDayLightCycle = 'doDayLightCycle',
|
|
908
899
|
/**
|
|
909
|
-
* @beta
|
|
910
900
|
* @remarks
|
|
911
901
|
* Controls whether non-mob entities do drops. ie. Item Frame
|
|
912
902
|
*
|
|
913
903
|
*/
|
|
914
904
|
DoEntityDrops = 'doEntityDrops',
|
|
915
905
|
/**
|
|
916
|
-
* @beta
|
|
917
906
|
* @remarks
|
|
918
907
|
* Controls whether fire spreads.
|
|
919
908
|
*
|
|
920
909
|
*/
|
|
921
910
|
DoFireTick = 'doFireTick',
|
|
922
911
|
/**
|
|
923
|
-
* @beta
|
|
924
912
|
* @remarks
|
|
925
913
|
* Controls whether players immediately respawn or are shown
|
|
926
914
|
* the death screen.
|
|
@@ -928,7 +916,6 @@ export enum GameRule {
|
|
|
928
916
|
*/
|
|
929
917
|
DoImmediateRespawn = 'doImmediateRespawn',
|
|
930
918
|
/**
|
|
931
|
-
* @beta
|
|
932
919
|
* @remarks
|
|
933
920
|
* Controls whether players deal with the effects of not
|
|
934
921
|
* sleeping (such as Phantom spawning).
|
|
@@ -936,7 +923,6 @@ export enum GameRule {
|
|
|
936
923
|
*/
|
|
937
924
|
DoInsomnia = 'doInsomnia',
|
|
938
925
|
/**
|
|
939
|
-
* @beta
|
|
940
926
|
* @remarks
|
|
941
927
|
* Determines whether players should be able to craft only
|
|
942
928
|
* those recipes that they've unlocked first - when
|
|
@@ -945,63 +931,54 @@ export enum GameRule {
|
|
|
945
931
|
*/
|
|
946
932
|
DoLimitedCrafting = 'doLimitedCrafting',
|
|
947
933
|
/**
|
|
948
|
-
* @beta
|
|
949
934
|
* @remarks
|
|
950
935
|
* Controls whether mobs drop loot.
|
|
951
936
|
*
|
|
952
937
|
*/
|
|
953
938
|
DoMobLoot = 'doMobLoot',
|
|
954
939
|
/**
|
|
955
|
-
* @beta
|
|
956
940
|
* @remarks
|
|
957
941
|
* Controls whether mobs spawn naturally in the world.
|
|
958
942
|
*
|
|
959
943
|
*/
|
|
960
944
|
DoMobSpawning = 'doMobSpawning',
|
|
961
945
|
/**
|
|
962
|
-
* @beta
|
|
963
946
|
* @remarks
|
|
964
947
|
* Controls whether blocks drop items when destroyed.
|
|
965
948
|
*
|
|
966
949
|
*/
|
|
967
950
|
DoTileDrops = 'doTileDrops',
|
|
968
951
|
/**
|
|
969
|
-
* @beta
|
|
970
952
|
* @remarks
|
|
971
953
|
* Controls whether the weather can change naturally.
|
|
972
954
|
*
|
|
973
955
|
*/
|
|
974
956
|
DoWeatherCycle = 'doWeatherCycle',
|
|
975
957
|
/**
|
|
976
|
-
* @beta
|
|
977
958
|
* @remarks
|
|
978
959
|
* Controls whether entities take damage from drowning.
|
|
979
960
|
*
|
|
980
961
|
*/
|
|
981
962
|
DrowningDamage = 'drowningDamage',
|
|
982
963
|
/**
|
|
983
|
-
* @beta
|
|
984
964
|
* @remarks
|
|
985
965
|
* Controls whether entities take damage from falling.
|
|
986
966
|
*
|
|
987
967
|
*/
|
|
988
968
|
FallDamage = 'fallDamage',
|
|
989
969
|
/**
|
|
990
|
-
* @beta
|
|
991
970
|
* @remarks
|
|
992
971
|
* Controls whether entities take damage from fire.
|
|
993
972
|
*
|
|
994
973
|
*/
|
|
995
974
|
FireDamage = 'fireDamage',
|
|
996
975
|
/**
|
|
997
|
-
* @beta
|
|
998
976
|
* @remarks
|
|
999
977
|
* Controls whether there is damage from freezing.
|
|
1000
978
|
*
|
|
1001
979
|
*/
|
|
1002
980
|
FreezeDamage = 'freezeDamage',
|
|
1003
981
|
/**
|
|
1004
|
-
* @beta
|
|
1005
982
|
* @remarks
|
|
1006
983
|
* The maximum number of commands that can be executed
|
|
1007
984
|
* simultaneously by the /function command.
|
|
@@ -1009,7 +986,6 @@ export enum GameRule {
|
|
|
1009
986
|
*/
|
|
1010
987
|
FunctionCommandLimit = 'functionCommandLimit',
|
|
1011
988
|
/**
|
|
1012
|
-
* @beta
|
|
1013
989
|
* @remarks
|
|
1014
990
|
* Controls whether players keep their inventories when they
|
|
1015
991
|
* die.
|
|
@@ -1017,7 +993,6 @@ export enum GameRule {
|
|
|
1017
993
|
*/
|
|
1018
994
|
KeepInventory = 'keepInventory',
|
|
1019
995
|
/**
|
|
1020
|
-
* @beta
|
|
1021
996
|
* @remarks
|
|
1022
997
|
* The maximum number of chained commands that can execute per
|
|
1023
998
|
* tick.
|
|
@@ -1025,7 +1000,6 @@ export enum GameRule {
|
|
|
1025
1000
|
*/
|
|
1026
1001
|
MaxCommandChainLength = 'maxCommandChainLength',
|
|
1027
1002
|
/**
|
|
1028
|
-
* @beta
|
|
1029
1003
|
* @remarks
|
|
1030
1004
|
* Controls whether mob griefing can happen in the world.
|
|
1031
1005
|
* Example: A Creeper explosion destroying blocks.
|
|
@@ -1033,14 +1007,12 @@ export enum GameRule {
|
|
|
1033
1007
|
*/
|
|
1034
1008
|
MobGriefing = 'mobGriefing',
|
|
1035
1009
|
/**
|
|
1036
|
-
* @beta
|
|
1037
1010
|
* @remarks
|
|
1038
1011
|
* Controls whether players can regenerate health.
|
|
1039
1012
|
*
|
|
1040
1013
|
*/
|
|
1041
1014
|
NaturalRegeneration = 'naturalRegeneration',
|
|
1042
1015
|
/**
|
|
1043
|
-
* @beta
|
|
1044
1016
|
* @remarks
|
|
1045
1017
|
* The percentage of players required to be sleeping in order
|
|
1046
1018
|
* to advance to the next day.
|
|
@@ -1048,7 +1020,6 @@ export enum GameRule {
|
|
|
1048
1020
|
*/
|
|
1049
1021
|
PlayersSleepingPercentage = 'playersSleepingPercentage',
|
|
1050
1022
|
/**
|
|
1051
|
-
* @beta
|
|
1052
1023
|
* @remarks
|
|
1053
1024
|
* Controls whether projectiles (entities with a projectile
|
|
1054
1025
|
* component, like Arrows, thrown Tridents or Fireworks) can
|
|
@@ -1059,14 +1030,12 @@ export enum GameRule {
|
|
|
1059
1030
|
*/
|
|
1060
1031
|
ProjectilesCanBreakBlocks = 'projectilesCanBreakBlocks',
|
|
1061
1032
|
/**
|
|
1062
|
-
* @beta
|
|
1063
1033
|
* @remarks
|
|
1064
1034
|
* Controls whether players can damage each other.
|
|
1065
1035
|
*
|
|
1066
1036
|
*/
|
|
1067
1037
|
Pvp = 'pvp',
|
|
1068
1038
|
/**
|
|
1069
|
-
* @beta
|
|
1070
1039
|
* @remarks
|
|
1071
1040
|
* Controls how frequently random ticks occur. A value of 0 or
|
|
1072
1041
|
* less will disable random ticks. The default value is 1.
|
|
@@ -1074,7 +1043,6 @@ export enum GameRule {
|
|
|
1074
1043
|
*/
|
|
1075
1044
|
RandomTickSpeed = 'randomTickSpeed',
|
|
1076
1045
|
/**
|
|
1077
|
-
* @beta
|
|
1078
1046
|
* @remarks
|
|
1079
1047
|
* Controls whether built-in (vanilla) recipes automatically
|
|
1080
1048
|
* unlock as the player progresses through the game (one
|
|
@@ -1084,7 +1052,6 @@ export enum GameRule {
|
|
|
1084
1052
|
*/
|
|
1085
1053
|
RecipesUnlock = 'recipesUnlock',
|
|
1086
1054
|
/**
|
|
1087
|
-
* @beta
|
|
1088
1055
|
* @remarks
|
|
1089
1056
|
* Controls whether respawn blocks (e.g. Bed, Respawn Anchor)
|
|
1090
1057
|
* explode in other dimensions.
|
|
@@ -1092,7 +1059,6 @@ export enum GameRule {
|
|
|
1092
1059
|
*/
|
|
1093
1060
|
RespawnBlocksExplode = 'respawnBlocksExplode',
|
|
1094
1061
|
/**
|
|
1095
|
-
* @beta
|
|
1096
1062
|
* @remarks
|
|
1097
1063
|
* Controls whether command output is displayed to players.
|
|
1098
1064
|
* Also controls whether Command Block output is stored by
|
|
@@ -1101,14 +1067,12 @@ export enum GameRule {
|
|
|
1101
1067
|
*/
|
|
1102
1068
|
SendCommandFeedback = 'sendCommandFeedback',
|
|
1103
1069
|
/**
|
|
1104
|
-
* @beta
|
|
1105
1070
|
* @remarks
|
|
1106
1071
|
* Controls whether Border Block effects are shown.
|
|
1107
1072
|
*
|
|
1108
1073
|
*/
|
|
1109
1074
|
ShowBorderEffect = 'showBorderEffect',
|
|
1110
1075
|
/**
|
|
1111
|
-
* @beta
|
|
1112
1076
|
* @remarks
|
|
1113
1077
|
* Controls whether player coordinates are displayed.
|
|
1114
1078
|
*
|
|
@@ -1116,14 +1080,12 @@ export enum GameRule {
|
|
|
1116
1080
|
ShowCoordinates = 'showCoordinates',
|
|
1117
1081
|
ShowDaysPlayed = 'showDaysPlayed',
|
|
1118
1082
|
/**
|
|
1119
|
-
* @beta
|
|
1120
1083
|
* @remarks
|
|
1121
1084
|
* Controls whether death messages are displayed in chat.
|
|
1122
1085
|
*
|
|
1123
1086
|
*/
|
|
1124
1087
|
ShowDeathMessages = 'showDeathMessages',
|
|
1125
1088
|
/**
|
|
1126
|
-
* @beta
|
|
1127
1089
|
* @remarks
|
|
1128
1090
|
* Controls whether standard player notifications for recipes
|
|
1129
1091
|
* will show. When set to false, 'player unlocked recipes' are
|
|
@@ -1132,7 +1094,6 @@ export enum GameRule {
|
|
|
1132
1094
|
*/
|
|
1133
1095
|
ShowRecipeMessages = 'showRecipeMessages',
|
|
1134
1096
|
/**
|
|
1135
|
-
* @beta
|
|
1136
1097
|
* @remarks
|
|
1137
1098
|
* Controls whether item tags are shown. E.g. 'Can Place On',
|
|
1138
1099
|
* 'Can Destroy', item lock icons, etc.
|
|
@@ -1140,7 +1101,6 @@ export enum GameRule {
|
|
|
1140
1101
|
*/
|
|
1141
1102
|
ShowTags = 'showTags',
|
|
1142
1103
|
/**
|
|
1143
|
-
* @beta
|
|
1144
1104
|
* @remarks
|
|
1145
1105
|
* The block radius from world spawn that a player is allowed
|
|
1146
1106
|
* to spawn in. Does not affect Adventure mode. The default
|
|
@@ -1149,7 +1109,6 @@ export enum GameRule {
|
|
|
1149
1109
|
*/
|
|
1150
1110
|
SpawnRadius = 'spawnRadius',
|
|
1151
1111
|
/**
|
|
1152
|
-
* @beta
|
|
1153
1112
|
* @remarks
|
|
1154
1113
|
* Affects whether TNT blocks can be lit.
|
|
1155
1114
|
*
|
|
@@ -1158,9 +1117,6 @@ export enum GameRule {
|
|
|
1158
1117
|
TntExplosionDropDecay = 'tntExplosionDropDecay',
|
|
1159
1118
|
}
|
|
1160
1119
|
|
|
1161
|
-
/**
|
|
1162
|
-
* @beta
|
|
1163
|
-
*/
|
|
1164
1120
|
export enum HudElement {
|
|
1165
1121
|
PaperDoll = 0,
|
|
1166
1122
|
Armor = 1,
|
|
@@ -1177,9 +1133,6 @@ export enum HudElement {
|
|
|
1177
1133
|
ItemText = 12,
|
|
1178
1134
|
}
|
|
1179
1135
|
|
|
1180
|
-
/**
|
|
1181
|
-
* @beta
|
|
1182
|
-
*/
|
|
1183
1136
|
export enum HudVisibility {
|
|
1184
1137
|
Hide = 0,
|
|
1185
1138
|
Reset = 1,
|
|
@@ -1345,9 +1298,6 @@ export enum ObjectiveSortOrder {
|
|
|
1345
1298
|
Descending = 1,
|
|
1346
1299
|
}
|
|
1347
1300
|
|
|
1348
|
-
/**
|
|
1349
|
-
* @beta
|
|
1350
|
-
*/
|
|
1351
1301
|
export enum PaletteColor {
|
|
1352
1302
|
White = 0,
|
|
1353
1303
|
Orange = 1,
|
|
@@ -1867,7 +1817,6 @@ export class Block {
|
|
|
1867
1817
|
*/
|
|
1868
1818
|
readonly permutation: BlockPermutation;
|
|
1869
1819
|
/**
|
|
1870
|
-
* @beta
|
|
1871
1820
|
* @remarks
|
|
1872
1821
|
* Gets the type of block.
|
|
1873
1822
|
*
|
|
@@ -1879,7 +1828,6 @@ export class Block {
|
|
|
1879
1828
|
*/
|
|
1880
1829
|
readonly 'type': BlockType;
|
|
1881
1830
|
/**
|
|
1882
|
-
* @beta
|
|
1883
1831
|
* @remarks
|
|
1884
1832
|
* Identifier of the type of block for this block.
|
|
1885
1833
|
*
|
|
@@ -2097,7 +2045,6 @@ export class Block {
|
|
|
2097
2045
|
*/
|
|
2098
2046
|
isValid(): boolean;
|
|
2099
2047
|
/**
|
|
2100
|
-
* @beta
|
|
2101
2048
|
* @remarks
|
|
2102
2049
|
* Tests whether this block matches a specific criteria.
|
|
2103
2050
|
*
|
|
@@ -2164,7 +2111,6 @@ export class Block {
|
|
|
2164
2111
|
*/
|
|
2165
2112
|
setPermutation(permutation: BlockPermutation): void;
|
|
2166
2113
|
/**
|
|
2167
|
-
* @beta
|
|
2168
2114
|
* @remarks
|
|
2169
2115
|
* Sets the type of block.
|
|
2170
2116
|
*
|
|
@@ -2673,7 +2619,6 @@ export class BlockLocationIterator implements Iterable<Vector3> {
|
|
|
2673
2619
|
export class BlockPermutation {
|
|
2674
2620
|
private constructor();
|
|
2675
2621
|
/**
|
|
2676
|
-
* @beta
|
|
2677
2622
|
* @remarks
|
|
2678
2623
|
* The {@link BlockType} that the permutation has.
|
|
2679
2624
|
*
|
|
@@ -3213,7 +3158,6 @@ export class BlockType {
|
|
|
3213
3158
|
*/
|
|
3214
3159
|
readonly canBeWaterlogged: boolean;
|
|
3215
3160
|
/**
|
|
3216
|
-
* @beta
|
|
3217
3161
|
* @remarks
|
|
3218
3162
|
* Block type name - for example, `minecraft:acacia_stairs`.
|
|
3219
3163
|
*
|
|
@@ -3222,7 +3166,6 @@ export class BlockType {
|
|
|
3222
3166
|
}
|
|
3223
3167
|
|
|
3224
3168
|
/**
|
|
3225
|
-
* @beta
|
|
3226
3169
|
* Contains a catalog of Minecraft Block Types that are
|
|
3227
3170
|
* available in this world.
|
|
3228
3171
|
*/
|
|
@@ -3343,7 +3286,6 @@ export class BlockVolume extends BlockVolumeBase {
|
|
|
3343
3286
|
}
|
|
3344
3287
|
|
|
3345
3288
|
/**
|
|
3346
|
-
* @beta
|
|
3347
3289
|
* Base type for BlockVolumes.
|
|
3348
3290
|
*/
|
|
3349
3291
|
export class BlockVolumeBase {
|
|
@@ -5081,7 +5023,6 @@ export class Dimension {
|
|
|
5081
5023
|
*/
|
|
5082
5024
|
getWeather(): WeatherType;
|
|
5083
5025
|
/**
|
|
5084
|
-
* @beta
|
|
5085
5026
|
* @remarks
|
|
5086
5027
|
* This function can't be called in read-only mode.
|
|
5087
5028
|
*
|
|
@@ -5540,7 +5481,6 @@ export class EffectTypes {
|
|
|
5540
5481
|
}
|
|
5541
5482
|
|
|
5542
5483
|
/**
|
|
5543
|
-
* @beta
|
|
5544
5484
|
* Contains information on a type of enchantment.
|
|
5545
5485
|
*/
|
|
5546
5486
|
export class EnchantmentType {
|
|
@@ -5563,7 +5503,6 @@ export class EnchantmentType {
|
|
|
5563
5503
|
}
|
|
5564
5504
|
|
|
5565
5505
|
/**
|
|
5566
|
-
* @beta
|
|
5567
5506
|
* Contains a catalog of Minecraft Enchantment Types that are
|
|
5568
5507
|
* available in this world.
|
|
5569
5508
|
*/
|
|
@@ -6553,7 +6492,6 @@ export class Entity {
|
|
|
6553
6492
|
}
|
|
6554
6493
|
|
|
6555
6494
|
/**
|
|
6556
|
-
* @beta
|
|
6557
6495
|
* When added, this component makes the entity spawn with a
|
|
6558
6496
|
* rider of the specified entityType.
|
|
6559
6497
|
*/
|
|
@@ -6847,9 +6785,6 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
|
|
|
6847
6785
|
static readonly componentId = 'minecraft:can_power_jump';
|
|
6848
6786
|
}
|
|
6849
6787
|
|
|
6850
|
-
/**
|
|
6851
|
-
* @beta
|
|
6852
|
-
*/
|
|
6853
6788
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6854
6789
|
export class EntityColor2Component extends EntityComponent {
|
|
6855
6790
|
private constructor();
|
|
@@ -6886,7 +6821,6 @@ export class EntityColorComponent extends EntityComponent {
|
|
|
6886
6821
|
export class EntityComponent extends Component {
|
|
6887
6822
|
private constructor();
|
|
6888
6823
|
/**
|
|
6889
|
-
* @beta
|
|
6890
6824
|
* @remarks
|
|
6891
6825
|
* The entity that owns this component. The entity will be
|
|
6892
6826
|
* undefined if it has been removed.
|
|
@@ -7917,7 +7851,6 @@ export class EntityMovementSwayComponent extends EntityBaseMovementComponent {
|
|
|
7917
7851
|
}
|
|
7918
7852
|
|
|
7919
7853
|
/**
|
|
7920
|
-
* @beta
|
|
7921
7854
|
* Allows this entity to generate paths that include vertical
|
|
7922
7855
|
* walls (for example, like Minecraft spiders do.)
|
|
7923
7856
|
*/
|
|
@@ -7928,7 +7861,6 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
|
|
|
7928
7861
|
}
|
|
7929
7862
|
|
|
7930
7863
|
/**
|
|
7931
|
-
* @beta
|
|
7932
7864
|
* Allows this entity to generate paths that include vertical
|
|
7933
7865
|
* walls (for example, like Minecraft spiders do.)
|
|
7934
7866
|
*/
|
|
@@ -8086,7 +8018,6 @@ export class EntityNavigationComponent extends EntityComponent {
|
|
|
8086
8018
|
}
|
|
8087
8019
|
|
|
8088
8020
|
/**
|
|
8089
|
-
* @beta
|
|
8090
8021
|
* Allows this entity to generate paths by flying around the
|
|
8091
8022
|
* air like the regular Ghast.
|
|
8092
8023
|
*/
|
|
@@ -8097,7 +8028,6 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
|
|
|
8097
8028
|
}
|
|
8098
8029
|
|
|
8099
8030
|
/**
|
|
8100
|
-
* @beta
|
|
8101
8031
|
* Allows this entity to generate paths in the air (for
|
|
8102
8032
|
* example, like Minecraft parrots do.)
|
|
8103
8033
|
*/
|
|
@@ -8108,7 +8038,6 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
|
|
|
8108
8038
|
}
|
|
8109
8039
|
|
|
8110
8040
|
/**
|
|
8111
|
-
* @beta
|
|
8112
8041
|
* Allows this entity to generate paths by walking, swimming,
|
|
8113
8042
|
* flying and/or climbing around and jumping up and down a
|
|
8114
8043
|
* block.
|
|
@@ -8120,7 +8049,6 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
|
|
|
8120
8049
|
}
|
|
8121
8050
|
|
|
8122
8051
|
/**
|
|
8123
|
-
* @beta
|
|
8124
8052
|
* Allows this entity to generate paths in the air (for
|
|
8125
8053
|
* example, like the Minecraft Bees do.) Keeps them from
|
|
8126
8054
|
* falling out of the skies and doing predictive movement.
|
|
@@ -8132,7 +8060,6 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
|
|
|
8132
8060
|
}
|
|
8133
8061
|
|
|
8134
8062
|
/**
|
|
8135
|
-
* @beta
|
|
8136
8063
|
* Allows this entity to generate paths by walking around and
|
|
8137
8064
|
* jumping up and down a block like regular mobs.
|
|
8138
8065
|
*/
|
|
@@ -8507,7 +8434,6 @@ export class EntityRemoveBeforeEventSignal {
|
|
|
8507
8434
|
}
|
|
8508
8435
|
|
|
8509
8436
|
/**
|
|
8510
|
-
* @beta
|
|
8511
8437
|
* When added, this component adds the capability that an
|
|
8512
8438
|
* entity can be ridden by another entity.
|
|
8513
8439
|
*/
|
|
@@ -8630,7 +8556,6 @@ export class EntityRideableComponent extends EntityComponent {
|
|
|
8630
8556
|
}
|
|
8631
8557
|
|
|
8632
8558
|
/**
|
|
8633
|
-
* @beta
|
|
8634
8559
|
* This component is added to any entity when it is riding
|
|
8635
8560
|
* another entity.
|
|
8636
8561
|
*/
|
|
@@ -8834,7 +8759,6 @@ export class EntityTameableComponent extends EntityComponent {
|
|
|
8834
8759
|
}
|
|
8835
8760
|
|
|
8836
8761
|
/**
|
|
8837
|
-
* @beta
|
|
8838
8762
|
* Contains options for taming a rideable entity based on the
|
|
8839
8763
|
* entity that mounts it.
|
|
8840
8764
|
*/
|
|
@@ -9191,7 +9115,6 @@ export class FluidContainer {
|
|
|
9191
9115
|
}
|
|
9192
9116
|
|
|
9193
9117
|
/**
|
|
9194
|
-
* @beta
|
|
9195
9118
|
* Contains information regarding a changed world.gameRules
|
|
9196
9119
|
* property.
|
|
9197
9120
|
*/
|
|
@@ -9214,7 +9137,6 @@ export class GameRuleChangeAfterEvent {
|
|
|
9214
9137
|
}
|
|
9215
9138
|
|
|
9216
9139
|
/**
|
|
9217
|
-
* @beta
|
|
9218
9140
|
* Manages callbacks that are connected to when a
|
|
9219
9141
|
* world.gameRules property has changed.
|
|
9220
9142
|
*/
|
|
@@ -9241,7 +9163,6 @@ export class GameRuleChangeAfterEventSignal {
|
|
|
9241
9163
|
}
|
|
9242
9164
|
|
|
9243
9165
|
/**
|
|
9244
|
-
* @beta
|
|
9245
9166
|
* Represents the game rules for a world experience.
|
|
9246
9167
|
*/
|
|
9247
9168
|
export class GameRules {
|
|
@@ -9966,7 +9887,6 @@ export class ItemDurabilityComponent extends ItemComponent {
|
|
|
9966
9887
|
}
|
|
9967
9888
|
|
|
9968
9889
|
/**
|
|
9969
|
-
* @beta
|
|
9970
9890
|
* When present on an item, this item can have enchantments
|
|
9971
9891
|
* applied to it.
|
|
9972
9892
|
* @example givePlayerIronFireSword.ts
|
|
@@ -10560,7 +10480,6 @@ export class ItemStack {
|
|
|
10560
10480
|
*/
|
|
10561
10481
|
isStackableWith(itemStack: ItemStack): boolean;
|
|
10562
10482
|
/**
|
|
10563
|
-
* @beta
|
|
10564
10483
|
* @remarks
|
|
10565
10484
|
* Version safe way of checking if an item matches.
|
|
10566
10485
|
*
|
|
@@ -11234,9 +11153,6 @@ export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
|
|
|
11234
11153
|
private constructor();
|
|
11235
11154
|
}
|
|
11236
11155
|
|
|
11237
|
-
/**
|
|
11238
|
-
* @beta
|
|
11239
|
-
*/
|
|
11240
11156
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11241
11157
|
export class ListBlockVolume extends BlockVolumeBase {
|
|
11242
11158
|
constructor(locations: Vector3[]);
|
|
@@ -11528,7 +11444,6 @@ export class Player extends Entity {
|
|
|
11528
11444
|
*/
|
|
11529
11445
|
readonly onScreenDisplay: ScreenDisplay;
|
|
11530
11446
|
/**
|
|
11531
|
-
* @beta
|
|
11532
11447
|
* @remarks
|
|
11533
11448
|
* This property can't be edited in read-only mode.
|
|
11534
11449
|
*
|
|
@@ -11593,12 +11508,10 @@ export class Player extends Entity {
|
|
|
11593
11508
|
*/
|
|
11594
11509
|
eatItem(itemStack: ItemStack): void;
|
|
11595
11510
|
/**
|
|
11596
|
-
* @beta
|
|
11597
11511
|
* @throws This function can throw errors.
|
|
11598
11512
|
*/
|
|
11599
11513
|
getGameMode(): GameMode;
|
|
11600
11514
|
/**
|
|
11601
|
-
* @beta
|
|
11602
11515
|
* @remarks
|
|
11603
11516
|
* Gets the current item cooldown time for a particular
|
|
11604
11517
|
* cooldown category.
|
|
@@ -11734,7 +11647,6 @@ export class Player extends Entity {
|
|
|
11734
11647
|
*/
|
|
11735
11648
|
sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
|
|
11736
11649
|
/**
|
|
11737
|
-
* @beta
|
|
11738
11650
|
* @remarks
|
|
11739
11651
|
* This function can't be called in read-only mode.
|
|
11740
11652
|
*
|
|
@@ -11815,7 +11727,6 @@ export class Player extends Entity {
|
|
|
11815
11727
|
*/
|
|
11816
11728
|
spawnParticle(effectName: string, location: Vector3, molangVariables?: MolangVariableMap): void;
|
|
11817
11729
|
/**
|
|
11818
|
-
* @beta
|
|
11819
11730
|
* @remarks
|
|
11820
11731
|
* Sets the item cooldown time for a particular cooldown
|
|
11821
11732
|
* category.
|
|
@@ -12029,9 +11940,6 @@ export class PlayerDimensionChangeAfterEventSignal {
|
|
|
12029
11940
|
unsubscribe(callback: (arg: PlayerDimensionChangeAfterEvent) => void): void;
|
|
12030
11941
|
}
|
|
12031
11942
|
|
|
12032
|
-
/**
|
|
12033
|
-
* @beta
|
|
12034
|
-
*/
|
|
12035
11943
|
export class PlayerGameModeChangeAfterEvent {
|
|
12036
11944
|
private constructor();
|
|
12037
11945
|
readonly fromGameMode: GameMode;
|
|
@@ -12039,9 +11947,6 @@ export class PlayerGameModeChangeAfterEvent {
|
|
|
12039
11947
|
readonly toGameMode: GameMode;
|
|
12040
11948
|
}
|
|
12041
11949
|
|
|
12042
|
-
/**
|
|
12043
|
-
* @beta
|
|
12044
|
-
*/
|
|
12045
11950
|
export class PlayerGameModeChangeAfterEventSignal {
|
|
12046
11951
|
private constructor();
|
|
12047
11952
|
/**
|
|
@@ -12058,9 +11963,6 @@ export class PlayerGameModeChangeAfterEventSignal {
|
|
|
12058
11963
|
unsubscribe(callback: (arg: PlayerGameModeChangeAfterEvent) => void): void;
|
|
12059
11964
|
}
|
|
12060
11965
|
|
|
12061
|
-
/**
|
|
12062
|
-
* @beta
|
|
12063
|
-
*/
|
|
12064
11966
|
export class PlayerGameModeChangeBeforeEvent {
|
|
12065
11967
|
private constructor();
|
|
12066
11968
|
cancel: boolean;
|
|
@@ -12069,9 +11971,6 @@ export class PlayerGameModeChangeBeforeEvent {
|
|
|
12069
11971
|
toGameMode: GameMode;
|
|
12070
11972
|
}
|
|
12071
11973
|
|
|
12072
|
-
/**
|
|
12073
|
-
* @beta
|
|
12074
|
-
*/
|
|
12075
11974
|
export class PlayerGameModeChangeBeforeEventSignal {
|
|
12076
11975
|
private constructor();
|
|
12077
11976
|
/**
|
|
@@ -13223,7 +13122,6 @@ export class ScoreboardScoreInfo {
|
|
|
13223
13122
|
export class ScreenDisplay {
|
|
13224
13123
|
private constructor();
|
|
13225
13124
|
/**
|
|
13226
|
-
* @beta
|
|
13227
13125
|
* @remarks
|
|
13228
13126
|
* This function can't be called in read-only mode.
|
|
13229
13127
|
*
|
|
@@ -13231,7 +13129,6 @@ export class ScreenDisplay {
|
|
|
13231
13129
|
*/
|
|
13232
13130
|
getHiddenHudElements(): HudElement[];
|
|
13233
13131
|
/**
|
|
13234
|
-
* @beta
|
|
13235
13132
|
* @remarks
|
|
13236
13133
|
* This function can't be called in read-only mode.
|
|
13237
13134
|
*
|
|
@@ -13239,7 +13136,6 @@ export class ScreenDisplay {
|
|
|
13239
13136
|
*/
|
|
13240
13137
|
hideAllExcept(hudElements?: HudElement[]): void;
|
|
13241
13138
|
/**
|
|
13242
|
-
* @beta
|
|
13243
13139
|
* @remarks
|
|
13244
13140
|
* This function can't be called in read-only mode.
|
|
13245
13141
|
*
|
|
@@ -13254,7 +13150,6 @@ export class ScreenDisplay {
|
|
|
13254
13150
|
*/
|
|
13255
13151
|
isValid(): boolean;
|
|
13256
13152
|
/**
|
|
13257
|
-
* @beta
|
|
13258
13153
|
* @remarks
|
|
13259
13154
|
* This function can't be called in read-only mode.
|
|
13260
13155
|
*
|
|
@@ -13274,7 +13169,6 @@ export class ScreenDisplay {
|
|
|
13274
13169
|
*/
|
|
13275
13170
|
setActionBar(text: (RawMessage | string)[] | RawMessage | string): void;
|
|
13276
13171
|
/**
|
|
13277
|
-
* @beta
|
|
13278
13172
|
* @remarks
|
|
13279
13173
|
* This function can't be called in read-only mode.
|
|
13280
13174
|
*
|
|
@@ -13427,7 +13321,6 @@ export class ScriptEventCommandMessageAfterEventSignal {
|
|
|
13427
13321
|
}
|
|
13428
13322
|
|
|
13429
13323
|
/**
|
|
13430
|
-
* @beta
|
|
13431
13324
|
* Describes a particular seating position on this rideable
|
|
13432
13325
|
* entity.
|
|
13433
13326
|
*/
|
|
@@ -13571,7 +13464,6 @@ export class Structure {
|
|
|
13571
13464
|
*/
|
|
13572
13465
|
isValid(): boolean;
|
|
13573
13466
|
/**
|
|
13574
|
-
* @beta
|
|
13575
13467
|
* @remarks
|
|
13576
13468
|
* Creates a copy of a Structure and saves it with a new name.
|
|
13577
13469
|
*
|
|
@@ -13597,7 +13489,6 @@ export class Structure {
|
|
|
13597
13489
|
*/
|
|
13598
13490
|
saveAs(identifier: string, saveMode?: StructureSaveMode): Structure;
|
|
13599
13491
|
/**
|
|
13600
|
-
* @beta
|
|
13601
13492
|
* @remarks
|
|
13602
13493
|
* Saves a modified Structure to the world file.
|
|
13603
13494
|
*
|
|
@@ -13610,7 +13501,6 @@ export class Structure {
|
|
|
13610
13501
|
*/
|
|
13611
13502
|
saveToWorld(): void;
|
|
13612
13503
|
/**
|
|
13613
|
-
* @beta
|
|
13614
13504
|
* @remarks
|
|
13615
13505
|
* Sets a BlockPermutation within a Structure.
|
|
13616
13506
|
*
|
|
@@ -13671,7 +13561,6 @@ export class StructureManager {
|
|
|
13671
13561
|
*/
|
|
13672
13562
|
createEmpty(identifier: string, size: Vector3, saveMode?: StructureSaveMode): Structure;
|
|
13673
13563
|
/**
|
|
13674
|
-
* @beta
|
|
13675
13564
|
* @remarks
|
|
13676
13565
|
* Creates a new Structure from blocks in the world. This is
|
|
13677
13566
|
* functionally equivalent to the /structure save command.
|
|
@@ -13737,7 +13626,6 @@ export class StructureManager {
|
|
|
13737
13626
|
*/
|
|
13738
13627
|
get(identifier: string): Structure | undefined;
|
|
13739
13628
|
/**
|
|
13740
|
-
* @beta
|
|
13741
13629
|
* @remarks
|
|
13742
13630
|
* This function can't be called in read-only mode.
|
|
13743
13631
|
*
|
|
@@ -14275,7 +14163,6 @@ export class WeatherChangeAfterEventSignal {
|
|
|
14275
14163
|
}
|
|
14276
14164
|
|
|
14277
14165
|
/**
|
|
14278
|
-
* @beta
|
|
14279
14166
|
* Contains information related to changes in weather in the
|
|
14280
14167
|
* environment.
|
|
14281
14168
|
*/
|
|
@@ -14309,7 +14196,6 @@ export class WeatherChangeBeforeEvent {
|
|
|
14309
14196
|
}
|
|
14310
14197
|
|
|
14311
14198
|
/**
|
|
14312
|
-
* @beta
|
|
14313
14199
|
* Manages callbacks that are connected to before weather
|
|
14314
14200
|
* changing.
|
|
14315
14201
|
*/
|
|
@@ -14356,7 +14242,6 @@ export class World {
|
|
|
14356
14242
|
*/
|
|
14357
14243
|
readonly beforeEvents: WorldBeforeEvents;
|
|
14358
14244
|
/**
|
|
14359
|
-
* @beta
|
|
14360
14245
|
* @remarks
|
|
14361
14246
|
* The game rules that apply to the world.
|
|
14362
14247
|
*
|
|
@@ -14958,7 +14843,6 @@ export class WorldAfterEvents {
|
|
|
14958
14843
|
*/
|
|
14959
14844
|
readonly explosion: ExplosionAfterEventSignal;
|
|
14960
14845
|
/**
|
|
14961
|
-
* @beta
|
|
14962
14846
|
* @remarks
|
|
14963
14847
|
* This event fires when a world.gameRules property has
|
|
14964
14848
|
* changed.
|
|
@@ -15054,9 +14938,6 @@ export class WorldAfterEvents {
|
|
|
15054
14938
|
*
|
|
15055
14939
|
*/
|
|
15056
14940
|
readonly playerDimensionChange: PlayerDimensionChangeAfterEventSignal;
|
|
15057
|
-
/**
|
|
15058
|
-
* @beta
|
|
15059
|
-
*/
|
|
15060
14941
|
readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
|
|
15061
14942
|
/**
|
|
15062
14943
|
* @beta
|
|
@@ -15218,9 +15099,6 @@ export class WorldBeforeEvents {
|
|
|
15218
15099
|
*
|
|
15219
15100
|
*/
|
|
15220
15101
|
readonly playerBreakBlock: PlayerBreakBlockBeforeEventSignal;
|
|
15221
|
-
/**
|
|
15222
|
-
* @beta
|
|
15223
|
-
*/
|
|
15224
15102
|
readonly playerGameModeChange: PlayerGameModeChangeBeforeEventSignal;
|
|
15225
15103
|
/**
|
|
15226
15104
|
* @beta
|
|
@@ -15249,9 +15127,6 @@ export class WorldBeforeEvents {
|
|
|
15249
15127
|
*
|
|
15250
15128
|
*/
|
|
15251
15129
|
readonly playerPlaceBlock: PlayerPlaceBlockBeforeEventSignal;
|
|
15252
|
-
/**
|
|
15253
|
-
* @beta
|
|
15254
|
-
*/
|
|
15255
15130
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
15256
15131
|
/**
|
|
15257
15132
|
* @beta
|
|
@@ -15770,7 +15645,6 @@ export interface DimensionLocation {
|
|
|
15770
15645
|
}
|
|
15771
15646
|
|
|
15772
15647
|
/**
|
|
15773
|
-
* @beta
|
|
15774
15648
|
* This interface represents a specific leveled enchantment
|
|
15775
15649
|
* that is applied to an item.
|
|
15776
15650
|
*/
|
|
@@ -16391,7 +16265,6 @@ export interface EntityQueryOptions extends EntityFilter {
|
|
|
16391
16265
|
*/
|
|
16392
16266
|
minDistance?: number;
|
|
16393
16267
|
/**
|
|
16394
|
-
* @beta
|
|
16395
16268
|
* @remarks
|
|
16396
16269
|
* In conjunction with location, specified a cuboid volume of
|
|
16397
16270
|
* entities to include.
|
|
@@ -17265,25 +17138,16 @@ export class CommandError extends Error {
|
|
|
17265
17138
|
private constructor();
|
|
17266
17139
|
}
|
|
17267
17140
|
|
|
17268
|
-
/**
|
|
17269
|
-
* @beta
|
|
17270
|
-
*/
|
|
17271
17141
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17272
17142
|
export class EnchantmentLevelOutOfBoundsError extends Error {
|
|
17273
17143
|
private constructor();
|
|
17274
17144
|
}
|
|
17275
17145
|
|
|
17276
|
-
/**
|
|
17277
|
-
* @beta
|
|
17278
|
-
*/
|
|
17279
17146
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17280
17147
|
export class EnchantmentTypeNotCompatibleError extends Error {
|
|
17281
17148
|
private constructor();
|
|
17282
17149
|
}
|
|
17283
17150
|
|
|
17284
|
-
/**
|
|
17285
|
-
* @beta
|
|
17286
|
-
*/
|
|
17287
17151
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
17288
17152
|
export class EnchantmentTypeUnknownIdError extends Error {
|
|
17289
17153
|
private constructor();
|
|
@@ -17381,13 +17245,7 @@ export class UnloadedChunksError extends Error {
|
|
|
17381
17245
|
private constructor();
|
|
17382
17246
|
}
|
|
17383
17247
|
|
|
17384
|
-
/**
|
|
17385
|
-
* @beta
|
|
17386
|
-
*/
|
|
17387
17248
|
export const HudElementsCount = 13;
|
|
17388
|
-
/**
|
|
17389
|
-
* @beta
|
|
17390
|
-
*/
|
|
17391
17249
|
export const HudVisibilityCount = 2;
|
|
17392
17250
|
/**
|
|
17393
17251
|
* @remarks
|