[API Bug] Method "addTooltip" Doesn't Actually Add Widget
Phoupraw opened this issue ยท 1 comments
dev.emi.emi.api.widget.WidgetHolder#addTooltip(java.util.function.BiFunction<java.lang.Integer,java.lang.Integer,java.util.List<net.minecraft.client.gui.tooltip.TooltipComponent>>, int, int, int, int)
only creates a new dev.emi.emi.api.widget.TooltipWidget
but doesn't invoke dev.emi.emi.api.widget.WidgetHolder#add
so the tooltip widget isn't be added actually. So does dev.emi.emi.api.widget.WidgetHolder#addTooltip(java.util.List<net.minecraft.client.gui.tooltip.TooltipComponent>, int, int, int, int)
and dev.emi.emi.api.widget.WidgetHolder#addTooltipText
.
default TooltipWidget addTooltip(BiFunction<Integer, Integer, List<TooltipComponent>> tooltipSupplier, int x, int y, int width, int height) {
return new TooltipWidget(tooltipSupplier, x, y, width, height);
}