Annotation Interface TooltipMarker


@Retention(RUNTIME) @Target(FIELD) public @interface TooltipMarker
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The number of components the tooltip contains.
    A class to handle dynamic tooltips.
    The key to use for the tooltip.
    net.minecraft.ChatFormatting[]
    An array of ChatFormatting styles to apply to the tooltip.
  • Element Details

    • style

      net.minecraft.ChatFormatting[] style
      An array of ChatFormatting styles to apply to the tooltip.
      Default:
      {}
    • components

      int components
      The number of components the tooltip contains. Each component will be represented with an integer appended to the item name, if more than one exist. Used for simple tooltips.
      Default:
      1
    • key

      String key
      The key to use for the tooltip. If not provided, the item name will be used.
      Default:
      ""
    • dynamicTooltip

      Class<? extends DynamicTooltip> dynamicTooltip
      A class to handle dynamic tooltips. See DynamicTooltip for more information.
      Default:
      tech.anonymoushacker1279.immersiveweapons.client.tooltip.DynamicTooltip.class