Skip to content

Commit

Permalink
Add config
Browse files Browse the repository at this point in the history
  • Loading branch information
OffsetMonkey538 committed Feb 29, 2024
1 parent 0297232 commit 3b4c459
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
import net.minecraft.util.Identifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import top.offsetmonkey538.configurableitemcooldown.config.ModConfig;
import top.offsetmonkey538.monkeylib538.config.ConfigManager;

public class ConfigurableItemCooldown implements ModInitializer {
public static final String MOD_ID = "configurable-item-cooldown";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
public static ModConfig config;

@Override
public void onInitialize() {
// Do stuff
config = ConfigManager.init(new ModConfig(), LOGGER::error);
LOGGER.info(config.test);
}

public static Identifier id(String path) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package top.offsetmonkey538.configurableitemcooldown.config;

import top.offsetmonkey538.monkeylib538.config.Config;

import static top.offsetmonkey538.configurableitemcooldown.ConfigurableItemCooldown.MOD_ID;

public class ModConfig extends Config {

public String test = "e";

@Override
protected String getName() {
return MOD_ID;
}
}

0 comments on commit 3b4c459

Please sign in to comment.