
Что это
A client-side core that serves as the shared foundation for all Easeon modules.
- Тип: мод
- Загрузчик: fabric
- Версии Minecraft: 1.21.10 – 26.3
- Скачиваний на Modrinth: 1 495
Подробно
Overview A client-side core that serves as the shared foundation for all Easeon modules, freely available for any mod to reference and use.
Feature Definition java package com.example;
import com.easeon.cs.core.api.EaseonFeatureEnumLike; import com.easeon.cs.core.config.model.;
public enum FeatureExample implements EaseonFeatureEnumLike { // ✅ Toggle Example: Enable or disable the minimap SHOWMINIMAP("featuredemo.showminimap", new ToggleConfig() {{ Enabled = true; }}),
// ✅ Slider Example: Adjust screen brightness (1–10) SCREENBRIGHTNESS("featuredemo.screenbrightness", new SliderConfig() {{ Enabled = true; Value = 5; }}, 1, 10) { @Override public String getValueFormat() { return "featuredemo.screenbrightness.format"; } },
// ✅ Hotkey Example: Toggle fullscreen with a shortcut TOGGLEFULLSCREEN("featuredemo.togglefullscreen", new HotkeyConfig() {{ Enabled = true; Key = 70; Mod = 2; }}); // Example: Ctrl + F
private final String title; private final Object defaultConfig; private final int min, max;
FeatureExample(String title, Object defaultConfig) { this(title, defaultConfig, 0, 0); } FeatureExample(String title, Object defaultConfig, int min, int max) { this.title = title; this.defaultConfig = defaultConfig; this.min = min; this.max = max; }
@Override public String id() { return name(); } @Override public String title() { return title; } @Override public Object getDefaultConfig() { return defaultConfig; } @Override public int getMin() { return min; } @Override public int getMax() { return max; } }
Mod Initialization java package com.example;
import com.easeon.cs.core.EaseonClientCore; import net.fabricmc.api.ClientModInitializer;
public class TemplateModClient implements ClientModInitializer { @Override public void onInitializeClient() { EaseonClientCore .init("feature-demo", "feature.demo.config.json") .category("UI", "featuredemo.ui") .section("GENERAL", "featuredemo.ui.general") .slider(FeatureExample.SCREENBRIGHTNESS) .section("CONTROL", "featuredemo.ui.control") .toggle(FeatureExample.SHOWMINIMAP) .hotkey(FeatureExample.TOGGLEFULLSCREEN) .build(); } }
Accessing Config Values java var config = EaseonClientCore.getSliderConfig(FeatureExample.SCREENBRIGHTNESS); if (!config.Enabled) return; System.out.println(config.value);
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
PSYCHOSYS
Sanity Mod is a psychological horror mod that adds a sanity system and frightening visual and sound effects. 05.12.2026
Cobblemeown
Cobblemon pack with extra pokemon content, optimization, and quality-of-life mods 05.12.2026
Saros Worldborder Customizer
Fully customize your world border with RGB colors, opacity settings, and animated pulse effects. Works instantly in multiplayer and saves… 05.12.2026
WayMoreIcons
Simple mod that adds support for setting the window icon when running under Wayland. 05.12.2026
pakistani currency
The Pakistani Currency Mod introduces a unique, immersive economy system to Minecraft, featuring realistic Pakistani currency notes! This… 05.12.2026
Helldivers 2 Stratagems
This mod adds a couple of stratagems from the hit game Helldivers 2 05.12.2026