Class Lang
java.lang.Object
com.github.darksoulq.abyssallib.server.resource.asset.Lang
- All Implemented Interfaces:
Asset
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty language file.Loads the language file from the plugin JAR at path:resourcepack/{namespace}/lang/{lang}.json. -
Method Summary
-
Constructor Details
-
Lang
-
Lang
-
Lang
public Lang(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String namespace, @NotNull @NotNull String lang) Loads the language file from the plugin JAR at path:resourcepack/{namespace}/lang/{lang}.json.- Parameters:
plugin- the plugin whose JAR is scannednamespace- the namespace of the resource packlang- the language code (e.g., en_us)
-
-
Method Details
-
put
-
emit
-