Widget
¶
文档版本:1.21.60.21
Widget
类。script_api.minecraft/server-editor-bindings.widget.description
属性¶
bindPositionToBlockCursor
bindPositionToBlockCursor
:boolean
- script_api.minecraft/server-editor-bindings.widget.bindpositiontoblockcursor.description
collisionOffset
collisionOffset
:Vector3
- script_api.minecraft/server-editor-bindings.widget.collisionoffset.description
collisionRadius
collisionRadius
:float
- script_api.minecraft/server-editor-bindings.widget.collisionradius.description
location
location
:Vector3
- script_api.minecraft/server-editor-bindings.widget.location.description
lockPositionToSurface
lockPositionToSurface
:boolean
- script_api.minecraft/server-editor-bindings.widget.lockpositiontosurface.description
selectable
selectable
:boolean
- script_api.minecraft/server-editor-bindings.widget.selectable.description
selected
selected
:boolean
- script_api.minecraft/server-editor-bindings.widget.selected.description
showBoundingBox
showBoundingBox
:boolean
- script_api.minecraft/server-editor-bindings.widget.showboundingbox.description
showCollisionRadius
showCollisionRadius
:boolean
- script_api.minecraft/server-editor-bindings.widget.showcollisionradius.description
snapToBlockLocation
snapToBlockLocation
:boolean
- script_api.minecraft/server-editor-bindings.widget.snaptoblocklocation.description
visible
visible
:boolean
- script_api.minecraft/server-editor-bindings.widget.visible.description
方法¶
addClipboardComponent
script_api.minecraft/server-editor-bindings.widget.addclipboardcomponent.description
addClipboardComponent(componentName: string, clipboardItem?: ClipboardItem, options?: WidgetComponentClipboardOptions): WidgetComponentClipboard
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.addclipboardcomponent.componentname.description
clipboardItem
?:ClipboardItem
=null
- script_api.minecraft/server-editor-bindings.widget.addclipboardcomponent.clipboarditem.description
addEntityComponent
script_api.minecraft/server-editor-bindings.widget.addentitycomponent.description
addEntityComponent(componentName: string, actorNameId: string, options?: WidgetComponentEntityOptions): WidgetComponentEntity
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.addentitycomponent.componentname.description
actorNameId
:string
- script_api.minecraft/server-editor-bindings.widget.addentitycomponent.actornameid.description
addGizmoComponent
script_api.minecraft/server-editor-bindings.widget.addgizmocomponent.description
addGizmoComponent(componentName: string, options?: WidgetComponentGizmoOptions): WidgetComponentGizmo
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.addgizmocomponent.componentname.description
options
?:WidgetComponentGizmoOptions
=null
- script_api.minecraft/server-editor-bindings.widget.addgizmocomponent.options.description
addGuideComponent
script_api.minecraft/server-editor-bindings.widget.addguidecomponent.description
addGuideComponent(componentName: string, options?: WidgetComponentGuideOptions): WidgetComponentGuide
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.addguidecomponent.componentname.description
options
?:WidgetComponentGuideOptions
=null
- script_api.minecraft/server-editor-bindings.widget.addguidecomponent.options.description
addRenderPrimitiveComponent
script_api.minecraft/server-editor-bindings.widget.addrenderprimitivecomponent.description
addRenderPrimitiveComponent(componentName: string, primitiveType: WidgetComponentRenderPrimitiveTypeAxialSphere | WidgetComponentRenderPrimitiveTypeBox | WidgetComponentRenderPrimitiveTypeDisc | WidgetComponentRenderPrimitiveTypeLine, options?: WidgetComponentRenderPrimitiveOptions): WidgetComponentRenderPrimitive
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.addrenderprimitivecomponent.componentname.description
primitiveType
:WidgetComponentRenderPrimitiveTypeAxialSphere
|WidgetComponentRenderPrimitiveTypeBox
|WidgetComponentRenderPrimitiveTypeDisc
|WidgetComponentRenderPrimitiveTypeLine
- script_api.minecraft/server-editor-bindings.widget.addrenderprimitivecomponent.primitivetype.description
addSplineComponent
script_api.minecraft/server-editor-bindings.widget.addsplinecomponent.description
addSplineComponent(componentName: string, options?: WidgetComponentSplineOptions): WidgetComponentSpline
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.addsplinecomponent.componentname.description
addTextComponent
script_api.minecraft/server-editor-bindings.widget.addtextcomponent.description
addTextComponent(componentName: string, label: string, options?: WidgetComponentTextOptions): WidgetComponentText
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.addtextcomponent.componentname.description
label
:string
- script_api.minecraft/server-editor-bindings.widget.addtextcomponent.label.description
options
?:WidgetComponentTextOptions
=null
- script_api.minecraft/server-editor-bindings.widget.addtextcomponent.options.description
delete
script_api.minecraft/server-editor-bindings.widget.delete.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.widget.delete.return
deleteComponent
script_api.minecraft/server-editor-bindings.widget.deletecomponent.description
componentOrName
:string
|WidgetComponentBase
- script_api.minecraft/server-editor-bindings.widget.deletecomponent.componentorname.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.widget.deletecomponent.return
getComponent
script_api.minecraft/server-editor-bindings.widget.getcomponent.description
componentName
:string
- script_api.minecraft/server-editor-bindings.widget.getcomponent.componentname.description
getComponents
script_api.minecraft/server-editor-bindings.widget.getcomponents.description
setStateChangeEvent
script_api.minecraft/server-editor-bindings.widget.setstatechangeevent.description
eventFunction
?:(WidgetStateChangeEventData) => void
=null
- script_api.minecraft/server-editor-bindings.widget.setstatechangeevent.eventfunction.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.widget.setstatechangeevent.return