Skip to content

Wheel Menu Module >=1.21.1 enhanced: 1.21.5 / 1.21.6 / 26.1

The package dev.anvilcraft.lib.v2.wheel provides a highly customizable Radial Menu system, supporting two open modes (Tap and Hold), custom sector/dot selection effects, submenus, and custom renderers.

Document Index

DocumentContent
API Model LayerWheelMenuModel, WheelEntry, WheelMenuBuilder, pages and pagination
Client RenderingWheelWidget, WheelScreen, input control, shader pipelines

Architecture Overview

PackageResponsibility
apiData models (entries, pages, pagination, open modes), no client class dependencies
client.gui.componentWheelWidget control, handles mouse interaction, animation, and rendering
client.gui.screenWheelScreen screen host, manages page stack and mode triggers
client.gui.render.stateGUI render states (ring, selection effect custom shaders)
client.initShader pipelines, dynamic uniform buffers
client.inputWheelScreenController input handling

Notes

  • Classes under the client package may only be used on the physical client
  • Dynamic uniforms use per-frame caching to avoid frequent WheelWidget rebuilds
  • GlobalRendererMixin (from the rendering module) must be present for custom pipeline display
  • Submenus only support one level of nesting (WheelSubmenuBuilder)

Released under the CC-BY-NC-SA 4.0 License.