跳到正文

PixelView2

作者:N0do_

A client-side library that adds WebView2-powered interfaces, letting Minecraft mods build rich GUIs with React and other web frameworks.

收藏

截图

介绍

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

PixelView2 is a client-side library mod that lets other mods display packaged web interfaces in native WebView2 child windows attached to Minecraft.

Mod authors can build rich, responsive GUIs with React, Vue, Svelte, or plain HTML, CSS, and JavaScript while communicating with Java through a versioned and bounded message bridge.

The dashboards shown below are included demonstrations. Their telemetry and world-state values are sample data used to showcase the API.

Built for local mod interfaces

PixelView2 loads manifest-backed assets packaged inside the mod. Each application receives an isolated local origin and opens using internal routes rather than public URLs.

The included dashboard demonstrates responsive layouts, charts, tabs, theme changes, and structured Java-to-web communication.

Features include:

  • Framework-neutral frontend support
  • Packaged local HTML, CSS, JavaScript, fonts, and images
  • React, Vite, and Chart.js example application
  • Versioned Java ↔ web message bridge
  • Allowlisted messages with size limits, timeouts, cancellation, and backpressure
  • Always-loaded, predictive-preload, and on-demand surface lifecycles
  • Paint-ready reveal to avoid displaying unfinished interfaces
  • Runtime, memory, configuration, and diagnostic tools

PixelView2 is client-only and is not required on dedicated servers.

常见问题

PixelView2 支持哪些 Minecraft 版本?

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

PixelView2 怎么安装?

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

评论

登录后评论和评分

N0do_ 的其他作品

查看全部 →