All Downloads are FREE. Search and download functionalities are using the official Maven repository.

walkmc.event.InventoryItemMergeEvent.kt Maven / Gradle / Ivy

package walkmc.event

import org.bukkit.*
import org.bukkit.entity.*
import org.bukkit.inventory.*
import walkmc.*

/**
 * When a player merges a item in a inventory this will be called.
 * For example, this will be called when a player has a item their cursor and has a item in the clicked slot.
 */
data class InventoryItemMergeEvent(
   val player: Player,
   val inventory: Inventory,
   var clickedItem: ItemStack,
   var mergedItem: ItemStack,
   val slot: Int
) : CancellableEvent() {
   val world: World get() = player.world
   val location: Location get() = player.location
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy