Interface ComponentTooltipAppenderRegistry


@NonExtendable public interface ComponentTooltipAppenderRegistry
A registry of TooltipAppender item components. Adding your item component to this registry will render the item component to the tooltip of them item when it is present, in a location relative to other item components.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static void
    addAfter(ComponentType<?> anchor, ComponentType<? extends TooltipAppender> componentType)
    Adds the specified item component type to the list of tooltip appenders so that it will render after the tooltip appender associated with the specified anchor component type.
    static void
    addBefore(ComponentType<?> anchor, ComponentType<? extends TooltipAppender> componentType)
    Adds the specified item component type to the list of tooltip appenders so that it will render before the tooltip appender associated with the specified anchor component type.
    static void
    addFirst(ComponentType<? extends TooltipAppender> componentType)
    Adds the specified item component type to the list of tooltip appenders to be called first.
    static void
    addLast(ComponentType<? extends TooltipAppender> componentType)
    Adds the specified item component type to the list of tooltip appenders to be called last.
  • Method Details

    • addFirst

      static void addFirst(ComponentType<? extends TooltipAppender> componentType)
      Adds the specified item component type to the list of tooltip appenders to be called first. The component will render at the top of the tooltip.
      Parameters:
      componentType - the component type to add
    • addLast

      static void addLast(ComponentType<? extends TooltipAppender> componentType)
      Adds the specified item component type to the list of tooltip appenders to be called last. The component will render at the bottom of the tooltip.
      Parameters:
      componentType - the component type to add
    • addBefore

      static void addBefore(ComponentType<?> anchor, ComponentType<? extends TooltipAppender> componentType)
      Adds the specified item component type to the list of tooltip appenders so that it will render before the tooltip appender associated with the specified anchor component type.
      Parameters:
      anchor - the component type before which the specified component type will be rendered
      componentType - the component type to add
    • addAfter

      static void addAfter(ComponentType<?> anchor, ComponentType<? extends TooltipAppender> componentType)
      Adds the specified item component type to the list of tooltip appenders so that it will render after the tooltip appender associated with the specified anchor component type.
      Parameters:
      anchor - the component type after which the specified component type will be rendered
      componentType - the component type to add