Creates a new block clipboard.
The ID of the block clipboard, must be unique, cannot contain commas, cannot be global.
The structure IDs of all of the saves of this undo clipboard.
The newest save time, or undefined if there are no saves.
The saves of this undo clipboard.
The save times of this undo clipboard.
Removes all items from this undo clipboard.
Removes all items from this undo clipboard with the specified timestamp.
The timestamp of the save to remove.
Removes all items from this undo clipboard that do not have a corresponding structure.
Gets the location and dimension of the specified save of this undo clipboard.
The timestamp of the save to get the location of.
The location and dimension of the specified save of this undo clipboard.
Gets the size of this undo clipboard.
The timestamp of the save to get the size of.
The size of this undo clipboard.
Saves the specified area to this undo clipboard.
The dimension of the area to save to the clipboard.
The area to save to the clipboard.
OptionalsaveTime: number = ...The time that the action this undo is for took place.
Optionaloptions: StructureCreateOptionsThe options to save the area to the clipboard with.
OptionalsizeLimits: Vector3 = ...The maximum size of the area to save to the clipboard.
The structure IDs of the specified save of this undo clipboard.
The timestamp of the save to get the structure IDs of.
The structure IDs of the specified save of this undo clipboard.
Optionaloptions: StructureCreateOptionsUndoes the action saved at the specified time.
OptionalsaveTime: number = ...The time that the action this undo is for took place. Defaults to the newest save.
Optionaloptions: StructurePlaceOptionsThe options to undo the action with.
OptionalclearSave: boolean = trueWhether to clear the save after undoing it. Defaults to true.
Optionalsizes: Vector3 = ...The sizes of the chunks of the clipboard. Defaults to { x: 64, y: 128, z: 64 }.
1 if the action was undone, 0 if the action was not found.
Undoes the action saved at the specified time asynchronously.
OptionalsaveTime: number = ...The time that the action this undo is for took place. Defaults to the newest save.
Optionaloptions: StructurePlaceOptionsThe options to undo the action with.
OptionalclearSave: boolean = trueWhether to clear the save after undoing it. Defaults to true.
Optionalsizes: Vector3 = ...The sizes of the chunks of the clipboard. Defaults to { x: 64, y: 128, z: 64 }.
OptionalminMSBetweenTickWaits: number = config.system.defaultMinMSBetweenTickWaitsThe minimum number of milliseconds between tick waits. Defaults to config.system.defaultMinMSBetweenTickWaits.
A promise that resolves to 1 if the action was undone or 0 if the action was not found.
StaticclearClears the contents of all undo clipboards.
StaticcullRemoves all items from all undo clipboards that do not have a corresponding structure.
StaticgetGets all undo clipboard IDs.
An array of all of this undo clipboard IDs.
StaticgetGets all undo clipboards.
An array of all of this undo clipboards.
StaticgetGets an undo clipboard by its ID.
If this undo clipboard does not exist, it will be created.
The ID of this undo clipboard, must be unique, cannot contain commas.
this undo clipboard.
StaticgetGets undo clipboards by their IDs.
The IDs of this undo clipboards to get.
An array of this undo clipboards with the specified IDs.
StaticgetGets all save times from all undo clipboards.
An array of all save times from all undo clipboards.
StaticundoUndoes the last action on all undo clipboards.
Optionaloptions: StructurePlaceOptionsThe options to undo the action with.
OptionalclearSave: boolean = trueWhether to clear the save after undoing it. Defaults to true.
Optionalsizes: Vector3 = ...The sizes of the chunks of the clipboard. Defaults to { x: 64, y: 128, z: 64 }.
1 if the action was undone, 0 if the action was not found.
StaticundoUndoes the last action from any of the undo clipboards asynchronously.
Optionaloptions: StructurePlaceOptionsThe options to undo the action with.
OptionalclearSave: boolean = trueWhether to clear the save after undoing it. Defaults to true.
Optionalsizes: Vector3 = ...The sizes of the chunks of the clipboard. Defaults to { x: 64, y: 128, z: 64 }.
OptionalminMSBetweenTickWaits: number = config.system.defaultMinMSBetweenTickWaitsThe minimum number of milliseconds between tick waits. Defaults to config.system.defaultMinMSBetweenTickWaits.
A promise that resolves to 1 if the action was undone or 0 if the action was not found.
Stores WorldEdit undo history for the
\\undocommand.