package com.censoredsoftware.demigods.engine.item;

import com.censoredsoftware.demigods.engine.item.book.BookOfPrayer;
import com.censoredsoftware.demigods.engine.item.book.WelcomeBook;
import com.censoredsoftware.demigods.engine.item.weapon.ButtSword;
import com.censoredsoftware.demigods.engine.item.weapon.DeathBow;
import org.bukkit.event.Listener;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.Recipe;

public enum DivineItem
{
	/**
	 * Books
	 */
	BOOK_OF_PRAYER(BookOfPrayer.book, BookOfPrayer.recipe, BookOfPrayer.listener), WELCOME_BOOK(WelcomeBook.book, null, null),

	/**
	 * Weapons
	 */
	BUTT_SWORD(ButtSword.buttSword, ButtSword.recipe, ButtSword.listener), DEATH_BOW(DeathBow.deathBow, DeathBow.recipe, DeathBow.listener);

	private final ItemStack item;
	private final Recipe recipe;
	private final Listener listener;

	private DivineItem(ItemStack item, Recipe recipe, Listener listener)
	{
		this.item = item;
		this.recipe = recipe;
		this.listener = listener;
	}

	public ItemStack getItem()
	{
		return item;
	}

	public Recipe getRecipe()
	{
		return recipe;
	}

	public Listener getUniqueListener()
	{
		return listener;
	}
}

@@ -184,141 +184,8 @@
 ok;%0A
-import com.censoredsoftware.demigods.engine.item.weapon.ButtSword;%0Aimport com.censoredsoftware.demigods.engine.item.weapon.DeathBow;%0A
 impo
@@ -316,32 +316,44 @@
 Item
-%0A%7B%0A%09/**%0A%09 * Books%0A%09 */%0A%09
+ %7B%0A    /**%0A     * Books%0A     */%0A    
 BOOK
@@ -473,34 +473,49 @@
 ull)
-,%0A%0A%09/**%0A%09 * Weapons%0A%09 */%0A%09
+;%0A%0A    /**%0A     * Weapons%0A     */%0A    // 
 BUTT
@@ -648,17 +648,20 @@
 ener);%0A%0A
-%09
+    
 private 
@@ -682,17 +682,20 @@
 k item;%0A
-%09
+    
 private 
@@ -715,17 +715,20 @@
 recipe;%0A
-%09
+    
 private 
@@ -753,17 +753,20 @@
 tener;%0A%0A
-%09
+    
 private 
@@ -825,22 +825,27 @@
 istener)
-%0A%09%7B%0A%09%09
+ %7B%0A        
 this.ite
@@ -854,18 +854,24 @@
 = item;%0A
-%09%09
+        
 this.rec
@@ -884,18 +884,24 @@
 recipe;%0A
-%09%09
+        
 this.lis
@@ -918,21 +918,27 @@
 stener;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 public I
@@ -955,22 +955,27 @@
 etItem()
-%0A%09%7B%0A%09%09
+ %7B%0A        
 return i
@@ -979,21 +979,27 @@
 n item;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 public R
@@ -1015,22 +1015,27 @@
 Recipe()
-%0A%09%7B%0A%09%09
+ %7B%0A        
 return r
@@ -1045,13 +1045,19 @@
 pe;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 publ
@@ -1091,14 +1091,19 @@
 er()
-%0A%09%7B%0A%09%09
+ %7B%0A        
 retu
@@ -1119,9 +1119,12 @@
 er;%0A
-%09
+    
 %7D%0A%7D%0A

Remove the buttsword.