/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-API/src/main/java/org/bukkit/event/inventory/InventoryCreativeEvent.java
package org.bukkit.event.inventory;

import org.bukkit.event.inventory.InventoryType.SlotType;
import org.bukkit.inventory.InventoryView;
import org.bukkit.inventory.ItemStack;

/**
 * This event is called when a player in creative mode puts down or picks up an
 * item in their inventory / hotbar and when they drop items from their
 * Inventory while in creative mode.
 */
public class InventoryCreativeEvent extends InventoryClickEvent {
	private ItemStack item;

	public InventoryCreativeEvent(InventoryView what, SlotType type, int slot, ItemStack newItem) {
		super(what, type, slot, ClickType.CREATIVE, InventoryAction.PLACE_ALL);
		this.item = newItem;
	}

	public ItemStack getCursor() {
		return item;
	}

	public void setCursor(ItemStack item) {
		this.item = item;
	}
}
