Applied kotlin style conventions

This commit is contained in:
bluefireoly
2020-10-18 18:36:49 +02:00
parent e1d4e8bbfc
commit da848728d2
39 changed files with 509 additions and 385 deletions

View File

@@ -17,16 +17,16 @@ import org.bukkit.inventory.meta.ItemMeta
data class CustomItemIdentifier(val customModelData: Int, val placeHolderMaterial: Material) {
constructor(itemStack: ItemStack) :
this(
kotlin.run {
val itemMeta = itemStack.itemMeta
if (itemMeta != null && itemMeta.hasCustomModelData()) {
return@run itemMeta.customModelData
}
return@run 0
},
itemStack.type
)
this(
kotlin.run {
val itemMeta = itemStack.itemMeta
if (itemMeta != null && itemMeta.hasCustomModelData()) {
return@run itemMeta.customModelData
}
return@run 0
},
itemStack.type
)
val itemStack: ItemStack?
get() {