diff options
author | nea <nea@nea.moe> | 2023-06-08 00:11:46 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-08 00:11:46 +0200 |
commit | f98a1f5d53792c026c3688fa89dea3e69910cb3a (patch) | |
tree | 873ee14abe51b1d229149c62f4958252026505fa /src/main/kotlin/moe/nea/firmament/rei | |
parent | b65382a7b74836e13d8d9c9104971737288d1496 (diff) | |
download | Firmament-f98a1f5d53792c026c3688fa89dea3e69910cb3a.tar.gz Firmament-f98a1f5d53792c026c3688fa89dea3e69910cb3a.tar.bz2 Firmament-f98a1f5d53792c026c3688fa89dea3e69910cb3a.zip |
Update to 1.20
- Remove some devenv mods that are not updated yet
- Replace lib39 with fletchingtable for automixins
- Use non kotlin entrypoints
- Make use of DrawContext in a bunch of places
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/rei')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt b/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt index 32186be..deaaeb9 100644 --- a/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt +++ b/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt @@ -23,22 +23,22 @@ 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.EntryStack -import net.minecraft.client.util.math.MatrixStack +import net.minecraft.client.gui.DrawContext import moe.nea.firmament.rei.FirmamentReiPlugin.Companion.asItemEntry object NEUItemEntryRenderer : EntryRenderer<SBItemStack> { override fun render( entry: EntryStack<SBItemStack>, - matrices: MatrixStack, + context: DrawContext, bounds: Rectangle, mouseX: Int, mouseY: Int, delta: Float ) { - matrices.push() - matrices.translate(0F, 0F, 100F) - entry.asItemEntry().render(matrices, bounds, mouseX, mouseY, delta) - matrices.pop() + context.matrices.push() + context.matrices.translate(0F, 0F, 100F) + entry.asItemEntry().render(context, bounds, mouseX, mouseY, delta) + context.matrices.pop() } override fun getTooltip(entry: EntryStack<SBItemStack>, tooltipContext: TooltipContext): Tooltip? { |