Interface NameProvider<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides the name shown in the in-game tooltip.
-
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.network.chat.Component
getName
(T object, TooltipContext context)
-
Method Details
-
getName
- Returns:
- Null if this provider can't provide a name for the object.
-