Download Menu Library — Minecraft Mods — ModStock

Menu Library

Active

Downloads

0

Last update

4 years ago
Client
Decor
Libraries

Menu Lib offers an api of multiple and browsable main menus. It contains a simple self explanatory interface for overriding default custom menu behavior. this mod was inspired by gilded games core and aether ii from 1.5.2. No code was taken from the aether ii nor it's core mod. I provide a simple and clean system

Modders-Api:

MenuRegsitry.register(IMenu menu);

to create a basic IMenu use Menu.class. There are several options you can use, custom framerate, custom music player etc...
new Menu(ResourceLocation id, Class<? extends GuiClass> guiClass)

there is a hook for adding your wrapped buttons and other objects for custom main menu json defaults
create a class implementing  ICMMJsonEvent
register that class in pre-init using CMMJsonRegistry.registry.add(new CMMJsonHandler());

For more info check out IMenu and Menu classes on the public source
https://github.com/jredfox/menulib/tree/master/src/main/java/com/jredfox/menulib/menu


Features & Config:
multiple main menus
custom framerate per IMenu
custom music per IMenu(2.0.0 update)
create a new menu for a mod in the config that this mod doesn't support: modid:mainmenu <full.path.to.class> = true/false
disable a menu by appending "= false" to it
change the menu order by simply re-arranging the order in the config

Supported Mods:
The Between Lands
Fossils and Archaeology
Custom Main Menu

Future:
refresh button
menu selection
new music engine
background and button textures changeable?

Project members
jredfox_

jredfox_