Static
contentsThe size of the contents of the global block clipboard.
If the block clipboard is empty, this will be { x: -1, y: -1, z: -1 }
.
Static
contentsThe sizes of the chunks of the contents of this block clipboard.
When the block clipboard is empty, this will be { x: 64, y: 128, z: 64 }
.
Static
idsThe structure IDs of the contents of the global block clipboard.
Static
isWhether the global block clipboard is empty.
Static
clearClears the contents of the global block clipboard.
Static
copyCopies the specified area to the global block clipboard.
The dimension of the area to copy to the clipboard.
The area to copy to the clipboard.
Optional
options: StructureCreateOptionsThe options to copy the area to the clipboard with.
Optional
sizeLimits: Vector3 = ...The sizes of the chunks of the clipboard. Defaults to { x: 64, y: 128, z: 64 }
.
Static
copyCopies the specified range of blocks to the global block clipboard.
The dimension of the area to copy to the clipboard.
The area to copy to the clipboard.
Optional
options: StructureCreateOptionsThe options to copy the to the clipboard with.
Static
deleteStatic
getStatic
getGets the structure that contains the specified position in the clipboard contents.
The position to get the structure for.
The structure that contains the specified position in the clipboard contents, or undefined
if no structure is found containing the specified position.
Static
pastePastes the contents of this block clipboard.
The location to paste the contents of the clipboard.
Optional
options: StructurePlaceOptionsThe options to paste the contents of the clipboard with.
Optional
sizes: Vector3 = ...The sizes of the chunks of the clipboard. Defaults to GlobalBlockClipboard.contentsSizeLimits.
Static
pastePastes the contents of this block clipboard.
The location to paste the contents of the clipboard.
Optional
options: StructurePlaceOptionsThe options to paste the contents of the clipboard with.
Optional
sizes: Vector3 = ...The sizes of the chunks of the clipboard. Defaults to GlobalBlockClipboard.contentsSizeLimits.
Optional
minMSBetweenTickWaits: number = config.system.defaultMinMSBetweenTickWaitsThe minimum number of milliseconds between tick waits. Defaults to config.system.defaultMinMSBetweenTickWaits.
A promise that resolves when the contents of the clipboard have been pasted.
The global block clipboard.
See
BlockClipboard