Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
InventoryCreativeEvent.java
1 package org.bukkit.event.inventory;
2 
6 
7 /**
8  * This event is called when a player in creative mode puts down or picks up
9  * an item in their inventory / hotbar and when they drop items from their
10  * Inventory while in creative mode.
11  */
13  private ItemStack item;
14 
15  public InventoryCreativeEvent(InventoryView what, SlotType type, int slot, ItemStack newItem) {
16  super(what, type, slot, ClickType.CREATIVE, InventoryAction.PLACE_ALL);
17  this.item = newItem;
18  }
19 
20  public ItemStack getCursor() {
21  return item;
22  }
23 
24  public void setCursor(ItemStack item) {
25  this.item = item;
26  }
27 }