aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-08 00:11:46 +0200
committernea <nea@nea.moe>2023-06-08 00:11:46 +0200
commitf98a1f5d53792c026c3688fa89dea3e69910cb3a (patch)
tree873ee14abe51b1d229149c62f4958252026505fa /src/main/kotlin/moe/nea/firmament/events
parentb65382a7b74836e13d8d9c9104971737288d1496 (diff)
downloadFirmament-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/events')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/SlotRenderEvents.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/SlotRenderEvents.kt b/src/main/kotlin/moe/nea/firmament/events/SlotRenderEvents.kt
index 695d9c2..c4b0a3d 100644
--- a/src/main/kotlin/moe/nea/firmament/events/SlotRenderEvents.kt
+++ b/src/main/kotlin/moe/nea/firmament/events/SlotRenderEvents.kt
@@ -18,18 +18,18 @@
package moe.nea.firmament.events
-import net.minecraft.client.util.math.MatrixStack
+import net.minecraft.client.gui.DrawContext
import net.minecraft.screen.slot.Slot
interface SlotRenderEvents {
- val matrices: MatrixStack
+ val context: DrawContext
val slot: Slot
val mouseX: Int
val mouseY: Int
val delta: Float
data class Before(
- override val matrices: MatrixStack, override val slot: Slot,
+ override val context: DrawContext, override val slot: Slot,
override val mouseX: Int,
override val mouseY: Int,
override val delta: Float
@@ -39,7 +39,7 @@ interface SlotRenderEvents {
}
data class After(
- override val matrices: MatrixStack, override val slot: Slot,
+ override val context: DrawContext, override val slot: Slot,
override val mouseX: Int,
override val mouseY: Int,
override val delta: Float