Interface StatusEffectTooltipListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StatusEffectTooltipListener
An event listener that is notified when the contents of a status effect tooltip are being built. This listener can modify the contents of the tooltip.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    notify(net.minecraft.world.effect.MobEffectInstance effect, List<net.minecraft.network.chat.Component> entries, boolean compact, net.minecraft.world.item.TooltipFlag flag)
    Notifies the listener that a status effect tooltip is being built.
  • Method Details

    • notify

      void notify(net.minecraft.world.effect.MobEffectInstance effect, List<net.minecraft.network.chat.Component> entries, boolean compact, net.minecraft.world.item.TooltipFlag flag)
      Notifies the listener that a status effect tooltip is being built.
      Parameters:
      effect - The status effect the tooltip is for.
      entries - The current tooltip entries.
      compact - If the status effect is being rendered in full-width or compact mode.
      flag - The current render flags. Used for things like advanced debug tooltips.