forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user