zh_cn:documentation:entrypoint
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
zh_cn:documentation:entrypoint [2021/09/01 13:19] – created not completed solidblock | zh_cn:documentation:entrypoint [2023/09/23 06:34] – ↷ Links adapted because of a move operation rawdiamondmc | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== 入口点 ====== | ====== 入口点 ====== | ||
- | 入口点是在模组的 [[zh_cn: | + | 入口点是在模组的 [[zh_cn: |
An entrypoint is exposed under some name, refers to some code object and must be based on a familiar **entrypoint prototype**. An entrypoint prototype defines the name (such as " | An entrypoint is exposed under some name, refers to some code object and must be based on a familiar **entrypoint prototype**. An entrypoint prototype defines the name (such as " | ||
Line 30: | Line 30: | ||
==== 内置入口点协议类型 ==== | ==== 内置入口点协议类型 ==== | ||
- | Fabric | + | Fabric |
- | * **main**: The first normal initialization entrypoint to run. Uses the type '' | + | * **main**:第一个要运行的正常初始化入口点。使用 |
- | * **client**: Will run after main only in a physical client. Uses the type '' | + | * **client**:仅在物理客户端的 |
- | * **server**: Will run after main only in a physical server. Uses the type '' | + | * **server**:仅在物理服务器的 |
- | * **preLaunch | + | * **preLaunch(一般不建议使用)**:可能的最早期的入口点,在游戏启动之前调用。使用时注意不要干预游戏初始化。使用类 |
- | + | ||
- | All main entrypoints are called before all client/ | + | |
+ | 所有的 main 入口点都是在 client/ | ||
==== 代码引用类型 ==== | ==== 代码引用类型 ==== | ||
zh_cn/documentation/entrypoint.txt · Last modified: 2024/01/02 10:32 by solidblock