EntityAttributeComponent
¶
文档版本:1.21.60.21
EntityAttributeComponent
类,扩展自IEntityComponent
。script_api.mojang-minecraft.entityattributecomponent.description
属性¶
current
current
:float
- script_api.mojang-minecraft.entityattributecomponent.current.description
value
value
:float
- script_api.mojang-minecraft.entityattributecomponent.value.description
方法¶
resetToDefaultValue
script_api.mojang-minecraft.entityattributecomponent.resettodefaultvalue.description
- 返回值:
void
- script_api.mojang-minecraft.entityattributecomponent.resettodefaultvalue.return
resetToMaxValue
script_api.mojang-minecraft.entityattributecomponent.resettomaxvalue.description
- 返回值:
void
- script_api.mojang-minecraft.entityattributecomponent.resettomaxvalue.return
resetToMinValue
script_api.mojang-minecraft.entityattributecomponent.resettominvalue.description
- 返回值:
void
- script_api.mojang-minecraft.entityattributecomponent.resettominvalue.return
setCurrent
script_api.mojang-minecraft.entityattributecomponent.setcurrent.description
value
:float
- script_api.mojang-minecraft.entityattributecomponent.setcurrent.value.description
- 返回值:
boolean
- script_api.mojang-minecraft.entityattributecomponent.setcurrent.return