The PrimitiveShapesManager class in @minecraft/server.
Class in @minecraft/server
import { PrimitiveShapesManager } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”maxShapes
Section titled “maxShapes”read-only
readonly maxShapes: number;Methods
Section titled “Methods”addText
Section titled “addText”addText(text: TextPrimitive, dimension?: Dimension): void;Parameters
textTextPrimitivedimensionoptionalDimension
getShapes
Section titled “getShapes”getShapes(options?: PrimitiveShapeQueryOptions): PrimitiveShape[];Parameters
optionsoptionalPrimitiveShapeQueryOptions
Returns
PrimitiveShape[]removeAll
Section titled “removeAll”removeAll(): void;removeText
Section titled “removeText”removeText(text: TextPrimitive): void;Parameters
textTextPrimitive
Types