feat:上传mcguide-开发指南部份

This commit is contained in:
Othniel su
2024-12-23 10:57:59 +08:00
parent 7292166c88
commit 0dc59fa4f0
3297 changed files with 63375 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
---
front:
hard: 入门
time: 分钟
---
# 下载内容
下载方式如下:
![下载](./res/dl.png)
下载后导入解压到本地,获取.jar文件
![导入](./res/dl1.png)
## BungeeMaster插件
bc服插件必须用于bc服组网
## SpigotMaster插件
spigot服插件必须用于客户端python通信自定义物品
### 使用方式
下载 **SpigotMaster** 的jar包然后执行以下指令**path-to-jar**替换为jar路径
```shell
mvn install:install-file -Dfile=path-to-jar
-DgroupId=com.neteasemc
-DartifactId=SpigotMaster
-Dversion=x.x.x-SNAPSHOT
-Dpackaging=jar
```
- 插件编写时
1. 在pom.xml中添加依赖
```xml
<dependency>
<groupId>com.neteasemc</groupId>
<artifactId>SpigotMaster</artifactId>
<version>x.x.x-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
```
2. 在plugin.yml中添加依赖
```yml
depend:
- SpigotMaster
```
## 示例Demo
包含以下内容:
1. CustomItemDemo客户端新自定义物品示例
2. CustomPigModelDemo客户端为随机的猪更改颜色的示例
3. CustomHumanModelDemo: 客户端为更改玩家模型的示例
4. PyRpcDemo客户端python通信示例
5. ShopDemo商业化插件示例
6. CustomEntityDemo自定义实体示例
7. FormUIDemoServerFormUI示例
8. CustomBlockDemo: 自定义方块示例
9. InventoryToFormUIDemo:原生箱子UI转FormUI示例