Java Checker 是一款 Tweaker 模组,当用户使用的 Java 版本过旧时,它会显示一条用户友好的提示信息。目前有两个版本,一个用于检查 Java 7,另一个用于检查 Java 8——详情请参阅安装指南。该模组可免费使用、修改、重新分发或进行其他任何操作。欢迎在整合包中使用。
安装指南
- 确保已安装相应版本的 Forge
- 访问 文件 页面并找到合适的 Java Checker 版本(请使用通用版构建)
- 下载文件并将其放入mods文件夹中
此方法适用于 Minecraft 1.6.2 及以上的所有版本。如果你需要了解如何在没有 Forge 的情况下安装该模组,或者适用于更早的版本,请阅读下方的特殊请求部分。
示例对话框和日志
源代码可在 GitHub 上获取:
外部链接:我的网站 | Twitter | Patreon
特殊请求
将 Java Checker 包含在其他模组中(着色处理)
请参阅其 GitHub 仓库上的关于对 Java Checker 进行着色处理的指南。
在 Minecraft 1.6.1 及更早版本中使用 Java Checker(配合 Forge)
下载 Java Checker v1.1,并将其安装到coremods文件夹中。
在无 Forge/FML 环境下使用 Java Checker
Java Checker 是一个 Tweaker 模组,允许你修改 Minecraft 启动器配置中的 json 文件,并在minecraftArguments中添加 --tweakClass chylex.javacheck.Java<version>Checker,同时将 Java Checker 作为库添加。这是一个理论上可行但尚未实际测试的场景,因此请谨慎操作。
Java Checker is a tweaker mod that shows a user-friendly message if the user has outdated Java. There are currently two versions, one that checks for Java 7, and one for Java 8 - read the Installation Guide for more details. The mod is free to use, modify, redistribute or whatever else you might want to do. Usage in modpacks is welcome.
Installation Guide
- Make sure you have the appropriate Forge version installed
- Visit the Files page and find the appropriate version of Java Checker (use the Universal builds)
- Download the file and place it into the mods folder
This will work for all versions of Minecraft since 1.6.2. If you need to know how to install the mod without Forge or for older versions, read the Special Requests section below.
Example dialog and log
The source code is available on GitHub:
External links: My website | Twitter | Patreon
Special Requests
Including Java Checker in another mod (shading)
Read a guide on shading Java Checker on its GitHub repository.
Using Java Checker in Minecraft 1.6.1 and older (with Forge)
Download Java Checker v1.1, and install it into the coremods folder.
Using Java Checker without Forge/FML
Java Checker is a tweaker mod, which allows you to modify the json file in your Minecraft launcher profile, and add --tweakClass chylex.javacheck.Java<version>Checker to minecraftArguments, and add Java Checker as a library. This is very much a theoretical scenario that has not been tested, so be careful.
评论 0
登录后参与评分
还没有评论,来抢沙发吧