Format code

This commit is contained in:
2026-05-16 23:08:09 +02:00
parent 81dd8045f2
commit d110df924e
562 changed files with 11025 additions and 10059 deletions
@@ -30,7 +30,8 @@ abstract class KotlinInventory(val player: Player) {
abstract fun createInventory(): SWInventory
fun open() = inv.open()
fun open() =
inv.open()
operator fun set(slot: Int, item: Pair<ItemStack, (event: InventoryClickEvent) -> Unit>) {
inv.setItemEvent(slot, item.first, item.second)
@@ -42,7 +42,7 @@ class Area(loc1: Location, loc2: Location) {
for (x in locations) {
yield(x.block)
}
}
}
val locations: Sequence<Location>
inline get() = sequence {
@@ -53,7 +53,7 @@ class Area(loc1: Location, loc2: Location) {
}
}
}
}
}
}
infix fun Location.max(other: Location): Location {