aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/MC.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-06 17:44:58 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-06 17:44:58 +0100
commit06534f9d09732ed29a6fa6bc48def5f7c2b0b865 (patch)
treec77dbd01b6538fa6974e72b9a7df038f0dc9017b /src/main/kotlin/util/MC.kt
parentee21f2da76ea2218ef6a0c6fefa97befa654d115 (diff)
downloadFirmament-06534f9d09732ed29a6fa6bc48def5f7c2b0b865.tar.gz
Firmament-06534f9d09732ed29a6fa6bc48def5f7c2b0b865.tar.bz2
Firmament-06534f9d09732ed29a6fa6bc48def5f7c2b0b865.zip
Re-add REI
Diffstat (limited to 'src/main/kotlin/util/MC.kt')
-rw-r--r--src/main/kotlin/util/MC.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/util/MC.kt b/src/main/kotlin/util/MC.kt
index 27b9457..33825f1 100644
--- a/src/main/kotlin/util/MC.kt
+++ b/src/main/kotlin/util/MC.kt
@@ -6,6 +6,7 @@ import net.minecraft.client.MinecraftClient
import net.minecraft.client.gui.screen.ingame.HandledScreen
import net.minecraft.client.option.GameOptions
import net.minecraft.client.render.WorldRenderer
+import net.minecraft.client.render.item.ItemRenderer
import net.minecraft.item.Item
import net.minecraft.network.packet.c2s.play.CommandExecutionC2SPacket
import net.minecraft.registry.BuiltinRegistries
@@ -69,6 +70,7 @@ object MC {
inline val resourceManager get() = (instance.resourceManager as ReloadableResourceManagerImpl)
+ inline val itemRenderer: ItemRenderer get() = instance.itemRenderer
inline val worldRenderer: WorldRenderer get() = instance.worldRenderer
inline val networkHandler get() = player?.networkHandler
inline val instance get() = MinecraftClient.getInstance()