Constructors
constructor
Properties
Readonly
player
Accessors
dimension
set dimension(value: string | Dimension): void Returns void
maxPos
minPos
pos1
Returns void
pos2
Returns void
Methods
getSavedSelection
getSavedSelection( selectionID: string,): { dimension: | "minecraft:overworld" | "minecraft:nether" | "minecraft:the_end"; pos1: Vector3; pos2: Vector3;} Returns {
dimension:
| "minecraft:overworld"
| "minecraft:nether"
| "minecraft:the_end";
pos1: Vector3;
pos2: Vector3;
}
getSavedSelectionIds
getSavedSelectionIds(): string[] Returns string[]
getSavedSelections
getSavedSelections(): { [selectionID: string]: { dimension: | "minecraft:overworld" | "minecraft:nether" | "minecraft:the_end"; pos1: Vector3; pos2: Vector3; };} Returns {
[selectionID: string]: {
dimension:
| "minecraft:overworld"
| "minecraft:nether"
| "minecraft:the_end";
pos1: Vector3;
pos2: Vector3;
};
}
removeSavedSelection
removeSavedSelection(selectionID: string): boolean Returns boolean
saveSelection
saveSelection( selectionID: string, value?: { dimension: | "minecraft:overworld" | "minecraft:nether" | "minecraft:the_end"; pos1: Vector3; pos2: Vector3; },): void Parameters
- selectionID: string
- value: {
dimension:
| "minecraft:overworld"
| "minecraft:nether"
| "minecraft:the_end";
pos1: Vector3;
pos2: Vector3;
} = ...
Returns void
toJSON
toJSON(): { dimension: string; maxPos: Vector3; minPos: Vector3; pos1: Vector3; pos2: Vector3; savedSelections: { [selectionID: string]: { dimension: | "minecraft:overworld" | "minecraft:nether" | "minecraft:the_end"; pos1: Vector3; pos2: Vector3; }; };} Returns {
dimension: string;
maxPos: Vector3;
minPos: Vector3;
pos1: Vector3;
pos2: Vector3;
savedSelections: {
[selectionID: string]: {
dimension:
| "minecraft:overworld"
| "minecraft:nether"
| "minecraft:the_end";
pos1: Vector3;
pos2: Vector3;
};
};
}
The currently selected dimension.
It is stored in the player's
posD
dynamic property.