Applied kotlin style conventions
This commit is contained in:
@@ -10,10 +10,12 @@ import org.bukkit.inventory.ItemStack
|
||||
* the result is equal to [Material.AIR].
|
||||
*/
|
||||
val PrepareItemCraftEvent.isCancelled: Boolean
|
||||
get() = this.inventory.result?.type == Material.AIR
|
||||
get() = this.inventory.result?.type == Material.AIR
|
||||
|
||||
/**
|
||||
* "Cancels" this event by
|
||||
* setting the result to [Material.AIR].
|
||||
*/
|
||||
fun PrepareItemCraftEvent.cancel() { this.inventory.result = ItemStack(Material.AIR) }
|
||||
fun PrepareItemCraftEvent.cancel() {
|
||||
this.inventory.result = ItemStack(Material.AIR)
|
||||
}
|
Reference in New Issue
Block a user