Interface ModNameProvider<T>

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

@Experimental @OverrideOnly @FunctionalInterface public interface ModNameProvider<T>
Provides the mod name shown in the in-game tooltip. Used to override the mod-name for part hosts to show the highlighted part's original mod.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    getModName(T object, TooltipContext context)
     
  • Method Details

    • getModName

      @Nullable @Nullable String getModName(T object, TooltipContext context)
      Returns:
      Null if this provider can't provide a mod name for the object.