更新3.4API

This commit is contained in:
boybook
2025-06-27 23:59:47 +08:00
parent c0f98b179b
commit 12738a142c
52 changed files with 1146 additions and 292 deletions

View File

@@ -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
- 参数