From 977921f8d2d6dc661861d67bf975a2256b5d8098 Mon Sep 17 00:00:00 2001 From: bconlon Date: Wed, 23 Oct 2024 17:16:40 -0700 Subject: [PATCH] feat: more config lang gen methods --- .../data/providers/NitrogenLanguageProvider.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java b/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java index 607b3b3..91299ac 100644 --- a/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java +++ b/src/main/java/com/aetherteam/nitrogen/data/providers/NitrogenLanguageProvider.java @@ -111,6 +111,18 @@ public void addAccessoriesIdentifier(String key, String name) { this.add("accessories.slot." + this.id + "." + key, name); } + public void addServerConfig(String prefix, String name) { + this.add("config." + this.id + ".server." + prefix, name); + } + + public void addCommonConfig(String prefix, String name) { + this.add("config." + this.id + ".common." + prefix, name); + } + + public void addClientConfig(String prefix, String name) { + this.add("config." + this.id + ".client." + prefix, name); + } + public void addServerConfig(String prefix, String key, String name) { this.add("config." + this.id + ".server." + prefix + "." + key, name); }