Kotlin utilities for Quilt mod development
//kettle/coffee.cypher.kettle.math
Name | Summary |
---|---|
horizontalNeighbors | [jvm] val BlockPos.horizontalNeighbors: List<BlockPos> Returns a list of horizontal direct neighbors (shared face, same height) of this BlockPos. |
neighbors | [jvm] val BlockPos.neighbors: List<BlockPos> Returns a list of all direct neighbors (shared face) of this BlockPos. |
Name | Summary |
---|---|
boxTo | [jvm] infix fun Vec3d.boxTo(that: Vec3d): Box Creates a Box between two Vec3d. [jvm] infix fun Vec3i.boxTo(that: Vec3i): Box Creates a Box between two Vec3i. |
component1 | [jvm] operator fun Box.component1(): Vec3d Returns the starting Vec3d of this Box. |
component2 | [jvm] operator fun Box.component2(): Vec3d Returns the ending Vec3d of this Box. |
copy | [jvm] fun Vec3d.copy(x: Double = this.x, y: Double = this.y, z: Double = this.z): Vec3d Creates a new Vec3d with the given x, y, z components, using this vector’s components if not given. [jvm] fun Vec3i.copy(x: Int = this.x, y: Int = this.y, z: Int = this.z): Vec3i Creates a new Vec3i with the given x, y, z components, using this vector’s components if not given. |
getContainedBlockPos | [jvm] fun Box.getContainedBlockPos(includePartial: Boolean = true): Sequence<BlockPos> Returns a Sequence of all BlockPos contained within this Box. If includePartial is set to true (or by default), includes positions that are only partially contained within the box. |
toBlockPos | [jvm] fun Vec3i.toBlockPos(): BlockPos Converts this Vec3i to a BlockPos. |
toDoubleVector | [jvm] fun Vec3i.toDoubleVector(): Vec3d Converts this Vec3i to a Vec3d. |
toTriple | [jvm] fun Vec3d.toTriple(): Triple<Double, Double, Double> Converts this Vec3d to a Triple of its components. [jvm] fun Vec3i.toTriple(): Triple<Int, Int, Int> Converts this Vec3i to a Triple of its components. |
toVector | [jvm] fun Triple<Double, Double, Double>.toVector(): Vec3d Creates a Vec3d from the components of this Triple. [jvm] fun Triple<Int, Int, Int>.toVector(): Vec3i Creates a Vec3i from the components of this Triple. |