Code:
package org.dementhium.content.skills.summoning;
import java.util.HashMap;
import java.util.Map;
import org.dementhium.model.Item;
/**
* Handles and Represents a summoning Pouch
* @author Eclipse
*
*/
public enum SummoningPouch {
/**
* Represents a spirit wolf pouch.
*/
SPIRIT_WOLF_POUCH(12047, 1, 4.8, 6829, 0.1, 1, new Item(12158), new Item(12155), new Item(2859), new Item(12183, 7)),
/**
* Represents a dreadfowl pouch.
*/
DREADFOWL_POUCH(12043, 4, 9.3, 6825, 0.1, 1, new Item(12158), new Item(12155), new Item(2138), new Item(12183, 8)),
/**
* Represents a spirit spider pouch.
*/
SPIRIT_SPIDER_POUCH(12059, 10, 12.6, 6841, 0.2, 2, new Item(12158), new Item(12155), new Item(6291), new Item(12183, 8)),
/**
* Represents a thorny snail pouch.
*/
THORNY_SNAIL_POUCH(12019, 13, 12.6, 6806, 0.2, 2, new Item(12158), new Item(12155), new Item(3363), new Item(12183, 9)),
/**
* Represents a granite crab pouch.
*/
GRANITE_CRAB_POUCH(12009, 16, 31.6, 6796, 0.2, 2, new Item(12158), new Item(12155), new Item(440), new Item(12183, 7)),
/**
* Represents a spirit mosquito pouch.
*/
SPIRIT_MOSQUITO_POUCH(12778, 17, 46.5, 7331, 0.5, 2, new Item(12158), new Item(12155), new Item(6319), new Item(12183, 1)),
/**
* Represents a desrrt wyrm pouch.
*/
DESERT_WYRM_POUCH(12049, 18, 31.2, 6831, 0.4, 1, new Item(12159), new Item(12155), new Item(1783), new Item(12183, 45)),
/**
* Represents a spirit scorpion pouch.
*/
SPIRIT_SCORPION_POUCH(12055, 19, 83.2, 6837, 0.9, 2, new Item(12160), new Item(12155), new Item(3095), new Item(12183, 57)),
/**
* Represents a spirit tz-kih pouch.
*/
SPIRIT_TZ_KIH_POUCH(12808, 22, 96.8, 7361, 1.1, 3, new Item(12160), new Item(12168), new Item(12155), new Item(12183, 64)),
/**
* Represents an albino rat pouch.
*/
ALBINO_RAT_POUCH(12067, 23, 202.4, 6847, 2.3, 1, new Item(12163), new Item(12155), new Item(2134), new Item(12183, 75)),
/**
* Represents a spirit kalphite pouch.
*/
SPIRIT_KALPHITE_POUCH(12064, 25, 220, 6994, 2.5, 3, new Item(12163), new Item(12155), new Item(3138), new Item(12183, 51)),
/**
* Represents a compost mound pouch.
*/
COMPOST_MOUND_POUCH(12091, 28, 49.8, 6872, 0.6, 6, new Item(12159), new Item(12155), new Item(6032), new Item(12183, 47)),
/**
* Represents a giant chinchompa pouch.
*/
GIANT_CHINCHOMPA_POUCH(12800, 29, 255.2, 7353, 2.9, 1, new Item(12163), new Item(12155), new Item(10033), new Item(12183, 84)),
/**
* Represents a vampire bat pouch.
*/
VAMPIRE_BAT_POUCH(12053, 31, 136, 6835, 1.5, 4, new Item(12160), new Item(12155), new Item(3325), new Item(12183, 81)),
/**
* Represents a honey badger pouch.
*/
HONEY_BADGER_POUCH(12065, 32, 140.8, 6845, 1.6, 4, new Item(12160), new Item(12155), new Item(12156), new Item(12183, 84)),
/**
* Represents a beaver pouch.
*/
BEAVER_POUCH(12021, 33, 57.6, 6808, 0.7, 4, new Item(12159), new Item(12155), new Item(1519), new Item(12183, 72)),
/**
* Represents a void ravager pouch.
*/
VOID_RAVAGER_POUCH(12818, 34, 59.6, 7370, 0.7, 4, new Item(12159), new Item(12164), new Item(12155), new Item(12183, 74)),
/**
* Represents a void spinner pouch.
*/
VOID_SPINNER_POUCH(12781, 34, 59.6, 7333, 0.7, 4, new Item(12163), new Item(12166), new Item(12155), new Item(12183, 74)),
/**
* Represents a void torcher pouch.
*/
VOID_TORCHER_POUCH(12798, 34, 59.6, 7351, 0.7, 4, new Item(12163), new Item(12167), new Item(12155), new Item(12183, 74)),
/**
* Represents a void shifter pouch.
*/
VOID_SHIFTER_POUCH(12814, 34, 59.6, 7367, 0.7, 4, new Item(12163), new Item(12165), new Item(12155), new Item(12183, 74)),
/**
* Represents a bronze minotaur pouch.
*/
BRONZE_MINOTAUR_POUCH(12073, 36, 316.8, 6853, 3.6, 3, new Item(12163), new Item(12155), new Item(2349), new Item(12183, 102)),
/**
* Represents an iron minotaur pouch.
*/
IRON_MINOTAUR_POUCH(12075, 46, 404.8, 6855, 4.6, 9, new Item(12163), new Item(12155), new Item(2351), new Item(12183, 125)),
/**
* Represents a steel minotaur pouch.
*/
STEEL_MINOTAUR_POUCH(12077, 56, 492.8, 6857, 5.6, 9, new Item(12163), new Item(12155), new Item(2353), new Item(12183, 141)),
/**
* Represents a mithril minotaur pouch.
*/
MITHRIL_MINOTAUR_POUCH(12079, 66, 580.8, 6859, 6.6, 9, new Item(12163), new Item(12155), new Item(2359), new Item(12183, 152)),
/**
* Represents an adamant minotaur pouch.
*/
ADAMANT_MINOTAUR_POUCH(12081, 76, 668.8, 6861, 7.6, 9, new Item(12163), new Item(12155), new Item(2361), new Item(12183, 144)),
/**
* Represents a rune minotaur pouch.
*/
RUNE_MINOTAUR_POUCH(12083, 86, 756.8, 6863, 8.6, 9, new Item(12163), new Item(12155), new Item(2363), new Item(12183, 1)),
/**
* Represents a bull ant pouch.
*/
BULL_ANT_POUCH(12087, 40, 52.8, 6867, 0.6, 5, new Item(12158), new Item(12155), new Item(6010), new Item(12183, 11)),
/**
* Represents a macaw pouch.
*/
MACAW_POUCH(12071, 41, 72.4, 6851, 0.8, 5, new Item(12159), new Item(12155), new Item(249), new Item(12183, 78)),
/**
* Represents an evil turnip pouch.
*/
EVIL_TURNIP_POUCH(12051, 42, 184.8, 6833, 2.1, 5, new Item(12160), new Item(12155), new Item(12153), new Item(12183, 104)),
/**
* Represents a spirit cockatrice pouch.
*/
SPIRIT_COCKATRICE_POUCH(12095, 43, 75.2, 6875, 0.9, 5, new Item(12159), new Item(12155), new Item(12109), new Item(12183, 88)),
/**
* Represents a spirit guthatrice pouch.
*/
SPIRIT_GUTHATRICE_POUCH(12097, 43, 75.2, 6877, 0.9, 5, new Item(12159), new Item(12155), new Item(12111), new Item(12183, 88)),
/**
* Represents a spirit saratrice pouch.
*/
SPIRIT_SARATRICE_POUCH(12099, 43, 75.2, 6879, 0.9, 5, new Item(12159), new Item(12155), new Item(12113), new Item(12183, 88)),
/**
* Represents a spirit zamatrice pouch.
*/
SPIRIT_ZAMATRICE_POUCH(12101, 43, 75.2, 6881, 0.9, 5, new Item(12159), new Item(12155), new Item(12115), new Item(12183, 88)),
/**
* Represents a spirit pengatrice pouch.
*/
SPIRIT_PENGATRICE_POUCH(12103, 43, 75.2, 6883, 0.9, 5, new Item(12159), new Item(12155), new Item(12117), new Item(12183, 88)),
/**
* Represents a coraxatrice pouch.
*/
SPIRIT_CORAXATRICE_POUCH(12105, 43, 75.2, 6885, 0.9, 5, new Item(12159), new Item(12155), new Item(12119), new Item(12183, 88)),
/**
* Represents a vulatrice pouch.
*/
SPIRIT_VULATRICE(12107, 43, 75.2, 6887, 0.9, 5, new Item(12159), new Item(12155), new Item(12121), new Item(12183, 88)),
/**
* Represents a pyrelord pouch.
*/
PYRELORD_POUCH(12816, 46, 202.4, 7377, 2.3, 5, new Item(12160), new Item(12155), new Item(590), new Item(12183, 111)),
/**
* Represents a magpie pouch.
*/
MAGPIE_POUCH(12041, 47, 83.2, 6823, 0.9, 5, new Item(12159), new Item(12155), new Item(1635), new Item(12183, 88)),
/**
* Represents a bloated leech pouch.
*/
BLOATED_LEECH_POUCH(12061, 49, 215.2, 6843, 2.4, 5, new Item(12160), new Item(12155), new Item(2132), new Item(12183, 117)),
/**
* Represents a spirit terrorbird pouch.
*/
SPIRIT_TERRORBIRD_POUCH(12007, 52, 68.4, 6794, 0.8, 6, new Item(12158), new Item(12155), new Item(9978), new Item(12183, 12)),
/**
* Represents an abyssal parasite pouch.
*/
ABYSSAL_PARASITE_POUCH(12035, 54, 94.8, 6818, 1.1, 6, new Item(12159), new Item(12155), new Item(12161), new Item(12183, 106)),
/**
* Represents a spirit jelly pouch.
*/
SPIRIT_JELLY_POUCH(12027, 55, 484, 6992, 5.5, 6, new Item(12163), new Item(12155), new Item(1937), new Item(12183, 151)),
/**
* Represents an ibis pouch.
*/
IBIS_POUCH(12531, 56, 98.8, 6991, 1.1, 6, new Item(12159), new Item(12155), new Item(311), new Item(12183, 109)),
/**
* Represents a spirit kyatt pouch.
*/
SPIRIT_KYATT_POUCH(12812, 57, 501.6, 7365, 5.7, 6, new Item(12163), new Item(12155), new Item(10103), new Item(12183, 153)),
/**
* Represents a spirit larupia pouch.
*/
SPIRIT_LARUPIA_POUCH(12784, 57, 501.6, 7337, 5.7, 6, new Item(12163), new Item(12155), new Item(10095), new Item(12183, 155)),
/**
* Represents a spirit graahk pouch.
*/
SPIRIT_GRAAHK_POUCH(12710, 57, 501.6, 7363, 5.7, 6, new Item(12163), new Item(12155), new Item(10099), new Item(12183, 154)),
/**
* Represents a karamthulhu overlord pouch.
*/
KARAMTHULHU_POUCH(12023, 58, 510.4, 6809, 5.8, 6, new Item(12163), new Item(12155), new Item(6667), new Item(12183, 144)),
/**
* Represents a smoke devil pouch.
*/
SMOKE_DEVIL_POUCH(12085, 61, 268, 6865, 3, 7, new Item(12160), new Item(12155), new Item(9736), new Item(12183, 141)),
/**
* Represents an abyssal lurker pouch.
*/
ABYSSAL_LUKRER(12037, 62, 109.6, 6820, 1.9, 9, new Item(12159), new Item(12155), new Item(12161), new Item(12183, 119)),
/**
* Represents a spirit cobra pouch.
*/
SPIRIT_COBRA_POUCH(12015, 63, 276.8, 6802, 3.1, 6, new Item(12160), new Item(12155), new Item(6287), new Item(12183, 116)),
/**
* Represents a stranger plant pouch.
*/
STRANGER_PLANT_POUCH(12045, 64, 281.6, 6827, 3.2, 6, new Item(12160), new Item(12155), new Item(8431), new Item(12183, 128)),
/**
* Represents a barker toad pouch.
*/
BARKER_TOAD_POUCH(12123, 66, 87, 6889, 1, 7, new Item(12158), new Item(12155), new Item(2150), new Item(12183, 11)),
/**
* Represents a war tortoise pouch.
*/
WAR_TORTOISE_POUCH(12031, 67, 58.6, 6815, 0.7, 7, new Item(12158), new Item(12155), new Item(7939), new Item(12183, 1)),
/**
* Represents a bunyip pouch.
*/
BUNYIP_POUCH(12029, 68, 119.2, 6813, 1.4, 7, new Item(12159), new Item(12155), new Item(383), new Item(12183, 110)),
/**
* Represents a fruit bat pouch.
*/
FRUIT_BAT_POUCH(12033, 69, 121.2, 6817, 1.4, 8, new Item(12159), new Item(12155), new Item(1963), new Item(12183, 130)),
/**
* Represents a ravenous locust pouch.
*/
RAVENOUS_LOCUST_POUCH(12820, 70, 132, 7372, 1.5, 4, new Item(12160), new Item(12155), new Item(1933), new Item(12183, 79)),
/**
* Represents an arctic bear pouch.
*/
ARCTIC_BEAR_POUCH(12057, 71, 93.2, 6839, 1.1, 8, new Item(12158), new Item(12155), new Item(10117), new Item(12183, 14)),
/**
* Represents a phoenix pouch.
*/
PHOENIX_POUCH(14623, 72, 302, 8575, 1.1, 8, new Item(12160), new Item(12155), new Item(14616), new Item(12183, 165)),
/**
* Represents an obsidian golem pouch.
*/
OBSIDIAN_GOLEM_POUCH(12792, 73, 642.4, 7345, 7.3, 8, new Item(12163), new Item(12155), new Item(12168), new Item(12183, 195)),
/**
* Represents a granite lobster pouch.
*/
GRANITE_LOBSTER_POUCH(12069, 74, 325.6, 6849, 3.7, 8, new Item(12160), new Item(12155), new Item(6983), new Item(12183, 166)),
/**
* Represents a praying mantis pouch.
*/
PRAYING_MANTIS_POUCH(12011, 75, 329.6, 6798, 3.6, 8, new Item(12160), new Item(12155), new Item(2460), new Item(12183, 168)),
/**
* Represents a forge regent pouch.
*/
FORGE_REGENT_BEAST(12782, 76, 134, 7335, 1.5, 9, new Item(12159), new Item(12155), new Item(10020), new Item(12183, 141)),
/**
* Represents a talon beast pouch.
*/
TALON_BEAST_POUCH(12794, 77, 1015.2, 7347, 3.8, 9, new Item(12160), new Item(12155), new Item(12162), new Item(12183, 174)),
/**
* Represents a giant ent pouch.
*/
GIANT_ENT_POUCH(12013, 78, 136.8, 6800, 1.6, 8, new Item(12159), new Item(5933), new Item(12155), new Item(12183, 124)),
/**
* Represents a hydra pouch.
*/
HYDRA_POUCH(12025, 80, 140.8, 9488, 1.6, 9, new Item(12159), new Item(571), new Item(12155), new Item( 12183, 128)),
/**
* Represents a spirit dagannoth pouch.
*/
SPIRIT_DAGANNOTH_POUCH(12017, 83, 364.8, 6804, 4.1, 9, new Item(12160), new Item(6155), new Item(12155), new Item( 12183, 1)),
/**
* Represents a unicorn stallion pouch.
*/
UNICORN_STALLION_POUCH(12039, 89, 154.4, 6822, 1.8, 9, new Item(12159), new Item(237), new Item(12155), new Item( 12183, 140)),
/**
* Represents a wolpertinger pouch.
*/
WOLPERTINGER_POUCH(12089, 92, 404.8, 6869, 4.5, 10, new Item(12160), new Item(2859), new Item(3226), new Item(12155), new Item( 12183, 203)),
/**
* Represents a pack yak pouch.
*/
PACK_YAK_POUCH(12093, 96, 422.4, 6873, 4.8, 10, new Item(12160), new Item(10818), new Item(12155), new Item( 12183, 211)),
/**
* Represents a fire titan pouch.
*/
FIRE_TITAN_POUCH(12802, 79, 695.2, 7355, 7.9, 9, new Item(12163), new Item(1442), new Item(12155), new Item(12183, 198)),
/**
* Represents a moss titan pouch.
*/
MOSS_TITAN_POUCH(12804, 79, 695.2, 7357, 7.9, 9, new Item(12163), new Item(1440), new Item(12155), new Item(12183, 198)),
/**
* Represents an ice titan pouch.
*/
ICE_TITAN_POUCH(12806, 79, 695.2,7359, 7.9, 9, new Item(12163), new Item(1438), new Item(1444), new Item(12155), new Item(12183, 198)),
/**
* Represents a lava titan pouch.
*/
LAVA_TITAN_POUCH(12788, 83, 730.4, 7341, 8.3, 9, new Item(12163), new Item(12168), new Item(12155), new Item(12183, 219)),
/**
* Represents a swamp titan pouch.
*/
SWAMP_TITAN_POUCH(12776, 85, 373.6, 7329, 4.2, 9, new Item(12160), new Item(10149), new Item(12155), new Item(12183, 150)),
/**
* Represents a geyser titan pouch.
*/
GEYSER_TITAN_POUCH(12786, 89, 783.2, 7339, 8.9, 9, new Item(12163), new Item(1444), new Item(12155), new Item(12183, 222)),
/**
* Represents an abyssal titan pouch.
*/
ABYSSAL_TITAN_POUCH(12796, 93, 163.2, 7349, 1.9, 10, new Item(12159), new Item(12161), new Item(12155), new Item(12183, 113)),
/**
* Represents an iron titan pouch.
*/
IRON_TITAN_POUCH(12822, 95, 417.6, 7375, 4.7, 10, new Item(12160), new Item(1115), new Item(12155), new Item(12183, 198)),
/**
* Represents a steel titan pouch.
*/
STEEL_TITAN_POUCH(12790, 99, 435.2, 7343, 4.9, 10, new Item(12160), new Item(1119), new Item(12155), new Item(12183, 178));
/**
* The mapping.
*/
private static final Map<Integer, SummoningPouch> POUCHES = new HashMap<Integer, SummoningPouch>();
/**
* Populate the mapping.
*/
static {
for (SummoningPouch pouch : SummoningPouch.values()) {
POUCHES.put(pouch.pouchId, pouch);
}
}
/**
* Gets a summoning pouch object from the mapping.
* @param pouchId The pouch item id.
* @return The {@code SummoningPouch} {@code Object},
* <br> or {@code null} if the pouch didn't exist.
*/
public static SummoningPouch get(int pouchId) {
return POUCHES.get(pouchId);
}
/**
* The pouch item id.
*/
private final int pouchId;
/**
* The level required to create this pouch.
*/
private final int levelRequired;
/**
* The experience gained when creating this pouch.
*/
private final double createExperience;
/**
* The familiar npc id.
*/
private final int npcId;
/**
* The experience gained when summoning the familiar.
*/
private final double summonExperience;
/**
* The summon cost.
*/
private final int summonCost;
/**
* The items required to create this pouch.
*/
private final Item[] items;
/**
* Constructs a new {@code SummoningPouch} {@code Object}.
* @param pouchId The pouch item id.
* @param levelRequired The level required to create.
* @param createExperience The experience gained when creating a pouch.
* @param npcId The familiar's NPC id.
* @param summonExperience The experience gained when summoning.
* @param summonCost The amount of summoning points to drain when summoned.
* @param items The items required to create this pouch.
*/
private SummoningPouch(int pouchId, int levelRequired, double createExperience, int npcId, double summonExperience, int summonCost, Item...items) {
this.pouchId = pouchId;
this.levelRequired = levelRequired;
this.createExperience = createExperience;
this.npcId = npcId;
this.summonExperience = summonExperience;
this.summonCost = summonCost;
this.items = items;
}
/**
* @return the pouchId
*/
public int getPouchId() {
return pouchId;
}
/**
* @return the levelRequired
*/
public int getLevelRequired() {
return levelRequired;
}
/**
* @return the createExperience
*/
public double getCreateExperience() {
return createExperience;
}
/**
* @return the npcId
*/
public int getNpcId() {
return npcId;
}
/**
* @return the summonExperience
*/
public double getSummonExperience() {
return summonExperience;
}
/**
* Gets the amount of points to decrease the summoning points with when summoned.
* @return The amount of points.
*/
public int getSummonCost() {
return summonCost;
}
/**
* @return the items
*/
public Item[] getItems() {
return items;
}
}
credits to eclipse altough he scammed me >.>