Geyser 开源项目使用教程

Geyser 开源项目使用教程

GeyserA bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.项目地址:https://gitcode.com/gh_mirrors/ge/Geyser

1. 项目的目录结构及介绍

Geyser 项目的目录结构如下:

Geyser/
├── bootstrap/
│   ├── bungeecord/
│   └── standalone/
├── build/
├── connector/
├── core/
├── docs/
├── platform/
│   ├── bungeecord/
│   ├── fabric/
│   ├── forge/
│   ├── spigot/
│   └── standalone/
├── scripts/
├── src/
│   ├── main/
│   └── test/
├── .gitignore
├── .travis.yml
├── build.gradle
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
└── settings.gradle

目录结构介绍

  • bootstrap/: 包含不同启动方式的引导文件。
  • build/: 构建生成的文件目录。
  • connector/: 连接器相关代码。
  • core/: 核心功能代码。
  • docs/: 项目文档。
  • platform/: 不同平台的实现代码。
  • scripts/: 脚本文件。
  • src/: 源代码目录。
  • .gitignore: Git 忽略文件配置。
  • .travis.yml: Travis CI 配置文件。
  • build.gradle: Gradle 构建配置文件。
  • CHANGELOG.md: 更新日志。
  • CODE_OF_CONDUCT.md: 行为准则。
  • CONTRIBUTING.md: 贡献指南。
  • LICENSE: 许可证文件。
  • README.md: 项目说明文档。
  • settings.gradle: Gradle 项目设置文件。

2. 项目的启动文件介绍

Geyser 项目的启动文件主要位于 bootstrap/ 目录下,具体包括:

  • bootstrap/bungeecord/: BungeeCord 启动方式的引导文件。
  • bootstrap/standalone/: 独立启动方式的引导文件。

启动文件介绍

  • GeyserBungeeBootstrap.java: BungeeCord 启动类。
  • GeyserStandaloneBootstrap.java: 独立启动类。

这些启动类负责初始化 Geyser 的运行环境,并启动相应的服务。

3. 项目的配置文件介绍

Geyser 项目的配置文件主要位于项目的根目录下,名为 config.yml

配置文件介绍

bedrock:
  address: 0.0.0.0
  port: 19132
  clone-remote-port: false
  motd1: "GeyserMC"
  motd2: "GeyserMC"
  max-players: 100
  server-name: "Geyser"
  compression-level: 6
  enable-proxy-protocol: false
  enable-proxy-connections: false
  default-locale: "en_us"
  auth-type: "offline"
  client-data-folder: "client_data"
  cache-images: false
  cache-images-expire-after: 3600
  cache-images-size-limit: 1048576
  cache-images-folder: "cache_images"
  enable-proxy-protocol-v2: false
  enable-proxy-protocol-v2-connections: false
  enable-proxy-protocol-v2-forwarding: false
  enable-proxy-protocol-v2-forwarding-connections: false
  enable-proxy-protocol-v2-forwarding-connections-v2: false
  enable-proxy-protocol-v2-forwarding-connections-v2-forwarding: false
  enable-proxy-protocol-v2-forwarding-connections-v2-forwarding-connections: false
  enable-proxy-protocol-v2-forwarding-connections-v2-forwarding-connections-v2: false
  enable-proxy-protocol-v2-forwarding-connections-v2-forwarding-connections-v2-forwarding: false
  enable-proxy-protocol-v2-forwarding-connections-v2-forwarding-connections-v2-forwarding-connections: false
  enable-proxy-protocol-v2-forwarding-connections-v2-forwarding-connections-v2-forwarding-connections-

GeyserA bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.项目地址:https://gitcode.com/gh_mirrors/ge/Geyser

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

胡同琥Randolph

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值