@minecraft/server 1.1.0-beta.1.19.70-preview.22 → 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.
Files changed (2) hide show
  1. package/index.d.ts +37 -695
  2. 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.22"
19
+ * "version": "1.1.0-internal.1.19.70-preview.23"
20
20
  * }
21
21
  * ```
22
22
  *
@@ -1160,16 +1160,15 @@ export class BlockPermutation {
1160
1160
  * Returns the list of all of the properties that the
1161
1161
  * permutation has.
1162
1162
  */
1163
- getAllProperties(): IBlockProperty[];
1163
+ getAllProperties(): Record<string, boolean | number | string>;
1164
1164
  /**
1165
1165
  * @remarks
1166
1166
  * Gets a property for the permutation.
1167
1167
  * @param propertyName
1168
1168
  * @returns
1169
1169
  * Returns the property if the permutation has it, else `null`.
1170
- * @throws This function can throw errors.
1171
1170
  */
1172
- getProperty(propertyName: string): IBlockProperty;
1171
+ getProperty(propertyName: string): boolean | number | string | undefined;
1173
1172
  /**
1174
1173
  * @remarks
1175
1174
  * Creates a copy of the permutation.
@@ -1196,6 +1195,9 @@ export class BlockPermutation {
1196
1195
  * ```
1197
1196
  */
1198
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;
1199
1201
  }
1200
1202
  /**
1201
1203
  * @beta
@@ -1324,603 +1326,13 @@ export class BlockPotionContainerComponent extends BlockComponent {
1324
1326
  // tslint:disable-next-line:no-unnecessary-class
1325
1327
  export class BlockProperties {
1326
1328
  protected constructor();
1327
- static readonly active = 'active';
1328
- /**
1329
- * Integer property that represents the age of the block. Valid
1330
- * values are between 0 and 15 inclusive.
1331
- */
1332
- static readonly age = 'age';
1333
- /**
1334
- * Boolean property that determines if saplings should grow.
1335
- */
1336
- static readonly ageBit = 'age_bit';
1337
- /**
1338
- * Boolean property that determines if an explosion propagates
1339
- * underwater.
1340
- */
1341
- static readonly allowUnderwaterBit = 'allow_underwater_bit';
1342
- /**
1343
- * Boolean property that determines if a tripwire is attached
1344
- * to another tripwire.
1345
- */
1346
- static readonly attachedBit = 'attached_bit';
1347
- /**
1348
- * String property that represents the type of attachment used
1349
- * by a bell or grindstone block. Valid values are 'standing',
1350
- * 'hanging', 'side' and 'multiple'.
1351
- */
1352
- static readonly attachment = 'attachment';
1353
- /**
1354
- * String property that determines the thickness of a bamboo
1355
- * stalk. Valid values are 'thin' and 'thick'.
1356
- */
1357
- static readonly bambooLeafSize = 'bamboo_leaf_size';
1358
- /**
1359
- * String property that determines the size of bamboo leaves.
1360
- * Valid values are 'no_leaves', 'small_leaves', and
1361
- * 'large_leaves'.
1362
- */
1363
- static readonly bambooStalkThickness = 'bamboo_stalk_thickness';
1364
- static readonly bigDripleafHead = 'big_dripleaf_head';
1365
- /**
1366
- * String property that represents the tilt state of big
1367
- * dripleaf block. Valid values are 'none', 'unstable',
1368
- * 'partial_tilt' and 'full_tilt'.
1369
- */
1370
- static readonly bigDripleafTilt = 'big_dripleaf_tilt';
1371
- /**
1372
- * Integer property that tracks how many bites of cake have
1373
- * been taken. Valid values are between 0 and 6 inclusive.
1374
- */
1375
- static readonly biteCounter = 'bite_counter';
1376
- static readonly blockLightLevel = 'block_light_level';
1377
- static readonly bloom = 'bloom';
1378
- static readonly booksStored = 'books_stored';
1379
- /**
1380
- * Boolean property that determines if a bottle is shown in the
1381
- * first slot of the brewing stand.
1382
- */
1383
- static readonly brewingStandSlotABit = 'brewing_stand_slot_a_bit';
1384
- /**
1385
- * Boolean property that determines if a bottle is shown in the
1386
- * second slot of the brewing stand.
1387
- */
1388
- static readonly brewingStandSlotBBit = 'brewing_stand_slot_b_bit';
1389
- /**
1390
- * Boolean property that determines if a bottle is shown in the
1391
- * third slot of the brewing stand.
1392
- */
1393
- static readonly brewingStandSlotCBit = 'brewing_stand_slot_c_bit';
1394
- /**
1395
- * Boolean property that determines if a button is in a pressed
1396
- * state or not.
1397
- */
1398
- static readonly buttonPressedBit = 'button_pressed_bit';
1399
- /**
1400
- * Integer property that describes how many extra candles are
1401
- * in the same block space. Valid values are between 0 and 3
1402
- * inclusive.
1403
- */
1404
- static readonly candles = 'candles';
1405
- static readonly canSummon = 'can_summon';
1406
- /**
1407
- * String property that represents the type of liquid in a
1408
- * cauldron. Valid values are 'water', 'powder_snow', and
1409
- * 'lava'.
1410
- */
1411
- static readonly cauldronLiquid = 'cauldron_liquid';
1412
- /**
1413
- * String property that represents the type of work benches
1414
- * that are within Minecraft Education experiences. Valid
1415
- * values are 'compound_creator', 'material_reducer',
1416
- * 'element_constructor' and 'lab_table'.
1417
- */
1418
- static readonly chemistryTableType = 'chemistry_table_type';
1419
- /**
1420
- * String property determines the pattern of quartz and purpur
1421
- * blocks. Valid values are 'default', 'chiseled', 'lines',
1422
- * 'smooth'.
1423
- */
1424
- static readonly chiselType = 'chisel_type';
1425
- /**
1426
- * Integer property that describes how many sea pickles are in
1427
- * a cluster. Valid values are between 0 and 3 inclusive.
1428
- */
1429
- static readonly clusterCount = 'cluster_count';
1430
- /**
1431
- * String property that represents the color of a block, like
1432
- * wool. Valid values are 'white', 'orange', 'magenta',
1433
- * 'light_blue', 'yellow', 'lime', 'pink', 'gray', 'silver',
1434
- * 'cyan', 'purple', 'blue', 'brown', 'green', 'red' and
1435
- * 'black'.
1436
- */
1437
- static readonly color = 'color';
1438
- /**
1439
- * Boolean property that determines if a torch has a particular
1440
- * color.
1441
- */
1442
- static readonly colorBit = 'color_bit';
1443
- static readonly composterFillLevel = 'composter_fill_level';
1444
- /**
1445
- * Boolean property that determines if a command block is
1446
- * conditional or not.
1447
- */
1448
- static readonly conditionalBit = 'conditional_bit';
1449
- /**
1450
- * String property that represents the color of a coral block.
1451
- * Valid values are 'blue', 'pink', 'purple', 'red', 'yellow',
1452
- * 'blue dead', 'pink dead', 'red dead', and 'yellow dead'.
1453
- */
1454
- static readonly coralColor = 'coral_color';
1455
- /**
1456
- * Integer property that describes the rotation of coral fans.
1457
- * Valid values are between 0 and 3 inclusive.
1458
- */
1459
- static readonly coralDirection = 'coral_direction';
1460
- static readonly coralFanDirection = 'coral_fan_direction';
1461
- /**
1462
- * Boolean property that represents the type of hanging for
1463
- * coral fan.
1464
- */
1465
- static readonly coralHangTypeBit = 'coral_hang_type_bit';
1466
- /**
1467
- * Boolean property that describes if a top snow block is
1468
- * covering another block.
1469
- */
1470
- static readonly coveredBit = 'covered_bit';
1471
- /**
1472
- * String property that determines the cracked state of turtle
1473
- * eggs. Valid values are 'no_cracks', 'cracked', and
1474
- * 'max_cracked'.
1475
- */
1476
- static readonly crackedState = 'cracked_state';
1477
- /**
1478
- * String property that determines the damage state of an
1479
- * anvil. Valid values are 'undamaged', 'slightly_damaged',
1480
- * 'very_damaged', and 'broken'
1481
- */
1482
- static readonly damage = 'damage';
1483
- /**
1484
- * Boolean property that determines if coral, coral fans, or
1485
- * sea pickles are dead.
1486
- */
1487
- static readonly deadBit = 'dead_bit';
1488
- static readonly deprecated = 'deprecated';
1489
- /**
1490
- * Integer property determines the north, south, east, or west
1491
- * direction of a block. Valid values include are south = 0,
1492
- * west = 1, north = 2, east = 3.
1493
- */
1494
- static readonly direction = 'direction';
1495
- /**
1496
- * String property that determines the dirt type of a block.
1497
- * Valid values are 'normal' and 'coarse'.
1498
- */
1499
- static readonly dirtType = 'dirt_type';
1500
- /**
1501
- * Boolean property that determines if a tripwire is disarmed
1502
- * or not.
1503
- */
1504
- static readonly disarmedBit = 'disarmed_bit';
1505
- /**
1506
- * Boolean property that determines if a door's hinge is
1507
- * mirrored or not.
1508
- */
1509
- static readonly doorHingeBit = 'door_hinge_bit';
1510
- /**
1511
- * String property that represents the type of a double plant
1512
- * block. Valid values are 'sunflower', 'syringa', 'grass',
1513
- * 'fern', 'rose', and 'paeonia'.
1514
- */
1515
- static readonly doublePlantType = 'double_plant_type';
1516
- /**
1517
- * Boolean property that describes if bubble columns drag
1518
- * entities down or push them up.
1519
- */
1520
- static readonly dragDown = 'drag_down';
1521
- /**
1522
- * String property that represents the type of a pointed
1523
- * dripstone block. Valid values are 'tip', 'frustum', 'base',
1524
- * 'middle' and 'merge'.
1525
- */
1526
- static readonly dripstoneThickness = 'dripstone_thickness';
1527
- /**
1528
- * Boolean property that determines if an end portal block has
1529
- * an Eye of Ender in it.
1530
- */
1531
- static readonly endPortalEyeBit = 'end_portal_eye_bit';
1532
- /**
1533
- * Boolean property that determines if a TNT block should start
1534
- * its explode sequence.
1535
- */
1536
- static readonly explodeBit = 'explode_bit';
1537
- static readonly extinguished = 'extinguished';
1538
- /**
1539
- * Integer property that determines the facing direction of
1540
- * some types of blocks. Valid values include down = 0, up = 1,
1541
- * north = 2, south = 3, west = 4, east = 5.
1542
- */
1543
- static readonly facingDirection = 'facing_direction';
1544
- /**
1545
- * Integer property that determines the fill level of a
1546
- * cauldron block. Valid values are between 0 and 6 inclusive.
1547
- */
1548
- static readonly fillLevel = 'fill_level';
1549
- /**
1550
- * String property that represents the type of flow. Valid
1551
- * values are 'poppy', 'orchid', 'allium', 'houstonia',
1552
- * 'tulip_red', 'tulip_orange', 'tulip_white', 'tulip_pink',
1553
- * 'oxeye', 'cornflower' and 'lily_of_the_valley'.
1554
- */
1555
- static readonly flowerType = 'flower_type';
1556
- /**
1557
- * Integer property that represents the rotation of signs and
1558
- * standing banners. Valid values are between 0 and 15
1559
- * inclusive.
1560
- */
1561
- static readonly groundSignDirection = 'ground_sign_direction';
1562
- static readonly growingPlantAge = 'growing_plant_age';
1563
- /**
1564
- * Integer property that determines the growth level of crops.
1565
- * Valid values are between 0 and 7 inclusive.
1566
- */
1567
- static readonly growth = 'growth';
1568
- /**
1569
- * Boolean property that represents if a lantern block is
1570
- * hanging or not.
1571
- */
1572
- static readonly hanging = 'hanging';
1573
- /**
1574
- * Boolean property that determines if a block is the pillow
1575
- * side of a bed.
1576
- */
1577
- static readonly headPieceBit = 'head_piece_bit';
1578
- /**
1579
- * Integer property that determines the height of a top snow
1580
- * block. Valid values are between 0 and 7 inclusive.
1581
- */
1582
- static readonly height = 'height';
1583
- static readonly honeyLevel = 'honey_level';
1584
- /**
1585
- * Integer property that determines which huge mushroom block
1586
- * should be displayed. Valid values are between 0 and 15
1587
- * inclusive.
1588
- */
1589
- static readonly hugeMushroomBits = 'huge_mushroom_bits';
1590
- /**
1591
- * Boolean property that determines if a block should burn
1592
- * infinitely.
1593
- */
1594
- static readonly infiniburnBit = 'infiniburn_bit';
1595
- /**
1596
- * Boolean property that determines if a fence block is
1597
- * connected to a wall block.
1598
- */
1599
- static readonly inWallBit = 'in_wall_bit';
1600
- /**
1601
- * Boolean property that describes if an item frame block has a
1602
- * map in it.
1603
- */
1604
- static readonly itemFrameMapBit = 'item_frame_map_bit';
1605
- static readonly itemFramePhotoBit = 'item_frame_photo_bit';
1606
- static readonly kelpAge = 'kelp_age';
1607
- static readonly leverDirection = 'lever_direction';
1608
- /**
1609
- * Integer property that represents the level of liquid blocks.
1610
- * Valid values are between 0 and 15 inclusive.
1611
- */
1612
- static readonly liquidDepth = 'liquid_depth';
1613
- /**
1614
- * Boolean property that determines if a block is lit or not.
1615
- */
1616
- static readonly lit = 'lit';
1617
- /**
1618
- * Integer property that represents the moisture level of crop.
1619
- * Valid values are between 0 and 7 inclusive.
1620
- */
1621
- static readonly moisturizedAmount = 'moisturized_amount';
1622
- /**
1623
- * String property that represents the stone type of an
1624
- * Infested Stone block. Valid values are 'stone',
1625
- * 'cobblestone', 'stone_brick', 'mossy_stone_brick',
1626
- * 'cracked_stone_brick' and 'chiseled_stone_brick'.
1627
- */
1628
- static readonly monsterEggStoneType = 'monster_egg_stone_type';
1629
- static readonly multiFaceDirectionBits = 'multi_face_direction_bits';
1630
- /**
1631
- * String property that represents the leaf type of some block
1632
- * types. Valid values are 'acacia' and 'dark_oak'.
1633
- */
1634
- static readonly newLeafType = 'new_leaf_type';
1635
- /**
1636
- * String property that represents the wood type of certain
1637
- * types of blocks. Valid values are 'acacia' and 'dark_oak'.
1638
- */
1639
- static readonly newLogType = 'new_log_type';
1640
- /**
1641
- * Boolean property that determines if a skull block should
1642
- * drop loot.
1643
- */
1644
- static readonly noDropBit = 'no_drop_bit';
1645
- /**
1646
- * Boolean property that determines if a bed block is occupied.
1647
- */
1648
- static readonly occupiedBit = 'occupied_bit';
1649
- /**
1650
- * String property that represents the leaf type of some block
1651
- * types. Valid values are 'oak', 'spruce', 'birch', and
1652
- * 'jungle'.
1653
- */
1654
- static readonly oldLeafType = 'old_leaf_type';
1655
- /**
1656
- * String property that determines the wood type of certain
1657
- * types of blocks. Valid values are 'oak', 'spruce', 'birch'
1658
- * and 'jungle'.
1659
- */
1660
- static readonly oldLogType = 'old_log_type';
1661
- /**
1662
- * Boolean property that determines if a door, gate, or
1663
- * trapdoor is open.
1664
- */
1665
- static readonly openBit = 'open_bit';
1666
- /**
1667
- * Boolean property that determines if a comparator's output is
1668
- * lit.
1669
- */
1670
- static readonly outputLitBit = 'output_lit_bit';
1671
- /**
1672
- * Boolean property that determines if a comparator is set to
1673
- * subtract output.
1674
- */
1675
- static readonly outputSubtractBit = 'output_subtract_bit';
1676
- /**
1677
- * Boolean property that determines if a leaf block is
1678
- * persistent.
1679
- */
1680
- static readonly persistentBit = 'persistent_bit';
1681
- static readonly pillarAxis = 'pillar_axis';
1682
- /**
1683
- * String property that determines the orientation of portal
1684
- * blocks. Valid values include 'unknown', 'x', and 'z'.
1685
- */
1686
- static readonly portalAxis = 'portal_axis';
1687
- /**
1688
- * Boolean property that is true when an observer or tripwire
1689
- * sends a redstone signal.
1690
- */
1691
- static readonly poweredBit = 'powered_bit';
1692
- static readonly prismarineBlockType = 'prismarine_block_type';
1693
- static readonly propaguleStage = 'propagule_stage';
1694
- /**
1695
- * Boolean property that returns true if a rail has a redstone
1696
- * signal.
1697
- */
1698
- static readonly railDataBit = 'rail_data_bit';
1699
- /**
1700
- * Integer property determines the orientation of a placed rail
1701
- * block. Valid values are between 0 and 8 inclusive.
1702
- */
1703
- static readonly railDirection = 'rail_direction';
1704
- /**
1705
- * Integer property that determines the signal strength of a
1706
- * redstone signal. Valid values are between 0 and 15
1707
- * inclusive.
1708
- */
1709
- static readonly redstoneSignal = 'redstone_signal';
1710
- /**
1711
- * Integer property that represents the amount of delay of a
1712
- * repeater. Valid values are between 0 and 3 inclusive.
1713
- */
1714
- static readonly repeaterDelay = 'repeater_delay';
1715
- static readonly respawnAnchorCharge = 'respawn_anchor_charge';
1716
- static readonly rotation = 'rotation';
1717
- /**
1718
- * String property that represents the pattern of a sandstone
1719
- * block. Valid values are 'default', 'heiroglyphs', 'cut', and
1720
- * 'smooth'.
1721
- */
1722
- static readonly sandStoneType = 'sand_stone_type';
1723
- /**
1724
- * String property that represents the sand type of a block.
1725
- * Valid values are 'normal' and 'red'.
1726
- */
1727
- static readonly sandType = 'sand_type';
1728
- /**
1729
- * String property that determines the type of the sapling
1730
- * block. Valid values are 'evergreen', 'birch', 'jungle',
1731
- * 'acacia', and 'roofed_oak'.
1732
- */
1733
- static readonly saplingType = 'sapling_type';
1734
- /**
1735
- * String property that determines the type of a sea grass
1736
- * block. Valid values are 'default', 'double_top' and
1737
- * 'double_bot'.
1738
- */
1739
- static readonly seaGrassType = 'sea_grass_type';
1740
- /**
1741
- * String property that represents the type of a sponge block.
1742
- * Valid values are 'dry' and 'wet'.
1743
- */
1744
- static readonly spongeType = 'sponge_type';
1745
- /**
1746
- * Integer property that determines the stability of a
1747
- * scaffolding block. Valid values are between 0 and 5
1748
- * inclusive.
1749
- */
1750
- static readonly stability = 'stability';
1751
- /**
1752
- * Boolean property that describes if a scaffolding block has
1753
- * been checked for stability.
1754
- */
1755
- static readonly stabilityCheck = 'stability_check';
1756
- /**
1757
- * String property that determines the type of a stone brick
1758
- * block. Valid values are 'default', 'mossy', 'cracked',
1759
- * 'chiseled' and 'smooth'.
1760
- */
1761
- static readonly stoneBrickType = 'stone_brick_type';
1762
- /**
1763
- * String property that represents the type of certain types of
1764
- * stone slab blocks. Valid values are 'smooth_stone',
1765
- * 'sandstone', 'wood', 'cobblestone', 'brick', 'stone_brick',
1766
- * 'quartz' and 'nether_brick'.
1767
- */
1768
- static readonly stoneSlabType = 'stone_slab_type';
1769
- /**
1770
- * String property that represents the type of certain types of
1771
- * stone slab blocks. Valid values are 'red_sandstone',
1772
- * 'purpur', 'prismarine_rough', 'prismarine_dark',
1773
- * 'prismarine_brick', 'mossy_cobblestone', 'smooth_sandstone'
1774
- * and 'red_nether_brick'.
1775
- */
1776
- static readonly stoneSlabType2 = 'stone_slab_type_2';
1777
- /**
1778
- * String property that represents the type of certain types of
1779
- * stone slab blocks. Valid values are 'end_stone_brick',
1780
- * 'smooth_red_sandstone', 'polished_andesite', 'andesite',
1781
- * 'diorite', 'polished_diorite', 'granite', and
1782
- * 'polished_granite'.
1783
- */
1784
- static readonly stoneSlabType3 = 'stone_slab_type_3';
1785
- /**
1786
- * String property that represents the type of certain types of
1787
- * stone slab blocks. Valid values are 'mossy_stone_brick',
1788
- * 'smooth_quartz', 'stone', 'cut_sandstone', and
1789
- * 'cut_red_sandstone'.
1790
- */
1791
- static readonly stoneSlabType4 = 'stone_slab_type_4';
1792
- /**
1793
- * String property that determines the type of a stone block.
1794
- * Valid values are 'stone', 'granite', 'granite_smooth',
1795
- * 'diorite', 'diorite_smooth', 'andesite', and
1796
- * 'andesite_smooth'.
1797
- */
1798
- static readonly stoneType = 'stone_type';
1799
- /**
1800
- * Boolean property that represents if a wood log has been
1801
- * stripped of bark.
1802
- */
1803
- static readonly strippedBit = 'stripped_bit';
1804
- /**
1805
- * String property that represents the state of a structure
1806
- * block. Valid values are 'data', 'save', 'load', 'corner',
1807
- * 'invalid' and 'export'.
1808
- */
1809
- static readonly structureBlockType = 'structure_block_type';
1810
- /**
1811
- * String property that determines which void mode to draw for
1812
- * structure blocks. Valid values are 'void' and 'air'.
1813
- */
1814
- static readonly structureVoidType = 'structure_void_type';
1815
- /**
1816
- * Boolean property that indicates if a tripwire block is
1817
- * suspended.
1818
- */
1819
- static readonly suspendedBit = 'suspended_bit';
1820
- /**
1821
- * String property that represents the type of a tall grass
1822
- * block. Valid values are 'default', 'tall', 'fern', and
1823
- * 'snow'.
1824
- */
1825
- static readonly tallGrassType = 'tall_grass_type';
1826
- /**
1827
- * Boolean property that determines if a hopper block is active
1828
- * or not.
1829
- */
1830
- static readonly toggleBit = 'toggle_bit';
1831
- /**
1832
- * Boolean property that determines if a slab is the top half
1833
- * of the block or not
1834
- */
1835
- static readonly topSlotBit = 'top_slot_bit';
1836
- /**
1837
- * String property that determines the direction of a torch in
1838
- * relation to the block it is attached to. Valid values are
1839
- * 'unknown', 'west', 'east', 'north', 'south', 'top'.
1840
- */
1841
- static readonly torchFacingDirection = 'torch_facing_direction';
1842
- /**
1843
- * Boolean property that determines if a dispenser is
1844
- * triggered.
1845
- */
1846
- static readonly triggeredBit = 'triggered_bit';
1847
- /**
1848
- * String property that represents the amount of turtle eggs in
1849
- * an egg block. Valid values are 'one_egg', 'two_egg',
1850
- * 'three_egg' and 'four_egg'.
1851
- */
1852
- static readonly turtleEggCount = 'turtle_egg_count';
1853
- static readonly twistingVinesAge = 'twisting_vines_age';
1854
- /**
1855
- * Boolean property that determines if a leaf block or flower
1856
- * block should be updated.
1857
- */
1858
- static readonly updateBit = 'update_bit';
1859
- /**
1860
- * Boolean property that determines if a block is the upper
1861
- * half of an object like a door or a tall plant.
1862
- */
1863
- static readonly upperBlockBit = 'upper_block_bit';
1864
- /**
1865
- * Boolean property that determines if a stair block or
1866
- * trapdoor block is upside-down.
1867
- */
1868
- static readonly upsideDownBit = 'upside_down_bit';
1869
- /**
1870
- * Integer property that represents the facing direction for
1871
- * vines. Valid values are between 0 and 15 inclusive.
1872
- */
1873
- static readonly vineDirectionBits = 'vine_direction_bits';
1874
- /**
1875
- * String property that represents the type of stone used in a
1876
- * wall block. Valid values are 'cobblestone',
1877
- * 'mossy_cobblestone', 'granite', 'diorite', 'andesite',
1878
- * 'sandstone', 'brick', 'stone_brick', 'mossy_stone_brick',
1879
- * 'nether_brick', 'end_brick', 'prismarine', 'red_sandstone'
1880
- * and 'red_nether_brick'.
1881
- */
1882
- static readonly wallBlockType = 'wall_block_type';
1883
- /**
1884
- * String property that determines what kind of connection a
1885
- * wall has to the east. Valid values are 'none', 'short' and
1886
- * 'tall'.
1887
- */
1888
- static readonly wallConnectionTypeEast = 'wall_connection_type_east';
1889
- /**
1890
- * String property that determines what kind of connection a
1891
- * wall has to the north. Valid values are 'none', 'short' and
1892
- * 'tall'.
1893
- */
1894
- static readonly wallConnectionTypeNorth = 'wall_connection_type_north';
1895
- /**
1896
- * String property that determines what kind of connection a
1897
- * wall has to the south. Valid values are 'none', 'short' and
1898
- * 'tall'.
1899
- */
1900
- static readonly wallConnectionTypeSouth = 'wall_connection_type_south';
1901
- /**
1902
- * String property that determines what kind of connection a
1903
- * wall has to the west. Valid values are 'none', 'short' and
1904
- * 'tall'.
1905
- */
1906
- static readonly wallConnectionTypeWest = 'wall_connection_type_west';
1907
- /**
1908
- * Boolean property that determines if a wall should contain a
1909
- * post.
1910
- */
1911
- static readonly wallPostBit = 'wall_post_bit';
1912
- static readonly weepingVinesAge = 'weeping_vines_age';
1913
- /**
1914
- * Integer property that represents the rotation of stairs.
1915
- * Valid values are between 0 and 3 inclusive.
1916
- */
1917
- static readonly weirdoDirection = 'weirdo_direction';
1918
- /**
1919
- * String property that determines the wood type of a block.
1920
- * Valid values are 'oak', 'spruce', 'birch', 'jungle',
1921
- * 'acacia', and 'dark_oak'.
1922
- */
1923
- 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)[];
1924
1336
  }
1925
1337
  /**
1926
1338
  * @beta
@@ -2023,15 +1435,6 @@ export class BlockType {
2023
1435
  * Block type name - for example, `minecraft:acacia_stairs`.
2024
1436
  */
2025
1437
  readonly id: string;
2026
- /**
2027
- * @remarks
2028
- * Creates the default {@link BlockPermutation} for this type
2029
- * which uses the default values for all properties.
2030
- * @returns
2031
- * Returns created permutation.
2032
- * @throws This function can throw errors.
2033
- */
2034
- createDefaultBlockPermutation(): BlockPermutation;
2035
1438
  }
2036
1439
  /**
2037
1440
  * @beta
@@ -2066,28 +1469,6 @@ export class BlockWaterContainerComponent extends BlockComponent {
2066
1469
  getCustomColor(): Color;
2067
1470
  setCustomColor(color: Color): void;
2068
1471
  }
2069
- /**
2070
- * @beta
2071
- * Contains the state of a boolean-based property for a {@link
2072
- * BlockPermutation}.
2073
- */
2074
- export class BoolBlockProperty extends IBlockProperty {
2075
- protected constructor();
2076
- /**
2077
- * The name of this property.
2078
- */
2079
- readonly name: string;
2080
- /**
2081
- * The current value of this property.
2082
- * @throws
2083
- * Setting this property can throw if the value passed is not
2084
- * valid for the property. Use {@link
2085
- * @minecraft/server.BoolBlockProperty.validValues} to check
2086
- * allowed values.
2087
- */
2088
- value: boolean;
2089
- getValidValues(): boolean[];
2090
- }
2091
1472
  /**
2092
1473
  * @beta
2093
1474
  * Contains information related to changes to a button push.
@@ -2544,8 +1925,7 @@ export class Dimension {
2544
1925
  * defined via the EntityQueryOptions set of filter criteria.
2545
1926
  * @param getEntities
2546
1927
  * @returns
2547
- * An entity iterator that can be used to loop over the
2548
- * returned entities.
1928
+ * An entity array.
2549
1929
  * @throws This function can throw errors.
2550
1930
  * @example testThatEntityIsFeatherItem.ts
2551
1931
  * ```typescript
@@ -2597,8 +1977,7 @@ export class Dimension {
2597
1977
  * defined via the EntityQueryOptions set of filter criteria.
2598
1978
  * @param getPlayers
2599
1979
  * @returns
2600
- * An entity iterator that can be used to loop over the
2601
- * returned players.
1980
+ * A player array.
2602
1981
  * @throws This function can throw errors.
2603
1982
  */
2604
1983
  getPlayers(getPlayers?: EntityQueryOptions): PlayerIterator;
@@ -2727,7 +2106,7 @@ export class Dimension {
2727
2106
  * For block properties that take a direction, provides a
2728
2107
  * structured way to specify the direction of a block property.
2729
2108
  */
2730
- export class DirectionBlockProperty extends IBlockProperty {
2109
+ export class DirectionBlockProperty {
2731
2110
  protected constructor();
2732
2111
  /**
2733
2112
  * Name of the property.
@@ -5436,7 +4815,19 @@ export class EntityRideableComponent extends IEntityComponent {
5436
4815
  * @throws This function can throw errors.
5437
4816
  */
5438
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
+ */
5439
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
+ */
5440
4831
  getSeats(): Seat[];
5441
4832
  }
5442
4833
  /**
@@ -6034,18 +5425,6 @@ export class FluidContainer {
6034
5425
  */
6035
5426
  static readonly minFillLevel = 0;
6036
5427
  }
6037
- /**
6038
- * @beta
6039
- * Contains an interface for defining the state of a property
6040
- * for a {@link BlockPermutation}.
6041
- */
6042
- export class IBlockProperty {
6043
- protected constructor();
6044
- /**
6045
- * The name of this property.
6046
- */
6047
- readonly name: string;
6048
- }
6049
5428
  /**
6050
5429
  * @beta
6051
5430
  * Base interface that defines components associated with an
@@ -6058,28 +5437,6 @@ export class IEntityComponent {
6058
5437
  */
6059
5438
  readonly typeId: string;
6060
5439
  }
6061
- /**
6062
- * @beta
6063
- * Contains the state of an integer-based property for a {@link
6064
- * BlockPermutation}.
6065
- */
6066
- export class IntBlockProperty extends IBlockProperty {
6067
- protected constructor();
6068
- /**
6069
- * The name of this property.
6070
- */
6071
- readonly name: string;
6072
- /**
6073
- * The current value of this property.
6074
- * @throws
6075
- * Setting this property can throw if the value passed is not
6076
- * valid for the property. Use {@link
6077
- * @minecraft/server.IntBlockProperty.validValues} to check
6078
- * allowed values.
6079
- */
6080
- value: number;
6081
- getValidValues(): number[];
6082
- }
6083
5440
  /**
6084
5441
  * @beta
6085
5442
  * Represents a container that can hold stacks of items. Used
@@ -7627,6 +6984,7 @@ export class MinecraftBlockTypes {
7627
6984
  * Represents a dead bush within Minecraft.
7628
6985
  */
7629
6986
  static readonly deadbush: BlockType;
6987
+ static readonly decoratedPot: BlockType;
7630
6988
  /**
7631
6989
  * Represents a block of deepslate within Minecraft.
7632
6990
  */
@@ -9668,6 +9026,7 @@ export class MinecraftBlockTypes {
9668
9026
  * Represents a structure void within Minecraft.
9669
9027
  */
9670
9028
  static readonly structureVoid: BlockType;
9029
+ static readonly suspiciousSand: BlockType;
9671
9030
  /**
9672
9031
  * Represents a sweet berry bush within Minecraft.
9673
9032
  */
@@ -9692,6 +9051,8 @@ export class MinecraftBlockTypes {
9692
9051
  * Represents a torch within Minecraft.
9693
9052
  */
9694
9053
  static readonly torch: BlockType;
9054
+ static readonly torchflower: BlockType;
9055
+ static readonly torchflowerCrop: BlockType;
9695
9056
  /**
9696
9057
  * Represents a trapdoor within Minecraft.
9697
9058
  */
@@ -14032,28 +13393,6 @@ export class ServerMessageSignal {
14032
13393
  */
14033
13394
  unsubscribe(callback: (arg: MessageReceiveEvent) => void): void;
14034
13395
  }
14035
- /**
14036
- * @beta
14037
- * Contains the state of a string-based property for a {@link
14038
- * BlockPermutation}.
14039
- */
14040
- export class StringBlockProperty extends IBlockProperty {
14041
- protected constructor();
14042
- /**
14043
- * Name of this property.
14044
- */
14045
- readonly name: string;
14046
- /**
14047
- * The current value of this property.
14048
- * @throws
14049
- * Setting this property can throw if the value passed is not
14050
- * valid for the property. Use {@link
14051
- * @minecraft/server.StringBlockProperty.validValues} to check
14052
- * allowed values.
14053
- */
14054
- value: string;
14055
- getValidValues(): string[];
14056
- }
14057
13396
  /**
14058
13397
  * A class that provides system-level events and functions.
14059
13398
  */
@@ -14428,10 +13767,13 @@ export class World {
14428
13767
  /**
14429
13768
  * @beta
14430
13769
  * @remarks
14431
- * Returns all players currently in the world.
13770
+ * Returns a set of players based on a set of conditions
13771
+ * defined via the EntityQueryOptions set of filter criteria.
14432
13772
  * @param options
13773
+ * Additional options that can be used to filter the set of
13774
+ * players returned.
14433
13775
  * @returns
14434
- * All players currently in the world.
13776
+ * A player array.
14435
13777
  * @throws This function can throw errors.
14436
13778
  */
14437
13779
  getPlayers(options?: EntityQueryOptions): PlayerIterator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "1.1.0-beta.1.19.70-preview.22",
3
+ "version": "1.1.0-beta.1.19.70-preview.23",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {