Skip to content

Commit

Permalink
Added a Vec3 isBlockInShipyard (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffyJenkins authored Feb 13, 2023
1 parent 42a3f38 commit aeeefb7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ fun Level.isBlockInShipyard(blockX: Int, blockY: Int, blockZ: Int) =

fun Level.isBlockInShipyard(pos: BlockPos) = isBlockInShipyard(pos.x, pos.y, pos.z)

fun Level.isBlockInShipyard(pos: Vec3) = isBlockInShipyard(pos.x.toInt(), pos.y.toInt(), pos.z.toInt())

fun Level.isBlockInShipyard(x: Double, y: Double, z: Double) =
isBlockInShipyard(x.toInt(), y.toInt(), z.toInt())

Expand Down

0 comments on commit aeeefb7

Please sign in to comment.