
com.teamwizardry.librarianlib.math.BlockPos.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core classes used by the other LibrarianLib modules
package com.teamwizardry.librarianlib.math
import com.teamwizardry.librarianlib.core.util.block
import net.minecraft.util.math.BlockPos
@JvmSynthetic
public operator fun BlockPos.plus(other: BlockPos): BlockPos = block(this.x + other.x, this.y + other.y, this.z + other.z)
@JvmSynthetic
public operator fun BlockPos.minus(other: BlockPos): BlockPos = block(this.x - other.x, this.y - other.y, this.z - other.z)
@JvmSynthetic
public operator fun BlockPos.times(other: BlockPos): BlockPos = block(this.x * other.x, this.y * other.y, this.z * other.z)
@JvmSynthetic
public operator fun BlockPos.div(other: BlockPos): BlockPos = block(this.x / other.x, this.y / other.y, this.z / other.z)
@JvmSynthetic
public operator fun BlockPos.div(other: Int): BlockPos = block(this.x / other, this.y / other, this.z / other)
@JvmSynthetic
public operator fun BlockPos.times(other: Int): BlockPos = block(this.x * other, this.y * other, this.z * other)
@JvmSynthetic
public operator fun BlockPos.unaryMinus(): BlockPos = this * -1
@JvmSynthetic
public infix fun BlockPos.cross(other: BlockPos): BlockPos = this.crossProduct(other)
@JvmSynthetic
public operator fun BlockPos.component1(): Int = this.x
@JvmSynthetic
public operator fun BlockPos.component2(): Int = this.y
@JvmSynthetic
public operator fun BlockPos.component3(): Int = this.z
© 2015 - 2025 Weber Informatics LLC | Privacy Policy