From 386ee78026801bf50d9cba24de541ed087f145d6 Mon Sep 17 00:00:00 2001 From: nea Date: Tue, 26 Jul 2022 23:12:13 +0200 Subject: 1.19 and no more forge --- common/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt | 1 + .../kotlin/moe/nea/notenoughupdates/rei/SBItemEntryDefinition.kt | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'common/src/main/kotlin/moe/nea/notenoughupdates/rei') diff --git a/common/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt b/common/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt index 6d960e3..cc4b0f1 100644 --- a/common/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt +++ b/common/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt @@ -28,6 +28,7 @@ class NEUReiPlugin : REIClientPlugin { registry.register(SKYBLOCK_ITEM_TYPE_ID, SBItemEntryDefinition) } + override fun registerEntries(registry: EntryRegistry) { neuRepo.items.items.values.forEach { if (!it.isVanilla) diff --git a/common/src/main/kotlin/moe/nea/notenoughupdates/rei/SBItemEntryDefinition.kt b/common/src/main/kotlin/moe/nea/notenoughupdates/rei/SBItemEntryDefinition.kt index 6612113..6726b4f 100644 --- a/common/src/main/kotlin/moe/nea/notenoughupdates/rei/SBItemEntryDefinition.kt +++ b/common/src/main/kotlin/moe/nea/notenoughupdates/rei/SBItemEntryDefinition.kt @@ -6,6 +6,7 @@ import me.shedaniel.math.Point import me.shedaniel.math.Rectangle import me.shedaniel.rei.api.client.entry.renderer.EntryRenderer import me.shedaniel.rei.api.client.gui.widgets.Tooltip +import me.shedaniel.rei.api.client.gui.widgets.TooltipContext import me.shedaniel.rei.api.common.entry.EntrySerializer import me.shedaniel.rei.api.common.entry.EntryStack import me.shedaniel.rei.api.common.entry.comparison.ComparisonContext @@ -50,9 +51,9 @@ object SBItemEntryDefinition : EntryDefinition { ) } - override fun getTooltip(entry: EntryStack, mouse: Point): Tooltip? { + override fun getTooltip(entry: EntryStack, tooltipContext: TooltipContext): Tooltip? { return VanillaEntryTypes.ITEM.definition.renderer - .getTooltip(entry.asItemEntry(), mouse) + .getTooltip(entry.asItemEntry(), tooltipContext) } } -- cgit