first commit
This commit is contained in:
67
docs/mcdocs/1-ModAPI/接口/实体/附加值.md
Normal file
67
docs/mcdocs/1-ModAPI/接口/实体/附加值.md
Normal file
@@ -0,0 +1,67 @@
|
||||
---
|
||||
sidebarDepth: 1
|
||||
---
|
||||
# 附加值
|
||||
|
||||
## GetAuxValue
|
||||
|
||||
<span style="display:inline;color:#ff5555">服务端</span><span style="display:inline;color:#7575f9">客户端</span>
|
||||
|
||||
### 服务端接口
|
||||
|
||||
<span id="s0"></span>
|
||||
method in mod.server.component.auxValueCompServer.AuxValueComponentServer
|
||||
|
||||
- 描述
|
||||
|
||||
获取射出的弓箭或投掷出的药水的附加值
|
||||
|
||||
- 参数
|
||||
|
||||
无
|
||||
|
||||
- 返回值
|
||||
|
||||
| <div style="width: 4em">数据类型</div> | 说明 |
|
||||
| :--- | :--- |
|
||||
| int | auxValue |
|
||||
|
||||
- 示例
|
||||
|
||||
```python
|
||||
import mod.server.extraServerApi as serverApi
|
||||
comp = serverApi.GetEngineCompFactory().CreateAuxValue(entityId)
|
||||
comp.GetAuxValue()
|
||||
```
|
||||
|
||||
|
||||
|
||||
### 客户端接口
|
||||
|
||||
<span id="c0"></span>
|
||||
method in mod.client.component.auxValueCompClient.AuxValueComponentClient
|
||||
|
||||
- 描述
|
||||
|
||||
获取射出的弓箭或投掷出的药水的附加值
|
||||
|
||||
- 参数
|
||||
|
||||
无
|
||||
|
||||
- 返回值
|
||||
|
||||
| <div style="width: 4em">数据类型</div> | 说明 |
|
||||
| :--- | :--- |
|
||||
| int | 具体数值见wiki的“箭”及“药水”页面 |
|
||||
|
||||
- 示例
|
||||
|
||||
```python
|
||||
import mod.client.extraClientApi as clientApi
|
||||
comp = clientApi.GetEngineCompFactory().CreateAuxValue(entityId)
|
||||
auxValue = comp.GetAuxValue()
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user