public class EquipmentUtils
extends java.lang.Object
ItemUtils
Constructor and Description |
---|
EquipmentUtils() |
Modifier and Type | Method and Description |
---|---|
static ArmorCategory |
getArmorCategory(org.bukkit.inventory.ItemStack itemStack)
Gets the category of an armor item stack, based on lore.
|
static int |
getBaseAtk(org.bukkit.inventory.ItemStack itemStack)
Gets the base attack of a weapon item stack, based on lore.
|
static int |
getBaseDef(org.bukkit.inventory.ItemStack itemStack)
Gets the base defense of an armor item stack, based on lore.
|
static int |
getBaseEfc(org.bukkit.inventory.ItemStack itemStack)
Gets the base efficiency of a weapon item stack, based on lore.
|
static int |
getCurrentDurability(org.bukkit.inventory.ItemStack itemStack)
Gets the current durability of an equipment item stack, based on lore.
|
static float |
getEnhancementCriticalDamageMultiplier(org.bukkit.inventory.ItemStack itemStack)
Gets the critical damage multiplier from an equipment item stack, based on lore.
|
static int |
getEnhancementOnKillHP(org.bukkit.inventory.ItemStack itemStack)
Gets the health points on kill from an equipment item stack, based on lore.
|
static int |
getEnhancementOnKillMP(org.bukkit.inventory.ItemStack itemStack)
Gets the mana points on kill from an equipment item stack, based on lore.
|
static float |
getEnhancementRuneEffectivenessMultiplier(org.bukkit.inventory.ItemStack itemStack)
Gets the rune effectiveness multiplier from an equipment item stack, based on lore.
|
static float |
getEnhancementSkillDamageMultiplier(org.bukkit.inventory.ItemStack itemStack)
Gets the skill damage multiplier from an equipment item stack, based on lore.
|
static EquipmentType |
getEquipmentType(org.bukkit.inventory.ItemStack itemStack)
Gets the type of an equipment item stack, based on material.
|
static double |
getExperienceBonus(org.bukkit.inventory.ItemStack itemStack)
Gets the percentage of bonus experience from an equipment item stack, based on lore.
|
static int |
getLevelRequirement(org.bukkit.inventory.ItemStack itemStack)
Gets the level requirement of an equipment item stack, based on lore.
|
static int |
getMaximumDurability(org.bukkit.inventory.ItemStack itemStack)
Gets the maximum durability of an equipment item stack, based on lore.
|
static double |
getReflectionDamage(org.bukkit.inventory.ItemStack itemStack)
Gets the reflection damage from an equipment item stack, based on lore.
|
static int |
getRuneAtkBoost(org.bukkit.inventory.ItemStack itemStack)
Gets the attack boost from runes of an equipment item stack, based on lore.
|
static int |
getRuneDefBoost(org.bukkit.inventory.ItemStack itemStack)
Gets the defense boost from runes of an equipment item stack, based on lore.
|
static int |
getRuneDurBoost(org.bukkit.inventory.ItemStack itemStack)
Gets the durability boost from runes of an equipment item stack, based on lore.
|
static int |
getRuneMight(org.bukkit.inventory.ItemStack itemStack)
Gets the might of a rune item stack, based on lore.
|
static int |
getRuneSuccessChance(org.bukkit.inventory.ItemStack itemStack)
Gets the success chance of a rune item stack, based on lore.
|
static java.lang.String |
getSocketedSkill(org.bukkit.inventory.ItemStack itemStack)
Gets the name of an item stack's socketed skillgem, based on lore.
|
static int |
getSwiftness(org.bukkit.inventory.ItemStack itemStack)
Gets the swiftness of an equipment item stack, based on lore.
|
static int |
getTier(org.bukkit.inventory.ItemStack itemStack)
Gets the tier of an equipment item stack, based on lore.
|
static boolean |
hasRuneSocket(org.bukkit.inventory.ItemStack itemStack)
Checks if an item stack possesses an empty rune slot, based on lore.
|
static boolean |
hasSkillgemSocket(org.bukkit.inventory.ItemStack itemStack)
Checks if an item stack possesses an empty skillgem slot, based on lore.
|
static void |
setBaseAtk(org.bukkit.inventory.ItemStack itemStack,
int newAttack)
Sets the base attack of a weapon item stack, based on lore.
|
static void |
setBaseDef(org.bukkit.inventory.ItemStack itemStack,
int newDefense)
Sets the base defense of an armor item stack, based on lore.
|
static void |
setCurrentDurability(org.bukkit.inventory.ItemStack itemStack,
int durability)
Sets the current durability of an equipment item stack, based on lore.
|
static void |
setMaximumDurability(org.bukkit.inventory.ItemStack itemStack,
int durability)
Sets the maximum durability of an equipment item stack, based on lore + repairs it.
|
public static boolean hasRuneSocket(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static boolean hasSkillgemSocket(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static java.lang.String getSocketedSkill(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static EquipmentType getEquipmentType(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static ArmorCategory getArmorCategory(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getTier(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getBaseAtk(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.setBaseAtk(ItemStack, int)
public static void setBaseAtk(org.bukkit.inventory.ItemStack itemStack, int newAttack)
itemStack
- The item stack to edit.newAttack
- The new base attack value.getBaseAtk(ItemStack)
public static int getBaseDef(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.setBaseDef(ItemStack, int)
public static void setBaseDef(org.bukkit.inventory.ItemStack itemStack, int newDefense)
itemStack
- The item stack to edit.newDefense
- The new base defense value.getBaseDef(ItemStack)
public static int getBaseEfc(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getRuneMight(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getRuneSuccessChance(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getSwiftness(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getCurrentDurability(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.setCurrentDurability(ItemStack, int)
public static int getMaximumDurability(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.setMaximumDurability(ItemStack, int)
public static void setCurrentDurability(org.bukkit.inventory.ItemStack itemStack, int durability)
itemStack
- The item stack to edit.durability
- The new current durability value.getCurrentDurability(ItemStack)
public static void setMaximumDurability(org.bukkit.inventory.ItemStack itemStack, int durability)
itemStack
- The item stack to edit.durability
- The new maximum durability value.getMaximumDurability(ItemStack)
public static int getRuneAtkBoost(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getRuneDefBoost(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getRuneDurBoost(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getLevelRequirement(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static double getExperienceBonus(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static double getReflectionDamage(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getEnhancementOnKillHP(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static int getEnhancementOnKillMP(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static float getEnhancementCriticalDamageMultiplier(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static float getEnhancementSkillDamageMultiplier(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.public static float getEnhancementRuneEffectivenessMultiplier(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to check.