补充3.7版本文档:物理系统API/事件/枚举值、游戏设置事件、物品ID变更、物理使用指南
Some checks failed
Deploy VitePress to AliYun OSS / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-03-02 00:17:03 +08:00
parent 073d730337
commit 1d963e8307
16 changed files with 30681 additions and 28994 deletions

View File

@@ -0,0 +1,22 @@
# PxEventMask
class in mod.common.minecraftEnum
- 描述
碰撞事件枚举
```python
class PxEventMask(object):
Null = 0x0 # 不需要碰撞事件。若不为Null则Found或Lost必须有一个Server或Client必须有一个
Found = 0x1 # 需要接触开始事件
Found_Detail = 0x2 # 接触开始事件需要附带碰撞点与法线信息。性能消耗较大。
Lost = 0x4 # 需要接触结束事件
Server = 0x8 # 需要服务器事件
Client = 0x10 # 需要客户端事件
```