跳到正文

NeoCocoa

作者:heipiao

Support IME - Input Method Editor (Chinese, Japanese, Korean and more) in Minecraft on Multi-platforms (macOS, Windows, Wayland, X11).

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

NeoCocoa

Support IME – Input Method Editor (Chinese, Japanese, Korean and more) in Minecraft on Multi-platforms (macOS, Windows, Wayland, X11).

A hard fork of https://github.com/nakanotti/CocoaInput, which is a fork of https://github.com/Axeryok/CocoaInput.

Notice: X11 support is buggy, partially broken and deprecated. Please use Wayland for a better experience.

Compiling

NeoCocoa’s Gradle build script handles native library build, the build method is similar to common mods.
However, some additional setup is needed.

The Git repo uses Git submodule. Please clone with --recursive, or run git submodule update --init --recursive if you already cloned.

Zig is required for build with native.

OSXCross is needed on non-MacOS Unix like platforms.
Setup osxcross envvars with osxcross-conf >> ~/.bashrc. Please use osxcross branch 2.0-llvm-based.

MSVC or Mingw is needed for Windows build.

If you don’t want to build native library in Gradle build process, just set SKIP_NATIVE_BUILD envvar.

Compile native library

NeoCocoa needs native-platform libraries to work. This process is done by Gradle, but here are some references if you want to compile it manually.
To compile them, install zig, then run: zig build [windows|wayland|x11|darwin] [options]
You may want -Dmacos-sdk-path=$OSXCROSS_SDK on osxcross.
You can use zig build windows -Dwindows-arch=aarch64 [other_options] to build for Windows On Arm.

Installing

NeoCocoa is published on Modrinth. The official binaries includes native libs for these targets:

  • Windows x86_64
  • GNU/Linux x86_64, glibc
  • MacOS 11.0

If your OS is not included, please compile it yourself, then put it to /path/to/minecraft/mods/../native/, and create an empty file called <lib name>.keep, for example libwaylandcocoainput.so.keep.

NeoCocoa requires NeoForge or Fabric.

This mod uses Java Native Access (Apache License 2.0).

License

Minecraft Mod Public License

常见问题

NeoCocoa 支持哪些 Minecraft 版本?

NeoCocoa 支持 Minecraft Java 版 1.20.1–1.21.11,共 5 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

NeoCocoa 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

heipiao 的其他作品

查看全部 →