@minecraft/server-editor 0.1.0-beta.1.21.80-preview.20 → 0.1.0-beta.1.21.80-preview.22
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 +69 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export declare enum ContinuousActionState {
|
|
|
118
118
|
*/
|
|
119
119
|
export declare enum CoreActionBarItemType {
|
|
120
120
|
Export = 'editor:actionBarItem:export',
|
|
121
|
+
Fill = 'editor:actionBarItem:fill',
|
|
121
122
|
Locate = 'editor:actionBarItem:locate',
|
|
122
123
|
Playtest = 'editor:actionBarItem:playtest',
|
|
123
124
|
Realms = 'editor:actionBarItem:realms',
|
|
@@ -1640,6 +1641,30 @@ export class BlockUtilities {
|
|
|
1640
1641
|
* {@link Error}
|
|
1641
1642
|
*/
|
|
1642
1643
|
getFacePreviewSelection(properties?: QuickExtrudeProperties): minecraftserver.ListBlockVolume;
|
|
1644
|
+
/**
|
|
1645
|
+
* @remarks
|
|
1646
|
+
* This function can't be called in read-only mode.
|
|
1647
|
+
*
|
|
1648
|
+
*/
|
|
1649
|
+
getMaxWorldLocation(): minecraftserver.Vector3;
|
|
1650
|
+
/**
|
|
1651
|
+
* @remarks
|
|
1652
|
+
* This function can't be called in read-only mode.
|
|
1653
|
+
*
|
|
1654
|
+
*/
|
|
1655
|
+
getMinWorldLocation(): minecraftserver.Vector3;
|
|
1656
|
+
/**
|
|
1657
|
+
* @remarks
|
|
1658
|
+
* This function can't be called in read-only mode.
|
|
1659
|
+
*
|
|
1660
|
+
*/
|
|
1661
|
+
isLocationInWorld(
|
|
1662
|
+
locationOrVolumeOrBounds:
|
|
1663
|
+
| minecraftserver.BlockVolumeBase
|
|
1664
|
+
| minecraftserver.BoundingBox
|
|
1665
|
+
| RelativeVolumeListBlockVolume
|
|
1666
|
+
| minecraftserver.Vector3,
|
|
1667
|
+
): boolean;
|
|
1643
1668
|
/**
|
|
1644
1669
|
* @remarks
|
|
1645
1670
|
* This function can't be called in read-only mode.
|
|
@@ -1647,6 +1672,29 @@ export class BlockUtilities {
|
|
|
1647
1672
|
* @throws This function can throw errors.
|
|
1648
1673
|
*/
|
|
1649
1674
|
quickExtrude(properties?: QuickExtrudeProperties): void;
|
|
1675
|
+
/**
|
|
1676
|
+
* @remarks
|
|
1677
|
+
* This function can't be called in read-only mode.
|
|
1678
|
+
*
|
|
1679
|
+
*/
|
|
1680
|
+
shrinkWrapVolume(
|
|
1681
|
+
volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
|
|
1682
|
+
): RelativeVolumeListBlockVolume;
|
|
1683
|
+
/**
|
|
1684
|
+
* @remarks
|
|
1685
|
+
* This function can't be called in read-only mode.
|
|
1686
|
+
*
|
|
1687
|
+
* @throws This function can throw errors.
|
|
1688
|
+
*
|
|
1689
|
+
* {@link Error}
|
|
1690
|
+
*/
|
|
1691
|
+
trimVolumeToFitContents(
|
|
1692
|
+
volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
|
|
1693
|
+
retainMarqueeAfterTrimming: boolean,
|
|
1694
|
+
ignoreLiquid: boolean,
|
|
1695
|
+
ignoreNoCollision: boolean,
|
|
1696
|
+
blockMask?: BlockMaskList,
|
|
1697
|
+
): RelativeVolumeListBlockVolume;
|
|
1650
1698
|
}
|
|
1651
1699
|
|
|
1652
1700
|
/**
|
|
@@ -2168,6 +2216,13 @@ export declare class CylinderBrushShape extends BrushShape {
|
|
|
2168
2216
|
createShape(): RelativeVolumeListBlockVolume;
|
|
2169
2217
|
}
|
|
2170
2218
|
|
|
2219
|
+
export class EditorConstants {
|
|
2220
|
+
private constructor();
|
|
2221
|
+
readonly maxSelectionSize: minecraftserver.Vector3;
|
|
2222
|
+
readonly maxStructureOffset: minecraftserver.Vector3;
|
|
2223
|
+
readonly minStructureOffset: minecraftserver.Vector3;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2171
2226
|
export class EditorStructureManager {
|
|
2172
2227
|
private constructor();
|
|
2173
2228
|
/**
|
|
@@ -2604,6 +2659,7 @@ export class Logger {
|
|
|
2604
2659
|
*/
|
|
2605
2660
|
export class MinecraftEditor {
|
|
2606
2661
|
private constructor();
|
|
2662
|
+
readonly constants: EditorConstants;
|
|
2607
2663
|
/**
|
|
2608
2664
|
* @remarks
|
|
2609
2665
|
* A global instance of the log output class object. This is
|
|
@@ -4556,20 +4612,29 @@ export interface GameOptions {
|
|
|
4556
4612
|
bonusChest?: boolean;
|
|
4557
4613
|
cheats?: boolean;
|
|
4558
4614
|
commandBlockEnabled?: boolean;
|
|
4615
|
+
commandBlockOutput?: boolean;
|
|
4559
4616
|
daylightCycle?: DaylightCycle;
|
|
4560
4617
|
difficulty?: minecraftserver.Difficulty;
|
|
4561
4618
|
dimensionId?: string;
|
|
4562
4619
|
disableWeather?: boolean;
|
|
4620
|
+
drowningDamage?: boolean;
|
|
4563
4621
|
educationEdition?: boolean;
|
|
4564
4622
|
entitiesDropLoot?: boolean;
|
|
4565
4623
|
exportType?: ProjectExportType;
|
|
4624
|
+
fallDamage?: boolean;
|
|
4625
|
+
fireDamage?: boolean;
|
|
4566
4626
|
fireSpreads?: boolean;
|
|
4627
|
+
freezeDamage?: boolean;
|
|
4567
4628
|
friendlyFire?: boolean;
|
|
4629
|
+
functionCommandLimit?: number;
|
|
4568
4630
|
gameMode?: minecraftserver.GameMode;
|
|
4569
4631
|
hardcore?: boolean;
|
|
4570
4632
|
immediateRespawn?: boolean;
|
|
4633
|
+
insomnia?: boolean;
|
|
4571
4634
|
keepInventory?: boolean;
|
|
4572
4635
|
lanVisibility?: boolean;
|
|
4636
|
+
limitedCrafting?: boolean;
|
|
4637
|
+
maxCommandChainLength?: number;
|
|
4573
4638
|
mobGriefing?: boolean;
|
|
4574
4639
|
mobLoot?: boolean;
|
|
4575
4640
|
mobSpawning?: boolean;
|
|
@@ -4581,8 +4646,12 @@ export interface GameOptions {
|
|
|
4581
4646
|
recipeUnlocking?: boolean;
|
|
4582
4647
|
respawnBlocksExplode?: boolean;
|
|
4583
4648
|
respawnRadius?: number;
|
|
4649
|
+
sendCommandFeedback?: boolean;
|
|
4650
|
+
showBorderEffect?: boolean;
|
|
4584
4651
|
showCoordinates?: boolean;
|
|
4585
4652
|
showDaysPlayed?: boolean;
|
|
4653
|
+
showDeathMessage?: boolean;
|
|
4654
|
+
showItemTags?: boolean;
|
|
4586
4655
|
simulationDistance?: number;
|
|
4587
4656
|
sleepSkipPercent?: number;
|
|
4588
4657
|
spawnPosition?: minecraftserver.Vector3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.21.80-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.21.80-preview.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.0.0-beta.1.21.80-preview.
|
|
17
|
+
"@minecraft/server": "^2.0.0-beta.1.21.80-preview.22"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|