类 EnchantmentLevelLangPatchConfig
java.lang.Object
xland.mcmod.enchlevellangpatch.api.EnchantmentLevelLangPatchConfig
An API to modify the current enchantment level patch and the current
potion potency patch.
-
方法概要
修饰符和类型方法说明static EnchantmentLevelLangPatchThe getter for the current enchantment level patch.static EnchantmentLevelLangPatchThe getter for the current potion potency patch.static @Unmodifiable com.google.common.collect.BiMap<String,EnchantmentLevelLangPatch> static @Unmodifiable com.google.common.collect.BiMap<String,EnchantmentLevelLangPatch> static voidsetCurrentEnchantmentHooks(@Nullable EnchantmentLevelLangPatch hooks) The setter for the current enchantment level patch.static voidsetCurrentPotionHooks(@Nullable EnchantmentLevelLangPatch hooks) The setter for the current potion potency patch.
-
方法详细资料
-
setCurrentEnchantmentHooks
The setter for the current enchantment level patch. Will be set to default ifhooksis not registered.- 参数:
hooks- the patch you want to set. It should be registered withEnchantmentLevelLangPatch.registerEnchantmentPatch(java.lang.String, xland.mcmod.enchlevellangpatch.api.EnchantmentLevelLangPatch).- 另请参阅:
-
setCurrentPotionHooks
The setter for the current potion potency patch. Will be set to default ifhooksis not registered.- 参数:
hooks- the patch you want to set. It should be registered withEnchantmentLevelLangPatch.registerPotionPatch(java.lang.String, xland.mcmod.enchlevellangpatch.api.EnchantmentLevelLangPatch)- 另请参阅:
-
getCurrentEnchantmentHooks
The getter for the current enchantment level patch. Will return default if the corresponding ID is not registered.- 返回:
- the current enchantment patch
-
getCurrentPotionHooks
The getter for the current potion potency patch. Will return default if the corresponding ID is not registered.- 返回:
- the current potion patch
-
getPotionHooksContext
@API(status=EXPERIMENTAL) public static @Unmodifiable com.google.common.collect.BiMap<String,EnchantmentLevelLangPatch> getPotionHooksContext()- 返回:
- registered ID-LangPatch context of potion hooks.
-
getEnchantmentHooksContext
@API(status=EXPERIMENTAL) public static @Unmodifiable com.google.common.collect.BiMap<String,EnchantmentLevelLangPatch> getEnchantmentHooksContext()- 返回:
- registered ID-LangPatch context of enchantment hooks.
-