aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt b/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
index da06c68..36aa726 100644
--- a/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
+++ b/src/main/kotlin/moe/nea/notenoughupdates/util/MC.kt
@@ -1,7 +1,12 @@
package moe.nea.notenoughupdates.util
+import io.github.moulberry.repo.data.Coordinate
import net.minecraft.client.MinecraftClient
+import net.minecraft.util.math.BlockPos
object MC {
inline val player get() = MinecraftClient.getInstance().player
}
+
+val Coordinate.blockPos: BlockPos
+ get() = BlockPos(x, y, z)