تحرير

مشاركة عبر


DebugDrawer Class

Debug Drawing class used to allow adding and removing wireframe shapes in world space.

Methods

addShape

addShape(shape: DebugShape, dimension?: minecraftserver.Dimension): void

Adds a new debug shape to the world.

Parameters

  • shape: DebugShape

    The debug shape to be added. Should be of type DebugBox, DebugLine, DebugCircle, DebugSphere, DebugArrow or DebugText.

  • dimension?: @minecraft/server.Dimension = null

removeAll

removeAll(): void

Removes all debug shapes from the world.

removeShape

removeShape(shape: DebugShape): void

Removes an instance of a debug shape from the world. This is equivalent to calling remove on the shape itself.

Parameters