更新3.4API
This commit is contained in:
@@ -1508,7 +1508,7 @@ method in mod.server.component.entityDefinitionsCompServer.EntityDefinitionsComp
|
||||
| bool | 是否为自然生成的,调用失败返回None |
|
||||
|
||||
- 备注
|
||||
- 一些自然生成的生物拥有持久性(例如末影龙、随大型结构生成的生物),则IsNaturallySpawned会返回False,详见<a href="https://minecraft.fandom.com/zh/wiki/%E7%94%9F%E6%88%90#%E5%9F%BA%E5%B2%A9%E7%89%88_2">基岩版持久性生物介绍</a>
|
||||
- 一些自然生成的生物拥有持久性(例如末影龙、随大型结构生成的生物),则IsNaturallySpawned会返回False,详见<a href="https://zh.minecraft.wiki/w/%E7%94%9F%E6%88%90#%E5%9F%BA%E5%B2%A9%E7%89%88_2">基岩版持久性生物介绍</a>
|
||||
|
||||
- 示例
|
||||
|
||||
@@ -2452,7 +2452,7 @@ method in mod.server.component.attrCompServer.AttrCompServer
|
||||
|
||||
- 描述
|
||||
|
||||
设置实体不会因为离玩家太远而被[清除](https://minecraft.fandom.com/zh/wiki/%E7%94%9F%E6%88%90#.E5.9F.BA.E5.B2.A9.E7.89.88_2)
|
||||
设置实体不会因为离玩家太远而被[清除](https://zh.minecraft.wiki/w/%E7%94%9F%E6%88%90#%E6%B8%85%E9%99%A4)
|
||||
|
||||
- 参数
|
||||
|
||||
@@ -2532,7 +2532,7 @@ method in mod.server.component.posCompServer.PosComponentServer
|
||||
|
||||
| 参数名 | <div style="width: 4em">数据类型</div> | 说明 |
|
||||
| :--- | :--- | :--- |
|
||||
| pos | tuple(int,int,int) | xyz值 |
|
||||
| pos | tuple(float,float,float) | xyz值 |
|
||||
|
||||
- 返回值
|
||||
|
||||
@@ -2735,7 +2735,7 @@ method in mod.server.component.collisionBoxCompServer.CollisionBoxComponentServe
|
||||
|
||||
- 描述
|
||||
|
||||
设置实体的包围盒
|
||||
设置实体的包围盒。设置过大会导致游戏卡顿。实体的scale的立方乘以包围盒的体积不可超过32768
|
||||
|
||||
- 参数
|
||||
|
||||
|
||||
Reference in New Issue
Block a user