@minecraft/server 1.1.0-beta.1.19.70-preview.21 → 1.1.0-beta.1.19.70-preview.23
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 +85 -703
- 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.1.0-internal.1.19.70-preview.
|
|
19
|
+
* "version": "1.1.0-internal.1.19.70-preview.23"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -181,6 +181,11 @@ export enum GameMode {
|
|
|
181
181
|
*/
|
|
182
182
|
survival = 'survival',
|
|
183
183
|
}
|
|
184
|
+
export enum ItemLockMode {
|
|
185
|
+
inventory = 'inventory',
|
|
186
|
+
none = 'none',
|
|
187
|
+
slot = 'slot',
|
|
188
|
+
}
|
|
184
189
|
export enum MessageSourceType {
|
|
185
190
|
clientScript = 'clientScript',
|
|
186
191
|
commandBlock = 'commandBlock',
|
|
@@ -1155,16 +1160,15 @@ export class BlockPermutation {
|
|
|
1155
1160
|
* Returns the list of all of the properties that the
|
|
1156
1161
|
* permutation has.
|
|
1157
1162
|
*/
|
|
1158
|
-
getAllProperties():
|
|
1163
|
+
getAllProperties(): Record<string, boolean | number | string>;
|
|
1159
1164
|
/**
|
|
1160
1165
|
* @remarks
|
|
1161
1166
|
* Gets a property for the permutation.
|
|
1162
1167
|
* @param propertyName
|
|
1163
1168
|
* @returns
|
|
1164
1169
|
* Returns the property if the permutation has it, else `null`.
|
|
1165
|
-
* @throws This function can throw errors.
|
|
1166
1170
|
*/
|
|
1167
|
-
getProperty(propertyName: string):
|
|
1171
|
+
getProperty(propertyName: string): boolean | number | string | undefined;
|
|
1168
1172
|
/**
|
|
1169
1173
|
* @remarks
|
|
1170
1174
|
* Creates a copy of the permutation.
|
|
@@ -1191,6 +1195,9 @@ export class BlockPermutation {
|
|
|
1191
1195
|
* ```
|
|
1192
1196
|
*/
|
|
1193
1197
|
hasTag(tag: string): boolean;
|
|
1198
|
+
matches(blockName: string, properties?: Record<string, boolean | number | string>): boolean;
|
|
1199
|
+
withProperty(name: string, value: boolean | number | string): BlockPermutation;
|
|
1200
|
+
static resolve(blockName: string, properties?: Record<string, boolean | number | string>): BlockPermutation;
|
|
1194
1201
|
}
|
|
1195
1202
|
/**
|
|
1196
1203
|
* @beta
|
|
@@ -1319,603 +1326,13 @@ export class BlockPotionContainerComponent extends BlockComponent {
|
|
|
1319
1326
|
// tslint:disable-next-line:no-unnecessary-class
|
|
1320
1327
|
export class BlockProperties {
|
|
1321
1328
|
protected constructor();
|
|
1322
|
-
static
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
* Boolean property that determines if saplings should grow.
|
|
1330
|
-
*/
|
|
1331
|
-
static readonly ageBit = 'age_bit';
|
|
1332
|
-
/**
|
|
1333
|
-
* Boolean property that determines if an explosion propagates
|
|
1334
|
-
* underwater.
|
|
1335
|
-
*/
|
|
1336
|
-
static readonly allowUnderwaterBit = 'allow_underwater_bit';
|
|
1337
|
-
/**
|
|
1338
|
-
* Boolean property that determines if a tripwire is attached
|
|
1339
|
-
* to another tripwire.
|
|
1340
|
-
*/
|
|
1341
|
-
static readonly attachedBit = 'attached_bit';
|
|
1342
|
-
/**
|
|
1343
|
-
* String property that represents the type of attachment used
|
|
1344
|
-
* by a bell or grindstone block. Valid values are 'standing',
|
|
1345
|
-
* 'hanging', 'side' and 'multiple'.
|
|
1346
|
-
*/
|
|
1347
|
-
static readonly attachment = 'attachment';
|
|
1348
|
-
/**
|
|
1349
|
-
* String property that determines the thickness of a bamboo
|
|
1350
|
-
* stalk. Valid values are 'thin' and 'thick'.
|
|
1351
|
-
*/
|
|
1352
|
-
static readonly bambooLeafSize = 'bamboo_leaf_size';
|
|
1353
|
-
/**
|
|
1354
|
-
* String property that determines the size of bamboo leaves.
|
|
1355
|
-
* Valid values are 'no_leaves', 'small_leaves', and
|
|
1356
|
-
* 'large_leaves'.
|
|
1357
|
-
*/
|
|
1358
|
-
static readonly bambooStalkThickness = 'bamboo_stalk_thickness';
|
|
1359
|
-
static readonly bigDripleafHead = 'big_dripleaf_head';
|
|
1360
|
-
/**
|
|
1361
|
-
* String property that represents the tilt state of big
|
|
1362
|
-
* dripleaf block. Valid values are 'none', 'unstable',
|
|
1363
|
-
* 'partial_tilt' and 'full_tilt'.
|
|
1364
|
-
*/
|
|
1365
|
-
static readonly bigDripleafTilt = 'big_dripleaf_tilt';
|
|
1366
|
-
/**
|
|
1367
|
-
* Integer property that tracks how many bites of cake have
|
|
1368
|
-
* been taken. Valid values are between 0 and 6 inclusive.
|
|
1369
|
-
*/
|
|
1370
|
-
static readonly biteCounter = 'bite_counter';
|
|
1371
|
-
static readonly blockLightLevel = 'block_light_level';
|
|
1372
|
-
static readonly bloom = 'bloom';
|
|
1373
|
-
static readonly booksStored = 'books_stored';
|
|
1374
|
-
/**
|
|
1375
|
-
* Boolean property that determines if a bottle is shown in the
|
|
1376
|
-
* first slot of the brewing stand.
|
|
1377
|
-
*/
|
|
1378
|
-
static readonly brewingStandSlotABit = 'brewing_stand_slot_a_bit';
|
|
1379
|
-
/**
|
|
1380
|
-
* Boolean property that determines if a bottle is shown in the
|
|
1381
|
-
* second slot of the brewing stand.
|
|
1382
|
-
*/
|
|
1383
|
-
static readonly brewingStandSlotBBit = 'brewing_stand_slot_b_bit';
|
|
1384
|
-
/**
|
|
1385
|
-
* Boolean property that determines if a bottle is shown in the
|
|
1386
|
-
* third slot of the brewing stand.
|
|
1387
|
-
*/
|
|
1388
|
-
static readonly brewingStandSlotCBit = 'brewing_stand_slot_c_bit';
|
|
1389
|
-
/**
|
|
1390
|
-
* Boolean property that determines if a button is in a pressed
|
|
1391
|
-
* state or not.
|
|
1392
|
-
*/
|
|
1393
|
-
static readonly buttonPressedBit = 'button_pressed_bit';
|
|
1394
|
-
/**
|
|
1395
|
-
* Integer property that describes how many extra candles are
|
|
1396
|
-
* in the same block space. Valid values are between 0 and 3
|
|
1397
|
-
* inclusive.
|
|
1398
|
-
*/
|
|
1399
|
-
static readonly candles = 'candles';
|
|
1400
|
-
static readonly canSummon = 'can_summon';
|
|
1401
|
-
/**
|
|
1402
|
-
* String property that represents the type of liquid in a
|
|
1403
|
-
* cauldron. Valid values are 'water', 'powder_snow', and
|
|
1404
|
-
* 'lava'.
|
|
1405
|
-
*/
|
|
1406
|
-
static readonly cauldronLiquid = 'cauldron_liquid';
|
|
1407
|
-
/**
|
|
1408
|
-
* String property that represents the type of work benches
|
|
1409
|
-
* that are within Minecraft Education experiences. Valid
|
|
1410
|
-
* values are 'compound_creator', 'material_reducer',
|
|
1411
|
-
* 'element_constructor' and 'lab_table'.
|
|
1412
|
-
*/
|
|
1413
|
-
static readonly chemistryTableType = 'chemistry_table_type';
|
|
1414
|
-
/**
|
|
1415
|
-
* String property determines the pattern of quartz and purpur
|
|
1416
|
-
* blocks. Valid values are 'default', 'chiseled', 'lines',
|
|
1417
|
-
* 'smooth'.
|
|
1418
|
-
*/
|
|
1419
|
-
static readonly chiselType = 'chisel_type';
|
|
1420
|
-
/**
|
|
1421
|
-
* Integer property that describes how many sea pickles are in
|
|
1422
|
-
* a cluster. Valid values are between 0 and 3 inclusive.
|
|
1423
|
-
*/
|
|
1424
|
-
static readonly clusterCount = 'cluster_count';
|
|
1425
|
-
/**
|
|
1426
|
-
* String property that represents the color of a block, like
|
|
1427
|
-
* wool. Valid values are 'white', 'orange', 'magenta',
|
|
1428
|
-
* 'light_blue', 'yellow', 'lime', 'pink', 'gray', 'silver',
|
|
1429
|
-
* 'cyan', 'purple', 'blue', 'brown', 'green', 'red' and
|
|
1430
|
-
* 'black'.
|
|
1431
|
-
*/
|
|
1432
|
-
static readonly color = 'color';
|
|
1433
|
-
/**
|
|
1434
|
-
* Boolean property that determines if a torch has a particular
|
|
1435
|
-
* color.
|
|
1436
|
-
*/
|
|
1437
|
-
static readonly colorBit = 'color_bit';
|
|
1438
|
-
static readonly composterFillLevel = 'composter_fill_level';
|
|
1439
|
-
/**
|
|
1440
|
-
* Boolean property that determines if a command block is
|
|
1441
|
-
* conditional or not.
|
|
1442
|
-
*/
|
|
1443
|
-
static readonly conditionalBit = 'conditional_bit';
|
|
1444
|
-
/**
|
|
1445
|
-
* String property that represents the color of a coral block.
|
|
1446
|
-
* Valid values are 'blue', 'pink', 'purple', 'red', 'yellow',
|
|
1447
|
-
* 'blue dead', 'pink dead', 'red dead', and 'yellow dead'.
|
|
1448
|
-
*/
|
|
1449
|
-
static readonly coralColor = 'coral_color';
|
|
1450
|
-
/**
|
|
1451
|
-
* Integer property that describes the rotation of coral fans.
|
|
1452
|
-
* Valid values are between 0 and 3 inclusive.
|
|
1453
|
-
*/
|
|
1454
|
-
static readonly coralDirection = 'coral_direction';
|
|
1455
|
-
static readonly coralFanDirection = 'coral_fan_direction';
|
|
1456
|
-
/**
|
|
1457
|
-
* Boolean property that represents the type of hanging for
|
|
1458
|
-
* coral fan.
|
|
1459
|
-
*/
|
|
1460
|
-
static readonly coralHangTypeBit = 'coral_hang_type_bit';
|
|
1461
|
-
/**
|
|
1462
|
-
* Boolean property that describes if a top snow block is
|
|
1463
|
-
* covering another block.
|
|
1464
|
-
*/
|
|
1465
|
-
static readonly coveredBit = 'covered_bit';
|
|
1466
|
-
/**
|
|
1467
|
-
* String property that determines the cracked state of turtle
|
|
1468
|
-
* eggs. Valid values are 'no_cracks', 'cracked', and
|
|
1469
|
-
* 'max_cracked'.
|
|
1470
|
-
*/
|
|
1471
|
-
static readonly crackedState = 'cracked_state';
|
|
1472
|
-
/**
|
|
1473
|
-
* String property that determines the damage state of an
|
|
1474
|
-
* anvil. Valid values are 'undamaged', 'slightly_damaged',
|
|
1475
|
-
* 'very_damaged', and 'broken'
|
|
1476
|
-
*/
|
|
1477
|
-
static readonly damage = 'damage';
|
|
1478
|
-
/**
|
|
1479
|
-
* Boolean property that determines if coral, coral fans, or
|
|
1480
|
-
* sea pickles are dead.
|
|
1481
|
-
*/
|
|
1482
|
-
static readonly deadBit = 'dead_bit';
|
|
1483
|
-
static readonly deprecated = 'deprecated';
|
|
1484
|
-
/**
|
|
1485
|
-
* Integer property determines the north, south, east, or west
|
|
1486
|
-
* direction of a block. Valid values include are south = 0,
|
|
1487
|
-
* west = 1, north = 2, east = 3.
|
|
1488
|
-
*/
|
|
1489
|
-
static readonly direction = 'direction';
|
|
1490
|
-
/**
|
|
1491
|
-
* String property that determines the dirt type of a block.
|
|
1492
|
-
* Valid values are 'normal' and 'coarse'.
|
|
1493
|
-
*/
|
|
1494
|
-
static readonly dirtType = 'dirt_type';
|
|
1495
|
-
/**
|
|
1496
|
-
* Boolean property that determines if a tripwire is disarmed
|
|
1497
|
-
* or not.
|
|
1498
|
-
*/
|
|
1499
|
-
static readonly disarmedBit = 'disarmed_bit';
|
|
1500
|
-
/**
|
|
1501
|
-
* Boolean property that determines if a door's hinge is
|
|
1502
|
-
* mirrored or not.
|
|
1503
|
-
*/
|
|
1504
|
-
static readonly doorHingeBit = 'door_hinge_bit';
|
|
1505
|
-
/**
|
|
1506
|
-
* String property that represents the type of a double plant
|
|
1507
|
-
* block. Valid values are 'sunflower', 'syringa', 'grass',
|
|
1508
|
-
* 'fern', 'rose', and 'paeonia'.
|
|
1509
|
-
*/
|
|
1510
|
-
static readonly doublePlantType = 'double_plant_type';
|
|
1511
|
-
/**
|
|
1512
|
-
* Boolean property that describes if bubble columns drag
|
|
1513
|
-
* entities down or push them up.
|
|
1514
|
-
*/
|
|
1515
|
-
static readonly dragDown = 'drag_down';
|
|
1516
|
-
/**
|
|
1517
|
-
* String property that represents the type of a pointed
|
|
1518
|
-
* dripstone block. Valid values are 'tip', 'frustum', 'base',
|
|
1519
|
-
* 'middle' and 'merge'.
|
|
1520
|
-
*/
|
|
1521
|
-
static readonly dripstoneThickness = 'dripstone_thickness';
|
|
1522
|
-
/**
|
|
1523
|
-
* Boolean property that determines if an end portal block has
|
|
1524
|
-
* an Eye of Ender in it.
|
|
1525
|
-
*/
|
|
1526
|
-
static readonly endPortalEyeBit = 'end_portal_eye_bit';
|
|
1527
|
-
/**
|
|
1528
|
-
* Boolean property that determines if a TNT block should start
|
|
1529
|
-
* its explode sequence.
|
|
1530
|
-
*/
|
|
1531
|
-
static readonly explodeBit = 'explode_bit';
|
|
1532
|
-
static readonly extinguished = 'extinguished';
|
|
1533
|
-
/**
|
|
1534
|
-
* Integer property that determines the facing direction of
|
|
1535
|
-
* some types of blocks. Valid values include down = 0, up = 1,
|
|
1536
|
-
* north = 2, south = 3, west = 4, east = 5.
|
|
1537
|
-
*/
|
|
1538
|
-
static readonly facingDirection = 'facing_direction';
|
|
1539
|
-
/**
|
|
1540
|
-
* Integer property that determines the fill level of a
|
|
1541
|
-
* cauldron block. Valid values are between 0 and 6 inclusive.
|
|
1542
|
-
*/
|
|
1543
|
-
static readonly fillLevel = 'fill_level';
|
|
1544
|
-
/**
|
|
1545
|
-
* String property that represents the type of flow. Valid
|
|
1546
|
-
* values are 'poppy', 'orchid', 'allium', 'houstonia',
|
|
1547
|
-
* 'tulip_red', 'tulip_orange', 'tulip_white', 'tulip_pink',
|
|
1548
|
-
* 'oxeye', 'cornflower' and 'lily_of_the_valley'.
|
|
1549
|
-
*/
|
|
1550
|
-
static readonly flowerType = 'flower_type';
|
|
1551
|
-
/**
|
|
1552
|
-
* Integer property that represents the rotation of signs and
|
|
1553
|
-
* standing banners. Valid values are between 0 and 15
|
|
1554
|
-
* inclusive.
|
|
1555
|
-
*/
|
|
1556
|
-
static readonly groundSignDirection = 'ground_sign_direction';
|
|
1557
|
-
static readonly growingPlantAge = 'growing_plant_age';
|
|
1558
|
-
/**
|
|
1559
|
-
* Integer property that determines the growth level of crops.
|
|
1560
|
-
* Valid values are between 0 and 7 inclusive.
|
|
1561
|
-
*/
|
|
1562
|
-
static readonly growth = 'growth';
|
|
1563
|
-
/**
|
|
1564
|
-
* Boolean property that represents if a lantern block is
|
|
1565
|
-
* hanging or not.
|
|
1566
|
-
*/
|
|
1567
|
-
static readonly hanging = 'hanging';
|
|
1568
|
-
/**
|
|
1569
|
-
* Boolean property that determines if a block is the pillow
|
|
1570
|
-
* side of a bed.
|
|
1571
|
-
*/
|
|
1572
|
-
static readonly headPieceBit = 'head_piece_bit';
|
|
1573
|
-
/**
|
|
1574
|
-
* Integer property that determines the height of a top snow
|
|
1575
|
-
* block. Valid values are between 0 and 7 inclusive.
|
|
1576
|
-
*/
|
|
1577
|
-
static readonly height = 'height';
|
|
1578
|
-
static readonly honeyLevel = 'honey_level';
|
|
1579
|
-
/**
|
|
1580
|
-
* Integer property that determines which huge mushroom block
|
|
1581
|
-
* should be displayed. Valid values are between 0 and 15
|
|
1582
|
-
* inclusive.
|
|
1583
|
-
*/
|
|
1584
|
-
static readonly hugeMushroomBits = 'huge_mushroom_bits';
|
|
1585
|
-
/**
|
|
1586
|
-
* Boolean property that determines if a block should burn
|
|
1587
|
-
* infinitely.
|
|
1588
|
-
*/
|
|
1589
|
-
static readonly infiniburnBit = 'infiniburn_bit';
|
|
1590
|
-
/**
|
|
1591
|
-
* Boolean property that determines if a fence block is
|
|
1592
|
-
* connected to a wall block.
|
|
1593
|
-
*/
|
|
1594
|
-
static readonly inWallBit = 'in_wall_bit';
|
|
1595
|
-
/**
|
|
1596
|
-
* Boolean property that describes if an item frame block has a
|
|
1597
|
-
* map in it.
|
|
1598
|
-
*/
|
|
1599
|
-
static readonly itemFrameMapBit = 'item_frame_map_bit';
|
|
1600
|
-
static readonly itemFramePhotoBit = 'item_frame_photo_bit';
|
|
1601
|
-
static readonly kelpAge = 'kelp_age';
|
|
1602
|
-
static readonly leverDirection = 'lever_direction';
|
|
1603
|
-
/**
|
|
1604
|
-
* Integer property that represents the level of liquid blocks.
|
|
1605
|
-
* Valid values are between 0 and 15 inclusive.
|
|
1606
|
-
*/
|
|
1607
|
-
static readonly liquidDepth = 'liquid_depth';
|
|
1608
|
-
/**
|
|
1609
|
-
* Boolean property that determines if a block is lit or not.
|
|
1610
|
-
*/
|
|
1611
|
-
static readonly lit = 'lit';
|
|
1612
|
-
/**
|
|
1613
|
-
* Integer property that represents the moisture level of crop.
|
|
1614
|
-
* Valid values are between 0 and 7 inclusive.
|
|
1615
|
-
*/
|
|
1616
|
-
static readonly moisturizedAmount = 'moisturized_amount';
|
|
1617
|
-
/**
|
|
1618
|
-
* String property that represents the stone type of an
|
|
1619
|
-
* Infested Stone block. Valid values are 'stone',
|
|
1620
|
-
* 'cobblestone', 'stone_brick', 'mossy_stone_brick',
|
|
1621
|
-
* 'cracked_stone_brick' and 'chiseled_stone_brick'.
|
|
1622
|
-
*/
|
|
1623
|
-
static readonly monsterEggStoneType = 'monster_egg_stone_type';
|
|
1624
|
-
static readonly multiFaceDirectionBits = 'multi_face_direction_bits';
|
|
1625
|
-
/**
|
|
1626
|
-
* String property that represents the leaf type of some block
|
|
1627
|
-
* types. Valid values are 'acacia' and 'dark_oak'.
|
|
1628
|
-
*/
|
|
1629
|
-
static readonly newLeafType = 'new_leaf_type';
|
|
1630
|
-
/**
|
|
1631
|
-
* String property that represents the wood type of certain
|
|
1632
|
-
* types of blocks. Valid values are 'acacia' and 'dark_oak'.
|
|
1633
|
-
*/
|
|
1634
|
-
static readonly newLogType = 'new_log_type';
|
|
1635
|
-
/**
|
|
1636
|
-
* Boolean property that determines if a skull block should
|
|
1637
|
-
* drop loot.
|
|
1638
|
-
*/
|
|
1639
|
-
static readonly noDropBit = 'no_drop_bit';
|
|
1640
|
-
/**
|
|
1641
|
-
* Boolean property that determines if a bed block is occupied.
|
|
1642
|
-
*/
|
|
1643
|
-
static readonly occupiedBit = 'occupied_bit';
|
|
1644
|
-
/**
|
|
1645
|
-
* String property that represents the leaf type of some block
|
|
1646
|
-
* types. Valid values are 'oak', 'spruce', 'birch', and
|
|
1647
|
-
* 'jungle'.
|
|
1648
|
-
*/
|
|
1649
|
-
static readonly oldLeafType = 'old_leaf_type';
|
|
1650
|
-
/**
|
|
1651
|
-
* String property that determines the wood type of certain
|
|
1652
|
-
* types of blocks. Valid values are 'oak', 'spruce', 'birch'
|
|
1653
|
-
* and 'jungle'.
|
|
1654
|
-
*/
|
|
1655
|
-
static readonly oldLogType = 'old_log_type';
|
|
1656
|
-
/**
|
|
1657
|
-
* Boolean property that determines if a door, gate, or
|
|
1658
|
-
* trapdoor is open.
|
|
1659
|
-
*/
|
|
1660
|
-
static readonly openBit = 'open_bit';
|
|
1661
|
-
/**
|
|
1662
|
-
* Boolean property that determines if a comparator's output is
|
|
1663
|
-
* lit.
|
|
1664
|
-
*/
|
|
1665
|
-
static readonly outputLitBit = 'output_lit_bit';
|
|
1666
|
-
/**
|
|
1667
|
-
* Boolean property that determines if a comparator is set to
|
|
1668
|
-
* subtract output.
|
|
1669
|
-
*/
|
|
1670
|
-
static readonly outputSubtractBit = 'output_subtract_bit';
|
|
1671
|
-
/**
|
|
1672
|
-
* Boolean property that determines if a leaf block is
|
|
1673
|
-
* persistent.
|
|
1674
|
-
*/
|
|
1675
|
-
static readonly persistentBit = 'persistent_bit';
|
|
1676
|
-
static readonly pillarAxis = 'pillar_axis';
|
|
1677
|
-
/**
|
|
1678
|
-
* String property that determines the orientation of portal
|
|
1679
|
-
* blocks. Valid values include 'unknown', 'x', and 'z'.
|
|
1680
|
-
*/
|
|
1681
|
-
static readonly portalAxis = 'portal_axis';
|
|
1682
|
-
/**
|
|
1683
|
-
* Boolean property that is true when an observer or tripwire
|
|
1684
|
-
* sends a redstone signal.
|
|
1685
|
-
*/
|
|
1686
|
-
static readonly poweredBit = 'powered_bit';
|
|
1687
|
-
static readonly prismarineBlockType = 'prismarine_block_type';
|
|
1688
|
-
static readonly propaguleStage = 'propagule_stage';
|
|
1689
|
-
/**
|
|
1690
|
-
* Boolean property that returns true if a rail has a redstone
|
|
1691
|
-
* signal.
|
|
1692
|
-
*/
|
|
1693
|
-
static readonly railDataBit = 'rail_data_bit';
|
|
1694
|
-
/**
|
|
1695
|
-
* Integer property determines the orientation of a placed rail
|
|
1696
|
-
* block. Valid values are between 0 and 8 inclusive.
|
|
1697
|
-
*/
|
|
1698
|
-
static readonly railDirection = 'rail_direction';
|
|
1699
|
-
/**
|
|
1700
|
-
* Integer property that determines the signal strength of a
|
|
1701
|
-
* redstone signal. Valid values are between 0 and 15
|
|
1702
|
-
* inclusive.
|
|
1703
|
-
*/
|
|
1704
|
-
static readonly redstoneSignal = 'redstone_signal';
|
|
1705
|
-
/**
|
|
1706
|
-
* Integer property that represents the amount of delay of a
|
|
1707
|
-
* repeater. Valid values are between 0 and 3 inclusive.
|
|
1708
|
-
*/
|
|
1709
|
-
static readonly repeaterDelay = 'repeater_delay';
|
|
1710
|
-
static readonly respawnAnchorCharge = 'respawn_anchor_charge';
|
|
1711
|
-
static readonly rotation = 'rotation';
|
|
1712
|
-
/**
|
|
1713
|
-
* String property that represents the pattern of a sandstone
|
|
1714
|
-
* block. Valid values are 'default', 'heiroglyphs', 'cut', and
|
|
1715
|
-
* 'smooth'.
|
|
1716
|
-
*/
|
|
1717
|
-
static readonly sandStoneType = 'sand_stone_type';
|
|
1718
|
-
/**
|
|
1719
|
-
* String property that represents the sand type of a block.
|
|
1720
|
-
* Valid values are 'normal' and 'red'.
|
|
1721
|
-
*/
|
|
1722
|
-
static readonly sandType = 'sand_type';
|
|
1723
|
-
/**
|
|
1724
|
-
* String property that determines the type of the sapling
|
|
1725
|
-
* block. Valid values are 'evergreen', 'birch', 'jungle',
|
|
1726
|
-
* 'acacia', and 'roofed_oak'.
|
|
1727
|
-
*/
|
|
1728
|
-
static readonly saplingType = 'sapling_type';
|
|
1729
|
-
/**
|
|
1730
|
-
* String property that determines the type of a sea grass
|
|
1731
|
-
* block. Valid values are 'default', 'double_top' and
|
|
1732
|
-
* 'double_bot'.
|
|
1733
|
-
*/
|
|
1734
|
-
static readonly seaGrassType = 'sea_grass_type';
|
|
1735
|
-
/**
|
|
1736
|
-
* String property that represents the type of a sponge block.
|
|
1737
|
-
* Valid values are 'dry' and 'wet'.
|
|
1738
|
-
*/
|
|
1739
|
-
static readonly spongeType = 'sponge_type';
|
|
1740
|
-
/**
|
|
1741
|
-
* Integer property that determines the stability of a
|
|
1742
|
-
* scaffolding block. Valid values are between 0 and 5
|
|
1743
|
-
* inclusive.
|
|
1744
|
-
*/
|
|
1745
|
-
static readonly stability = 'stability';
|
|
1746
|
-
/**
|
|
1747
|
-
* Boolean property that describes if a scaffolding block has
|
|
1748
|
-
* been checked for stability.
|
|
1749
|
-
*/
|
|
1750
|
-
static readonly stabilityCheck = 'stability_check';
|
|
1751
|
-
/**
|
|
1752
|
-
* String property that determines the type of a stone brick
|
|
1753
|
-
* block. Valid values are 'default', 'mossy', 'cracked',
|
|
1754
|
-
* 'chiseled' and 'smooth'.
|
|
1755
|
-
*/
|
|
1756
|
-
static readonly stoneBrickType = 'stone_brick_type';
|
|
1757
|
-
/**
|
|
1758
|
-
* String property that represents the type of certain types of
|
|
1759
|
-
* stone slab blocks. Valid values are 'smooth_stone',
|
|
1760
|
-
* 'sandstone', 'wood', 'cobblestone', 'brick', 'stone_brick',
|
|
1761
|
-
* 'quartz' and 'nether_brick'.
|
|
1762
|
-
*/
|
|
1763
|
-
static readonly stoneSlabType = 'stone_slab_type';
|
|
1764
|
-
/**
|
|
1765
|
-
* String property that represents the type of certain types of
|
|
1766
|
-
* stone slab blocks. Valid values are 'red_sandstone',
|
|
1767
|
-
* 'purpur', 'prismarine_rough', 'prismarine_dark',
|
|
1768
|
-
* 'prismarine_brick', 'mossy_cobblestone', 'smooth_sandstone'
|
|
1769
|
-
* and 'red_nether_brick'.
|
|
1770
|
-
*/
|
|
1771
|
-
static readonly stoneSlabType2 = 'stone_slab_type_2';
|
|
1772
|
-
/**
|
|
1773
|
-
* String property that represents the type of certain types of
|
|
1774
|
-
* stone slab blocks. Valid values are 'end_stone_brick',
|
|
1775
|
-
* 'smooth_red_sandstone', 'polished_andesite', 'andesite',
|
|
1776
|
-
* 'diorite', 'polished_diorite', 'granite', and
|
|
1777
|
-
* 'polished_granite'.
|
|
1778
|
-
*/
|
|
1779
|
-
static readonly stoneSlabType3 = 'stone_slab_type_3';
|
|
1780
|
-
/**
|
|
1781
|
-
* String property that represents the type of certain types of
|
|
1782
|
-
* stone slab blocks. Valid values are 'mossy_stone_brick',
|
|
1783
|
-
* 'smooth_quartz', 'stone', 'cut_sandstone', and
|
|
1784
|
-
* 'cut_red_sandstone'.
|
|
1785
|
-
*/
|
|
1786
|
-
static readonly stoneSlabType4 = 'stone_slab_type_4';
|
|
1787
|
-
/**
|
|
1788
|
-
* String property that determines the type of a stone block.
|
|
1789
|
-
* Valid values are 'stone', 'granite', 'granite_smooth',
|
|
1790
|
-
* 'diorite', 'diorite_smooth', 'andesite', and
|
|
1791
|
-
* 'andesite_smooth'.
|
|
1792
|
-
*/
|
|
1793
|
-
static readonly stoneType = 'stone_type';
|
|
1794
|
-
/**
|
|
1795
|
-
* Boolean property that represents if a wood log has been
|
|
1796
|
-
* stripped of bark.
|
|
1797
|
-
*/
|
|
1798
|
-
static readonly strippedBit = 'stripped_bit';
|
|
1799
|
-
/**
|
|
1800
|
-
* String property that represents the state of a structure
|
|
1801
|
-
* block. Valid values are 'data', 'save', 'load', 'corner',
|
|
1802
|
-
* 'invalid' and 'export'.
|
|
1803
|
-
*/
|
|
1804
|
-
static readonly structureBlockType = 'structure_block_type';
|
|
1805
|
-
/**
|
|
1806
|
-
* String property that determines which void mode to draw for
|
|
1807
|
-
* structure blocks. Valid values are 'void' and 'air'.
|
|
1808
|
-
*/
|
|
1809
|
-
static readonly structureVoidType = 'structure_void_type';
|
|
1810
|
-
/**
|
|
1811
|
-
* Boolean property that indicates if a tripwire block is
|
|
1812
|
-
* suspended.
|
|
1813
|
-
*/
|
|
1814
|
-
static readonly suspendedBit = 'suspended_bit';
|
|
1815
|
-
/**
|
|
1816
|
-
* String property that represents the type of a tall grass
|
|
1817
|
-
* block. Valid values are 'default', 'tall', 'fern', and
|
|
1818
|
-
* 'snow'.
|
|
1819
|
-
*/
|
|
1820
|
-
static readonly tallGrassType = 'tall_grass_type';
|
|
1821
|
-
/**
|
|
1822
|
-
* Boolean property that determines if a hopper block is active
|
|
1823
|
-
* or not.
|
|
1824
|
-
*/
|
|
1825
|
-
static readonly toggleBit = 'toggle_bit';
|
|
1826
|
-
/**
|
|
1827
|
-
* Boolean property that determines if a slab is the top half
|
|
1828
|
-
* of the block or not
|
|
1829
|
-
*/
|
|
1830
|
-
static readonly topSlotBit = 'top_slot_bit';
|
|
1831
|
-
/**
|
|
1832
|
-
* String property that determines the direction of a torch in
|
|
1833
|
-
* relation to the block it is attached to. Valid values are
|
|
1834
|
-
* 'unknown', 'west', 'east', 'north', 'south', 'top'.
|
|
1835
|
-
*/
|
|
1836
|
-
static readonly torchFacingDirection = 'torch_facing_direction';
|
|
1837
|
-
/**
|
|
1838
|
-
* Boolean property that determines if a dispenser is
|
|
1839
|
-
* triggered.
|
|
1840
|
-
*/
|
|
1841
|
-
static readonly triggeredBit = 'triggered_bit';
|
|
1842
|
-
/**
|
|
1843
|
-
* String property that represents the amount of turtle eggs in
|
|
1844
|
-
* an egg block. Valid values are 'one_egg', 'two_egg',
|
|
1845
|
-
* 'three_egg' and 'four_egg'.
|
|
1846
|
-
*/
|
|
1847
|
-
static readonly turtleEggCount = 'turtle_egg_count';
|
|
1848
|
-
static readonly twistingVinesAge = 'twisting_vines_age';
|
|
1849
|
-
/**
|
|
1850
|
-
* Boolean property that determines if a leaf block or flower
|
|
1851
|
-
* block should be updated.
|
|
1852
|
-
*/
|
|
1853
|
-
static readonly updateBit = 'update_bit';
|
|
1854
|
-
/**
|
|
1855
|
-
* Boolean property that determines if a block is the upper
|
|
1856
|
-
* half of an object like a door or a tall plant.
|
|
1857
|
-
*/
|
|
1858
|
-
static readonly upperBlockBit = 'upper_block_bit';
|
|
1859
|
-
/**
|
|
1860
|
-
* Boolean property that determines if a stair block or
|
|
1861
|
-
* trapdoor block is upside-down.
|
|
1862
|
-
*/
|
|
1863
|
-
static readonly upsideDownBit = 'upside_down_bit';
|
|
1864
|
-
/**
|
|
1865
|
-
* Integer property that represents the facing direction for
|
|
1866
|
-
* vines. Valid values are between 0 and 15 inclusive.
|
|
1867
|
-
*/
|
|
1868
|
-
static readonly vineDirectionBits = 'vine_direction_bits';
|
|
1869
|
-
/**
|
|
1870
|
-
* String property that represents the type of stone used in a
|
|
1871
|
-
* wall block. Valid values are 'cobblestone',
|
|
1872
|
-
* 'mossy_cobblestone', 'granite', 'diorite', 'andesite',
|
|
1873
|
-
* 'sandstone', 'brick', 'stone_brick', 'mossy_stone_brick',
|
|
1874
|
-
* 'nether_brick', 'end_brick', 'prismarine', 'red_sandstone'
|
|
1875
|
-
* and 'red_nether_brick'.
|
|
1876
|
-
*/
|
|
1877
|
-
static readonly wallBlockType = 'wall_block_type';
|
|
1878
|
-
/**
|
|
1879
|
-
* String property that determines what kind of connection a
|
|
1880
|
-
* wall has to the east. Valid values are 'none', 'short' and
|
|
1881
|
-
* 'tall'.
|
|
1882
|
-
*/
|
|
1883
|
-
static readonly wallConnectionTypeEast = 'wall_connection_type_east';
|
|
1884
|
-
/**
|
|
1885
|
-
* String property that determines what kind of connection a
|
|
1886
|
-
* wall has to the north. Valid values are 'none', 'short' and
|
|
1887
|
-
* 'tall'.
|
|
1888
|
-
*/
|
|
1889
|
-
static readonly wallConnectionTypeNorth = 'wall_connection_type_north';
|
|
1890
|
-
/**
|
|
1891
|
-
* String property that determines what kind of connection a
|
|
1892
|
-
* wall has to the south. Valid values are 'none', 'short' and
|
|
1893
|
-
* 'tall'.
|
|
1894
|
-
*/
|
|
1895
|
-
static readonly wallConnectionTypeSouth = 'wall_connection_type_south';
|
|
1896
|
-
/**
|
|
1897
|
-
* String property that determines what kind of connection a
|
|
1898
|
-
* wall has to the west. Valid values are 'none', 'short' and
|
|
1899
|
-
* 'tall'.
|
|
1900
|
-
*/
|
|
1901
|
-
static readonly wallConnectionTypeWest = 'wall_connection_type_west';
|
|
1902
|
-
/**
|
|
1903
|
-
* Boolean property that determines if a wall should contain a
|
|
1904
|
-
* post.
|
|
1905
|
-
*/
|
|
1906
|
-
static readonly wallPostBit = 'wall_post_bit';
|
|
1907
|
-
static readonly weepingVinesAge = 'weeping_vines_age';
|
|
1908
|
-
/**
|
|
1909
|
-
* Integer property that represents the rotation of stairs.
|
|
1910
|
-
* Valid values are between 0 and 3 inclusive.
|
|
1911
|
-
*/
|
|
1912
|
-
static readonly weirdoDirection = 'weirdo_direction';
|
|
1913
|
-
/**
|
|
1914
|
-
* String property that determines the wood type of a block.
|
|
1915
|
-
* Valid values are 'oak', 'spruce', 'birch', 'jungle',
|
|
1916
|
-
* 'acacia', and 'dark_oak'.
|
|
1917
|
-
*/
|
|
1918
|
-
static readonly woodType = 'wood_type';
|
|
1329
|
+
static get(propertyName: string): BlockPropertyType;
|
|
1330
|
+
static getAll(): BlockPropertyType[];
|
|
1331
|
+
}
|
|
1332
|
+
export class BlockPropertyType {
|
|
1333
|
+
protected constructor();
|
|
1334
|
+
readonly id: string;
|
|
1335
|
+
readonly validValues: (boolean | number | string)[];
|
|
1919
1336
|
}
|
|
1920
1337
|
/**
|
|
1921
1338
|
* @beta
|
|
@@ -2018,15 +1435,6 @@ export class BlockType {
|
|
|
2018
1435
|
* Block type name - for example, `minecraft:acacia_stairs`.
|
|
2019
1436
|
*/
|
|
2020
1437
|
readonly id: string;
|
|
2021
|
-
/**
|
|
2022
|
-
* @remarks
|
|
2023
|
-
* Creates the default {@link BlockPermutation} for this type
|
|
2024
|
-
* which uses the default values for all properties.
|
|
2025
|
-
* @returns
|
|
2026
|
-
* Returns created permutation.
|
|
2027
|
-
* @throws This function can throw errors.
|
|
2028
|
-
*/
|
|
2029
|
-
createDefaultBlockPermutation(): BlockPermutation;
|
|
2030
1438
|
}
|
|
2031
1439
|
/**
|
|
2032
1440
|
* @beta
|
|
@@ -2061,28 +1469,6 @@ export class BlockWaterContainerComponent extends BlockComponent {
|
|
|
2061
1469
|
getCustomColor(): Color;
|
|
2062
1470
|
setCustomColor(color: Color): void;
|
|
2063
1471
|
}
|
|
2064
|
-
/**
|
|
2065
|
-
* @beta
|
|
2066
|
-
* Contains the state of a boolean-based property for a {@link
|
|
2067
|
-
* BlockPermutation}.
|
|
2068
|
-
*/
|
|
2069
|
-
export class BoolBlockProperty extends IBlockProperty {
|
|
2070
|
-
protected constructor();
|
|
2071
|
-
/**
|
|
2072
|
-
* The name of this property.
|
|
2073
|
-
*/
|
|
2074
|
-
readonly name: string;
|
|
2075
|
-
/**
|
|
2076
|
-
* The current value of this property.
|
|
2077
|
-
* @throws
|
|
2078
|
-
* Setting this property can throw if the value passed is not
|
|
2079
|
-
* valid for the property. Use {@link
|
|
2080
|
-
* @minecraft/server.BoolBlockProperty.validValues} to check
|
|
2081
|
-
* allowed values.
|
|
2082
|
-
*/
|
|
2083
|
-
value: boolean;
|
|
2084
|
-
getValidValues(): boolean[];
|
|
2085
|
-
}
|
|
2086
1472
|
/**
|
|
2087
1473
|
* @beta
|
|
2088
1474
|
* Contains information related to changes to a button push.
|
|
@@ -2329,22 +1715,28 @@ export class ContainerSlot {
|
|
|
2329
1715
|
* Modifier value for the item type stored within the slot.
|
|
2330
1716
|
*/
|
|
2331
1717
|
data: number;
|
|
1718
|
+
readonly isStackable: boolean;
|
|
2332
1719
|
/**
|
|
2333
1720
|
* If true, the state of this container slot is still valid
|
|
2334
1721
|
* (e.g., the underlying block or entity for this container
|
|
2335
1722
|
* slot still exists.)
|
|
2336
1723
|
*/
|
|
2337
1724
|
readonly isValid: boolean;
|
|
1725
|
+
keepOnDeath: boolean;
|
|
1726
|
+
lockMode: ItemLockMode;
|
|
1727
|
+
readonly maxAmount: number;
|
|
2338
1728
|
/**
|
|
2339
1729
|
* Returns a name tag for the container slot.
|
|
2340
1730
|
*/
|
|
2341
1731
|
nameTag?: string;
|
|
1732
|
+
readonly 'type': ItemType;
|
|
2342
1733
|
/**
|
|
2343
1734
|
* Returns a string identifier of the type if item stored in
|
|
2344
1735
|
* this slot.
|
|
2345
1736
|
* @throws This property can throw when used.
|
|
2346
1737
|
*/
|
|
2347
1738
|
readonly typeId?: string;
|
|
1739
|
+
clone(): ItemStack;
|
|
2348
1740
|
/**
|
|
2349
1741
|
* @remarks
|
|
2350
1742
|
* Returns the item stored within the container.
|
|
@@ -2358,6 +1750,9 @@ export class ContainerSlot {
|
|
|
2358
1750
|
* @throws This function can throw errors.
|
|
2359
1751
|
*/
|
|
2360
1752
|
getLore(): string[];
|
|
1753
|
+
isStackableWith(itemStack: ItemStack): boolean;
|
|
1754
|
+
setCanDestroy(blockIdentifiers?: string[]): void;
|
|
1755
|
+
setCanPlaceOn(blockIdentifiers?: string[]): void;
|
|
2361
1756
|
/**
|
|
2362
1757
|
* @remarks
|
|
2363
1758
|
* Sets the item within the slot to a new value.
|
|
@@ -2530,8 +1925,7 @@ export class Dimension {
|
|
|
2530
1925
|
* defined via the EntityQueryOptions set of filter criteria.
|
|
2531
1926
|
* @param getEntities
|
|
2532
1927
|
* @returns
|
|
2533
|
-
* An entity
|
|
2534
|
-
* returned entities.
|
|
1928
|
+
* An entity array.
|
|
2535
1929
|
* @throws This function can throw errors.
|
|
2536
1930
|
* @example testThatEntityIsFeatherItem.ts
|
|
2537
1931
|
* ```typescript
|
|
@@ -2583,8 +1977,7 @@ export class Dimension {
|
|
|
2583
1977
|
* defined via the EntityQueryOptions set of filter criteria.
|
|
2584
1978
|
* @param getPlayers
|
|
2585
1979
|
* @returns
|
|
2586
|
-
*
|
|
2587
|
-
* returned players.
|
|
1980
|
+
* A player array.
|
|
2588
1981
|
* @throws This function can throw errors.
|
|
2589
1982
|
*/
|
|
2590
1983
|
getPlayers(getPlayers?: EntityQueryOptions): PlayerIterator;
|
|
@@ -2713,7 +2106,7 @@ export class Dimension {
|
|
|
2713
2106
|
* For block properties that take a direction, provides a
|
|
2714
2107
|
* structured way to specify the direction of a block property.
|
|
2715
2108
|
*/
|
|
2716
|
-
export class DirectionBlockProperty
|
|
2109
|
+
export class DirectionBlockProperty {
|
|
2717
2110
|
protected constructor();
|
|
2718
2111
|
/**
|
|
2719
2112
|
* Name of the property.
|
|
@@ -5422,7 +4815,19 @@ export class EntityRideableComponent extends IEntityComponent {
|
|
|
5422
4815
|
* @throws This function can throw errors.
|
|
5423
4816
|
*/
|
|
5424
4817
|
ejectRiders(): void;
|
|
4818
|
+
/**
|
|
4819
|
+
* @remarks
|
|
4820
|
+
* A string-list of entity types that this entity can support
|
|
4821
|
+
* as riders.
|
|
4822
|
+
* @throws This function can throw errors.
|
|
4823
|
+
*/
|
|
5425
4824
|
getFamilyTypes(): string[];
|
|
4825
|
+
/**
|
|
4826
|
+
* @remarks
|
|
4827
|
+
* Gets a list of positions and number of riders for each
|
|
4828
|
+
* position for entities riding this entity.
|
|
4829
|
+
* @throws This function can throw errors.
|
|
4830
|
+
*/
|
|
5426
4831
|
getSeats(): Seat[];
|
|
5427
4832
|
}
|
|
5428
4833
|
/**
|
|
@@ -6020,18 +5425,6 @@ export class FluidContainer {
|
|
|
6020
5425
|
*/
|
|
6021
5426
|
static readonly minFillLevel = 0;
|
|
6022
5427
|
}
|
|
6023
|
-
/**
|
|
6024
|
-
* @beta
|
|
6025
|
-
* Contains an interface for defining the state of a property
|
|
6026
|
-
* for a {@link BlockPermutation}.
|
|
6027
|
-
*/
|
|
6028
|
-
export class IBlockProperty {
|
|
6029
|
-
protected constructor();
|
|
6030
|
-
/**
|
|
6031
|
-
* The name of this property.
|
|
6032
|
-
*/
|
|
6033
|
-
readonly name: string;
|
|
6034
|
-
}
|
|
6035
5428
|
/**
|
|
6036
5429
|
* @beta
|
|
6037
5430
|
* Base interface that defines components associated with an
|
|
@@ -6044,28 +5437,6 @@ export class IEntityComponent {
|
|
|
6044
5437
|
*/
|
|
6045
5438
|
readonly typeId: string;
|
|
6046
5439
|
}
|
|
6047
|
-
/**
|
|
6048
|
-
* @beta
|
|
6049
|
-
* Contains the state of an integer-based property for a {@link
|
|
6050
|
-
* BlockPermutation}.
|
|
6051
|
-
*/
|
|
6052
|
-
export class IntBlockProperty extends IBlockProperty {
|
|
6053
|
-
protected constructor();
|
|
6054
|
-
/**
|
|
6055
|
-
* The name of this property.
|
|
6056
|
-
*/
|
|
6057
|
-
readonly name: string;
|
|
6058
|
-
/**
|
|
6059
|
-
* The current value of this property.
|
|
6060
|
-
* @throws
|
|
6061
|
-
* Setting this property can throw if the value passed is not
|
|
6062
|
-
* valid for the property. Use {@link
|
|
6063
|
-
* @minecraft/server.IntBlockProperty.validValues} to check
|
|
6064
|
-
* allowed values.
|
|
6065
|
-
*/
|
|
6066
|
-
value: number;
|
|
6067
|
-
getValidValues(): number[];
|
|
6068
|
-
}
|
|
6069
5440
|
/**
|
|
6070
5441
|
* @beta
|
|
6071
5442
|
* Represents a container that can hold stacks of items. Used
|
|
@@ -6471,10 +5842,15 @@ export class ItemStack {
|
|
|
6471
5842
|
* 0 and 64.
|
|
6472
5843
|
*/
|
|
6473
5844
|
amount: number;
|
|
5845
|
+
readonly isStackable: boolean;
|
|
5846
|
+
keepOnDeath: boolean;
|
|
5847
|
+
lockMode: ItemLockMode;
|
|
5848
|
+
readonly maxAmount: number;
|
|
6474
5849
|
/**
|
|
6475
5850
|
* Given name of this stack of items.
|
|
6476
5851
|
*/
|
|
6477
5852
|
nameTag?: string;
|
|
5853
|
+
readonly 'type': ItemType;
|
|
6478
5854
|
/**
|
|
6479
5855
|
* Identifier of the type of items for the stack. If a
|
|
6480
5856
|
* namespace is not specified, 'minecraft:' is assumed.
|
|
@@ -6495,6 +5871,7 @@ export class ItemStack {
|
|
|
6495
5871
|
* @throws This function can throw errors.
|
|
6496
5872
|
*/
|
|
6497
5873
|
constructor(itemType: ItemType | string, amount?: number);
|
|
5874
|
+
clone(): ItemStack;
|
|
6498
5875
|
/**
|
|
6499
5876
|
* @remarks
|
|
6500
5877
|
* Gets a component (that represents additional capabilities)
|
|
@@ -6528,6 +5905,9 @@ export class ItemStack {
|
|
|
6528
5905
|
* is assumed.
|
|
6529
5906
|
*/
|
|
6530
5907
|
hasComponent(componentId: string): boolean;
|
|
5908
|
+
isStackableWith(itemStack: ItemStack): boolean;
|
|
5909
|
+
setCanDestroy(blockIdentifiers?: string[]): void;
|
|
5910
|
+
setCanPlaceOn(blockIdentifiers?: string[]): void;
|
|
6531
5911
|
/**
|
|
6532
5912
|
* @remarks
|
|
6533
5913
|
* Sets the lore value - a secondary display string - for an
|
|
@@ -7604,6 +6984,7 @@ export class MinecraftBlockTypes {
|
|
|
7604
6984
|
* Represents a dead bush within Minecraft.
|
|
7605
6985
|
*/
|
|
7606
6986
|
static readonly deadbush: BlockType;
|
|
6987
|
+
static readonly decoratedPot: BlockType;
|
|
7607
6988
|
/**
|
|
7608
6989
|
* Represents a block of deepslate within Minecraft.
|
|
7609
6990
|
*/
|
|
@@ -9645,6 +9026,7 @@ export class MinecraftBlockTypes {
|
|
|
9645
9026
|
* Represents a structure void within Minecraft.
|
|
9646
9027
|
*/
|
|
9647
9028
|
static readonly structureVoid: BlockType;
|
|
9029
|
+
static readonly suspiciousSand: BlockType;
|
|
9648
9030
|
/**
|
|
9649
9031
|
* Represents a sweet berry bush within Minecraft.
|
|
9650
9032
|
*/
|
|
@@ -9669,6 +9051,8 @@ export class MinecraftBlockTypes {
|
|
|
9669
9051
|
* Represents a torch within Minecraft.
|
|
9670
9052
|
*/
|
|
9671
9053
|
static readonly torch: BlockType;
|
|
9054
|
+
static readonly torchflower: BlockType;
|
|
9055
|
+
static readonly torchflowerCrop: BlockType;
|
|
9672
9056
|
/**
|
|
9673
9057
|
* Represents a trapdoor within Minecraft.
|
|
9674
9058
|
*/
|
|
@@ -12909,24 +12293,36 @@ export class MinecraftItemTypes {
|
|
|
12909
12293
|
export class MolangVariableMap {
|
|
12910
12294
|
/**
|
|
12911
12295
|
* @remarks
|
|
12912
|
-
*
|
|
12913
|
-
*
|
|
12296
|
+
* Adds the following variables to Molang:
|
|
12297
|
+
* - `<variable_name>.r` - Red color value [0-1]
|
|
12298
|
+
* - `<variable_name>.g` - Green color value [0-1]
|
|
12299
|
+
* - `<variable_name>.b` - Blue color value [0-1]
|
|
12914
12300
|
* @param variableName
|
|
12915
12301
|
* @param color
|
|
12916
12302
|
*/
|
|
12917
12303
|
setColorRGB(variableName: string, color: Color): MolangVariableMap;
|
|
12918
12304
|
/**
|
|
12919
12305
|
* @remarks
|
|
12920
|
-
*
|
|
12921
|
-
*
|
|
12306
|
+
* Adds the following variables to Molang:
|
|
12307
|
+
* - `<variable_name>.r` - Red color value [0-1]
|
|
12308
|
+
* - `<variable_name>.g` - Green color value [0-1]
|
|
12309
|
+
* - `<variable_name>.b` - Blue color value [0-1]
|
|
12310
|
+
* - `<variable_name>.a` - Alpha (transparency) color value
|
|
12311
|
+
* [0-1]
|
|
12922
12312
|
* @param variableName
|
|
12923
12313
|
* @param color
|
|
12924
12314
|
*/
|
|
12925
12315
|
setColorRGBA(variableName: string, color: Color): MolangVariableMap;
|
|
12926
12316
|
/**
|
|
12927
12317
|
* @remarks
|
|
12928
|
-
*
|
|
12929
|
-
*
|
|
12318
|
+
* Adds the following variables to Molang:
|
|
12319
|
+
* - `<variable_name>.speed` - Speed number provided
|
|
12320
|
+
* - `<variable_name>.direction_x` - X value from the {@link
|
|
12321
|
+
* Vector3} provided
|
|
12322
|
+
* - `<variable_name>.direction_y` - Y value from the {@link
|
|
12323
|
+
* Vector3} provided
|
|
12324
|
+
* - `<variable_name>.direction_z` - Z value from the {@link
|
|
12325
|
+
* Vector3} provided
|
|
12930
12326
|
* @param variableName
|
|
12931
12327
|
* @param speed
|
|
12932
12328
|
* @param direction
|
|
@@ -12934,8 +12330,13 @@ export class MolangVariableMap {
|
|
|
12934
12330
|
setSpeedAndDirection(variableName: string, speed: number, direction: Vector): MolangVariableMap;
|
|
12935
12331
|
/**
|
|
12936
12332
|
* @remarks
|
|
12937
|
-
*
|
|
12938
|
-
*
|
|
12333
|
+
* Adds the following variables to Molang:
|
|
12334
|
+
* - `<variable_name>.x` - X value from the {@link Vector3}
|
|
12335
|
+
* provided
|
|
12336
|
+
* - `<variable_name>.y` - Y value from the {@link Vector3}
|
|
12337
|
+
* provided
|
|
12338
|
+
* - `<variable_name>.z` - Z value from the {@link Vector3}
|
|
12339
|
+
* provided
|
|
12939
12340
|
* @param variableName
|
|
12940
12341
|
* @param vector
|
|
12941
12342
|
*/
|
|
@@ -13992,28 +13393,6 @@ export class ServerMessageSignal {
|
|
|
13992
13393
|
*/
|
|
13993
13394
|
unsubscribe(callback: (arg: MessageReceiveEvent) => void): void;
|
|
13994
13395
|
}
|
|
13995
|
-
/**
|
|
13996
|
-
* @beta
|
|
13997
|
-
* Contains the state of a string-based property for a {@link
|
|
13998
|
-
* BlockPermutation}.
|
|
13999
|
-
*/
|
|
14000
|
-
export class StringBlockProperty extends IBlockProperty {
|
|
14001
|
-
protected constructor();
|
|
14002
|
-
/**
|
|
14003
|
-
* Name of this property.
|
|
14004
|
-
*/
|
|
14005
|
-
readonly name: string;
|
|
14006
|
-
/**
|
|
14007
|
-
* The current value of this property.
|
|
14008
|
-
* @throws
|
|
14009
|
-
* Setting this property can throw if the value passed is not
|
|
14010
|
-
* valid for the property. Use {@link
|
|
14011
|
-
* @minecraft/server.StringBlockProperty.validValues} to check
|
|
14012
|
-
* allowed values.
|
|
14013
|
-
*/
|
|
14014
|
-
value: string;
|
|
14015
|
-
getValidValues(): string[];
|
|
14016
|
-
}
|
|
14017
13396
|
/**
|
|
14018
13397
|
* A class that provides system-level events and functions.
|
|
14019
13398
|
*/
|
|
@@ -14388,10 +13767,13 @@ export class World {
|
|
|
14388
13767
|
/**
|
|
14389
13768
|
* @beta
|
|
14390
13769
|
* @remarks
|
|
14391
|
-
* Returns
|
|
13770
|
+
* Returns a set of players based on a set of conditions
|
|
13771
|
+
* defined via the EntityQueryOptions set of filter criteria.
|
|
14392
13772
|
* @param options
|
|
13773
|
+
* Additional options that can be used to filter the set of
|
|
13774
|
+
* players returned.
|
|
14393
13775
|
* @returns
|
|
14394
|
-
*
|
|
13776
|
+
* A player array.
|
|
14395
13777
|
* @throws This function can throw errors.
|
|
14396
13778
|
*/
|
|
14397
13779
|
getPlayers(options?: EntityQueryOptions): PlayerIterator;
|