9 lines
199 B
Kotlin
9 lines
199 B
Kotlin
|
package net.shadowfacts.extrahoppers.util
|
||
|
|
||
|
import net.minecraft.util.math.BlockPos
|
||
|
import net.minecraft.util.math.Vec3d
|
||
|
|
||
|
fun BlockPos.toVec3d(): Vec3d {
|
||
|
return Vec3d(x + 0.5, y + 0.5, z + 0.5)
|
||
|
}
|