Interface CustomTooltipManager.CustomTooltipProvider<T>

All Known Implementing Classes:
EntityTTProvider, ModDataTTProvider
Enclosing class:
CustomTooltipManager

public static interface CustomTooltipManager.CustomTooltipProvider<T>
Makes a tooltip out of some arbitrary data of type T.

Delegating between providers is handled by the manager.

  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull com.mojang.serialization.Codec<T>
     
    net.minecraft.util.Identifier
     
    @NotNull Optional<net.minecraft.client.item.TooltipData>
    getTooltipData(T content)
     
    @NotNull List<net.minecraft.text.Text>
    getTooltipText(T content)
     
  • Method Details

    • getId

      net.minecraft.util.Identifier getId()
    • getTooltipText

      @NotNull @NotNull List<net.minecraft.text.Text> getTooltipText(T content)
    • getTooltipData

      @NotNull @NotNull Optional<net.minecraft.client.item.TooltipData> getTooltipData(T content)
    • getCodec

      @NotNull @NotNull com.mojang.serialization.Codec<T> getCodec()