DynamicPropertiesDefinition
¶
文档版本:1.21.60.21
DynamicPropertiesDefinition
类。script_api.mojang-minecraft.dynamicpropertiesdefinition.description
方法¶
constructor
script_api.mojang-minecraft.dynamicpropertiesdefinition.constructor.description
- 返回值:
DynamicPropertiesDefinition
- script_api.mojang-minecraft.dynamicpropertiesdefinition.constructor.return
defineBoolean
script_api.mojang-minecraft.dynamicpropertiesdefinition.defineboolean.description
identifier
:string
- script_api.mojang-minecraft.dynamicpropertiesdefinition.defineboolean.identifier.description
defaultValue
?:boolean
=null
- script_api.mojang-minecraft.dynamicpropertiesdefinition.defineboolean.defaultvalue.description
- 返回值:
DynamicPropertiesDefinition
- script_api.mojang-minecraft.dynamicpropertiesdefinition.defineboolean.return
defineNumber
script_api.mojang-minecraft.dynamicpropertiesdefinition.definenumber.description
identifier
:string
- script_api.mojang-minecraft.dynamicpropertiesdefinition.definenumber.identifier.description
defaultValue
?:float
=null
- script_api.mojang-minecraft.dynamicpropertiesdefinition.definenumber.defaultvalue.description
- 返回值:
DynamicPropertiesDefinition
- script_api.mojang-minecraft.dynamicpropertiesdefinition.definenumber.return
defineString
script_api.mojang-minecraft.dynamicpropertiesdefinition.definestring.description
defineString(identifier: string, maxLength: uint32, defaultValue?: string): DynamicPropertiesDefinition
identifier
:string
- script_api.mojang-minecraft.dynamicpropertiesdefinition.definestring.identifier.description
maxLength
:uint32
∈[0
, +∞]- script_api.mojang-minecraft.dynamicpropertiesdefinition.definestring.maxlength.description
defaultValue
?:string
=null
- script_api.mojang-minecraft.dynamicpropertiesdefinition.definestring.defaultvalue.description
- 返回值:
DynamicPropertiesDefinition
- script_api.mojang-minecraft.dynamicpropertiesdefinition.definestring.return