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 Details

    • OverhauledTooltipFormatter

      public OverhauledTooltipFormatter()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface johnsmith.enchantmentcore.api.tooltip.EnchantmentTooltipFormatter
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface johnsmith.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:
      format in interface johnsmith.enchantmentcore.api.tooltip.EnchantmentTooltipFormatter