Class EnchantmentLevelLangPatchConfig
java.lang.Object
xland.mcmod.enchlevellangpatch.api.EnchantmentLevelLangPatchConfig
An API to modify the current enchantment level patch and the current
potion potency patch.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantmentLevelLangPatchThe current enchantment level patch.static EnchantmentLevelLangPatchThe current potion potency patch.Registered ID-LangPatch context of enchantment hooks.Registered ID-LangPatch context of potion hooks.static booleanReturns whether the enchantment level patch registry is frozen.static booleanReturns whether the potion potency patch registry is frozen.static voidThe setter for the current enchantment level patch.static voidThe setter for the current potion potency patch.
-
Method Details
-
setCurrentEnchantmentHooks
The setter for the current enchantment level patch. Will be set to default if
hooksis not registered.You should register the
hooksbefore setting it here.- Parameters:
hooks- A registered patch.- See Also:
-
setCurrentPotionHooks
The setter for the current potion potency patch. Will be set to default if
hooksis not registered.You should register the
hooksbefore setting it here.- Parameters:
hooks- A registered patch.- See Also:
-
isEnchantmentHooksFrozen
Returns whether the enchantment level patch registry is frozen. If frozen, hooks can neither be registered nor set active.
- Returns:
- whether the enchantment level patch registry is frozen
- See Also:
-
isPotionHooksFrozen
Returns whether the potion potency patch registry is frozen. If frozen, hooks can neither be registered nor set active.
- Returns:
- whether the potion potency patch registry is frozen
- See Also:
-
getCurrentEnchantmentHooks
The current enchantment level patch.- Returns:
- The current enchantment level patch.
-
getCurrentPotionHooks
The current potion potency patch.- Returns:
- The current potion potency patch.
-
getEnchantmentHooksContext
Registered ID-LangPatch context of enchantment hooks.- Returns:
- A snapshot of registered ID-to-hook map of enchantment hooks.
-
getPotionHooksContext
Registered ID-LangPatch context of potion hooks.- Returns:
- A snapshot of registered ID-to-hook map of potion hooks.
-