mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 07:47:47 +00:00
Added some SideOnly annotations to LangUtil
This commit is contained in:
1 parent
f5bbe9d2da
commit
d889cf9cbc
1 file changed
+6
-1
@@ -13,6 +13,8 @@ import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
/**
|
||||
* Easy localisation access.
|
||||
@@ -69,12 +71,14 @@ public class LangUtil
|
||||
reg.addStringLocalization(key, lang, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static LangUtil loadLangDir(String domain)
|
||||
{
|
||||
return new LangUtil(domain).addLangDir(new ResourceLocation(domain, "lang"));
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public LangUtil addLangDir(ResourceLocation dir)
|
||||
{
|
||||
ResourceManager resManager = Minecraft.getMinecraft().getResourceManager();
|
||||
@@ -105,6 +109,7 @@ public class LangUtil
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static void loadBaseLangDir(ResourceLocation dir)
|
||||
{
|
||||
instance.addLangDir(dir);
|
||||
|
||||
Reference in new issue
Block a user