java.lang.Object
net.ixdarklord.coolcatcore.api.client.registry.TooltipComponentRegistry
public final class TooltipComponentRegistry
extends Object
How custom tooltip components (from Item.getTooltipImage) are drawn. Register while the client initialises.
-
Method Summary
static <T extends net.minecraft.world.inventory.tooltip.TooltipComponent>
void
register(Class<T> type,
Function<? super T,? extends net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> factory)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
register
public static <T extends net.minecraft.world.inventory.tooltip.TooltipComponent>
void register(Class<T> type,
Function<? super T,? extends net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> factory)