/RedMenu

A simple Fabric Kotlin library easing the creation of menu blocks.

Primary LanguageKotlinMIT LicenseMIT

RedMenu

WARNING: This library is under maintenance with no further features being added.
Prefer using built-in LibGUI APIs and Kotlin instead, where possible.

NOTICE: The library is written in Kotlin and Java interoperability hasn't been tested.

Features:

  • A simple API for reducing tons of boilerplate when creating container/menu blocks
  • Abstract and extensible implementations of:
    • Block
    • BlockEntity
    • Screen
    • ScreenHandler
  • Default storage implementations of an:
    • Inventory
    • SidedInventory
  • Dedicated support for LibGUI in com.redgrapefruit.redmenu.redmenu.libgui
  • ScreenHandler slot management API for a scenario without using LibGUI's WPanels:
    • Add player inventory slots
    • Add player hotbar slots
    • Place down slots in a dispenser-like handled grid