Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatGravyBoat committed Jul 19, 2024
1 parent 9725709 commit 9ab8a41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ fun BlockPos.getArchimedeanSpiralPoints(radius: Double): Sequence<Vector3f> {
val b = 10 / 2 / Mth.PI
var i = 0.0f
while (i < Mth.TWO_PI * radius) {
val x = b * i * Mth.cos(i * 57.2958f)
val z = b * i * Mth.sin(i * 57.2958f)
val x = b * i * Mth.cos(i * Mth.RAD_TO_DEG)
val z = b * i * Mth.sin(i * Mth.RAD_TO_DEG)
yield(Vector3f(blockPos.x.toFloat() + x, blockPos.y.toFloat(), blockPos.z.toFloat() + z))
i += 0.01f
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@ enum class ComponentSlot {
OUTPUT,
;

fun canInput(): Boolean {
return this == INPUT
}
fun canInput() = this == INPUT

fun canOutput(): Boolean {
return this == OUTPUT
}
fun canOutput() = this == OUTPUT

fun asComponent(amount: Int): Map<ComponentSlot, Int> {
return mapOf(this to amount)
}
fun asComponent(amount: Int) = mapOf(this to amount)

companion object {
val CODEC: Codec<ComponentSlot> = EnumCodec.of(ComponentSlot::class.java)
Expand Down

0 comments on commit 9ab8a41

Please sign in to comment.