补充3.7版本文档:物理系统API/事件/枚举值、游戏设置事件、物品ID变更、物理使用指南
Some checks failed
Deploy VitePress to AliYun OSS / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy VitePress to AliYun OSS / build-and-deploy (push) Has been cancelled
This commit is contained in:
22
docs/mcdocs/1-ModAPI/枚举值/PxEventMask.md
Normal file
22
docs/mcdocs/1-ModAPI/枚举值/PxEventMask.md
Normal 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 # 需要客户端事件
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user