Class OverhauledTooltipFormatter
java.lang.Object
johnsmith.enchantingoverhauled.client.tooltip.OverhauledTooltipFormatter
- All Implemented Interfaces:
johnsmith.enchantmentcore.api.tooltip.EnchantmentTooltipFormatter
public class OverhauledTooltipFormatter
extends Object
implements johnsmith.enchantmentcore.api.tooltip.EnchantmentTooltipFormatter
Custom
EnchantmentTooltipFormatter implementation for Enchanting Overhauled.
Applies configurable curse concealment, Standard Galactic Alphabet obfuscation, section headers, theme/level coloring, and dynamic enchantment descriptions to item tooltips.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level, net.minecraft.world.item.ItemStack stack) intboolean
-
Constructor Details
-
OverhauledTooltipFormatter
public OverhauledTooltipFormatter()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfacejohnsmith.enchantmentcore.api.tooltip.EnchantmentTooltipFormatter
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacejohnsmith.enchantmentcore.api.tooltip.EnchantmentTooltipFormatter
-
format
public Optional<List<net.minecraft.network.chat.Component>> format(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level, net.minecraft.world.item.ItemStack stack) - Specified by:
formatin interfacejohnsmith.enchantmentcore.api.tooltip.EnchantmentTooltipFormatter
-