更新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

@@ -713,7 +713,7 @@ method in mod.server.component.gameCompServer.GameComponentServer
- 备注
- 注意如果检测的实体所在的区块被卸载则该接口返回False。因此需要注意实体所在的区块是否被加载。
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://minecraft-zh.gamepedia.com/%E5%8C%BA%E5%9D%97)
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://zh.minecraft.wiki/w/%E5%8C%BA%E5%9D%97)
- 示例
@@ -748,7 +748,7 @@ method in mod.client.component.gameCompClient.GameComponentClient
- 备注
- 注意如果检测的实体所在的区块被卸载则该接口返回False。因此需要注意实体所在的区块是否被加载。
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://minecraft-zh.gamepedia.com/%E5%8C%BA%E5%9D%97)
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://zh.minecraft.wiki/w/%E5%8C%BA%E5%9D%97)
- 示例
@@ -886,9 +886,10 @@ method in mod.server.component.blockInfoCompServer.BlockInfoComponentServer
| pos | tuple(int,int,int) | 掉落位置 |
| aux | int | 方块的附加值 |
| probability | float | 掉落概率,范围为[0, 1]0为不掉落1为100%掉落 |
| bonusLootLevel | int | [时运等级](https://minecraft-zh.gamepedia.com/时运)默认为0 |
| bonusLootLevel | int | [时运等级](https://zh.minecraft.wiki/w/时运)默认为0 |
| dimensionId | int | 掉落方块的维度,默认值为-1传入非负值时用于获取产生方块掉落的维度否则将随机挑选一个存在玩家的维度产生掉落 |
| allowRandomness | bool | 是否允许随机采集默认为True如果为False掉落概率probability无效 |
| spawnOrb | bool | 是否生成经验球默认都不生成设成True时按原版采集逻辑进行经验球掉落如矿石类方块会产生随机数量的经验球 |
- 返回值