EntityAttributeComponent
¶
文档版本:1.21.60.21
EntityAttributeComponent
类,扩展自EntityComponent
。script_api.minecraft/server.entityattributecomponent.description
属性¶
currentValue
currentValue
:float
- script_api.minecraft/server.entityattributecomponent.currentvalue.description
defaultValue
defaultValue
:float
- script_api.minecraft/server.entityattributecomponent.defaultvalue.description
effectiveMax
effectiveMax
:float
- script_api.minecraft/server.entityattributecomponent.effectivemax.description
effectiveMin
effectiveMin
:float
- script_api.minecraft/server.entityattributecomponent.effectivemin.description
方法¶
resetToDefaultValue
script_api.minecraft/server.entityattributecomponent.resettodefaultvalue.description
- 返回值:
void
- script_api.minecraft/server.entityattributecomponent.resettodefaultvalue.return
resetToMaxValue
script_api.minecraft/server.entityattributecomponent.resettomaxvalue.description
- 返回值:
void
- script_api.minecraft/server.entityattributecomponent.resettomaxvalue.return
resetToMinValue
script_api.minecraft/server.entityattributecomponent.resettominvalue.description
- 返回值:
void
- script_api.minecraft/server.entityattributecomponent.resettominvalue.return
setCurrentValue
script_api.minecraft/server.entityattributecomponent.setcurrentvalue.description
value
:float
- script_api.minecraft/server.entityattributecomponent.setcurrentvalue.value.description
- 返回值:
boolean
- script_api.minecraft/server.entityattributecomponent.setcurrentvalue.return