top.hendrixshen.magiclib.api.malilib.config.MagicConfigManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-malilib-extra-1.18.2-fabric Show documentation
Show all versions of magiclib-malilib-extra-1.18.2-fabric Show documentation
Unleash Magic Enhancement Malilib.
The newest version!
package top.hendrixshen.magiclib.api.malilib.config;
import fi.dy.masa.malilib.hotkeys.IHotkey;
import org.jetbrains.annotations.NotNull;
import top.hendrixshen.magiclib.api.malilib.config.option.MagicIConfigBase;
import top.hendrixshen.magiclib.impl.malilib.config.ConfigContainer;
import top.hendrixshen.magiclib.impl.malilib.config.MagicConfigFactory;
import top.hendrixshen.magiclib.impl.malilib.config.gui.MagicConfigGui;
import top.hendrixshen.magiclib.impl.malilib.config.option.MagicConfigHotkey;
import top.hendrixshen.magiclib.util.collect.ValueContainer;
import java.util.Collection;
import java.util.List;
public interface MagicConfigManager {
static void setHotkeyCallback(@NotNull MagicConfigHotkey configHotkey, Runnable runnable,
boolean cancelFurtherProcess) {
configHotkey.setCallBack((keyAction, iKeybind) -> {
runnable.run();
return cancelFurtherProcess;
});
}
String getIdentifier();
MagicConfigFactory getConfigFactory();
void parseConfigClass(@NotNull Class> configClass);
Collection getCategories();
Collection getContainers(String category);
Collection getAllContainers();
ValueContainer getContainerByConfig(MagicIConfigBase config);
ValueContainer getContainerByName(String name);
List getAllCustomHotkeys();
MagicConfigGui.GuiSetting getGuiSetting();
boolean hasConfig(String name);
void onConfigLoaded();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy