aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/util/MC.kt
blob: ab35f0e8c0bc70983b398524d45480ed68cb64fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package moe.nea.firmament.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
    inline val world get() = MinecraftClient.getInstance().world
}

val Coordinate.blockPos: BlockPos
    get() = BlockPos(x, y, z)