Code:
public enum LunarSpell {
BAKE_PIE(38, 65, 60, new int[] { Magic.ASTRAL_RUNE, 1, FIRE, 5, WATER, 4 }),
CURE_PLANT(SpellType.ON_OBJECT, 28180535, 66, 60, new int[] { ASTRAL, 1, EARTH, 8 }),
MONSTER_EXAMINE(SpellType.ON_NPC, 28, 66, 61, new int[] { COSMIC, 1, ASTRAL, 1, MIND, 1 }),
NPC_CONTACT(26, 67, 63, new int[] { COSMIC, 1, ASTRAL, 1, AIR, 2 }),
CURE_OTHER(SpellType.ON_PLAYER, 23, 68, 65, new int[] { ASTRAL, 1, EARTH, 10 }),
SPELLBOOK_SWAP(34, 96, 130, new int[] { LAW, 1, COSMIC, 2, ASTRAL, 3 });
private final int componentId;
private final SpellType type;
private final int requiredLevel;
private final int experience;
private final int[] runes;
private LunarSpell(int componentId, int requiredLevel, int experience, int... runes) {
this(SpellType.STANDARD, componentId, requiredLevel, experience, runes);
}
private LunarSpell(SpellType type, int componentId, int requiredLevel, int experience, int... runes) {
this.type = type;
this.componentId = componentId;
this.requiredLevel = requiredLevel;
this.experience = experience;
this.runes = runes;
}
public SpellType getType() {
return type;
}
public int getExperience() {
return experience;
}
public int[] getRunes() {
return runes;
}
public int getRequiredLevel() {
return requiredLevel;
}
public int getComponentId() {
return componentId;
}
public String getName() {
String name = name().toLowerCase().replace("_", " ");
return name.substring(0, 1).toUpperCase() + name.substring(1);
}
}
this is the calling method im trying to use: