aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/kotlin/moe/nea/notenoughupdates/rei
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-07-26 23:12:13 +0200
committernea <romangraef@gmail.com>2022-07-26 23:12:13 +0200
commit386ee78026801bf50d9cba24de541ed087f145d6 (patch)
tree3f85f2595141802d3d7f9828d440cfd50aee9a7c /common/src/main/kotlin/moe/nea/notenoughupdates/rei
parentcc9c23914b8a928026a457b259e44bc4bb2fe655 (diff)
downloadfirmament-386ee78026801bf50d9cba24de541ed087f145d6.tar.gz
firmament-386ee78026801bf50d9cba24de541ed087f145d6.tar.bz2
firmament-386ee78026801bf50d9cba24de541ed087f145d6.zip
1.19 and no more forge
Diffstat (limited to 'common/src/main/kotlin/moe/nea/notenoughupdates/rei')
-rw-r--r--common/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt1
-rw-r--r--common/src/main/kotlin/moe/nea/notenoughupdates/rei/SBItemEntryDefinition.kt5
2 files changed, 4 insertions, 2 deletions
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<NEUItem> {
)
}
- override fun getTooltip(entry: EntryStack<NEUItem>, mouse: Point): Tooltip? {
+ override fun getTooltip(entry: EntryStack<NEUItem>, tooltipContext: TooltipContext): Tooltip? {
return VanillaEntryTypes.ITEM.definition.renderer
- .getTooltip(entry.asItemEntry(), mouse)
+ .getTooltip(entry.asItemEntry(), tooltipContext)
}
}