跳转至

DataStoreModalToolContainer

文档版本:1.21.60.21

DataStoreModalToolContainer类。script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.description

属性

toolActivationChanged
read-only toolActivationChanged: DataStoreModalToolActivationChangedEventSignal;

方法

getSelectedTool

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.getselectedtool.description

getSelectedTool(): string | undefined
getToolPayload

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.gettoolpayload.description

getToolPayload(id: string): string
getToolProperty

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.gettoolproperty.description

getToolProperty(id: string, property: string): boolean | float | string | undefined
hasToolPayload

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.hastoolpayload.description

hasToolPayload(id: string): boolean
hasToolProperty

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.hastoolproperty.description

hasToolProperty(id: string, property: string): boolean
registerTool

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.registertool.description

registerTool(id: string, payload: string): void
unregisterTool

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.unregistertool.description

unregisterTool(id: string): void
updateRegisteredTool

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.updateregisteredtool.description

updateRegisteredTool(id: string, payload: string): void
updateRegisteredToolProperty

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.updateregisteredtoolproperty.description

updateRegisteredToolProperty(id: string, payload: string, property: string): void
updateSelectedTool

script_api.minecraft/server-editor-bindings.datastoremodaltoolcontainer.updateselectedtool.description

updateSelectedTool(toolId?: string): void