Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
PrepareItemCraftEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.inventory;
2 
3 import org.bukkit.event.HandlerList;
4 import org.bukkit.inventory.CraftingInventory;
5 import org.bukkit.inventory.InventoryView;
6 import org.bukkit.inventory.Recipe;
7 
8 public class PrepareItemCraftEvent extends InventoryEvent {
9  private static final HandlerList handlers = new HandlerList();
10  private boolean repair;
11  private CraftingInventory matrix;
12 
14  super(view);
15  this.matrix = what;
16  this.repair = isRepair;
17  }
18 
24  public Recipe getRecipe() {
25  return matrix.getRecipe();
26  }
27 
31  @Override
33  return matrix;
34  }
35 
40  public boolean isRepair() {
41  return repair;
42  }
43 
44  @Override
46  return handlers;
47  }
48 
49  public static HandlerList getHandlerList() {
50  return handlers;
51  }
52 }