public class MaterialUtils
extends java.lang.Object
Constructor and Description |
---|
MaterialUtils() |
Modifier and Type | Method and Description |
---|---|
static float |
getBaseArmor(org.bukkit.inventory.ItemStack stack)
Retrieve the base armor of the given armor.
|
static float |
getBaseArmor(org.bukkit.Material material)
Retrieve the base armor of the given armor.
|
static float |
getBaseArmorToughness(org.bukkit.inventory.ItemStack stack)
Retrieve the base armor toughness of the given item.
|
static float |
getBaseArmorToughness(org.bukkit.Material material)
Retrieve the base armor toughness of the given item.
|
static float |
getBaseDamage(org.bukkit.inventory.ItemStack stack)
Retrieve the base damage of the given item.
|
static float |
getBaseDamage(org.bukkit.Material material)
Retrieve the base damage of the given item.
|
static float |
getBaseSpeed(org.bukkit.inventory.ItemStack stack)
Retrieve the base damage of the given item.
|
static float |
getBaseSpeed(org.bukkit.Material material)
Retrieve the base damage of the given item.
|
static boolean |
isFlower(org.bukkit.Material material) |
static boolean |
isInstantlyBreakable(org.bukkit.Material material) |
static boolean |
willDamageShears(org.bukkit.Material material) |
public static boolean isInstantlyBreakable(org.bukkit.Material material)
public static boolean isFlower(org.bukkit.Material material)
public static boolean willDamageShears(org.bukkit.Material material)
public static float getBaseDamage(org.bukkit.inventory.ItemStack stack)
stack
- - the stack.public static float getBaseDamage(org.bukkit.Material material)
material
- - the material that you want the base damage for.public static float getBaseSpeed(org.bukkit.inventory.ItemStack stack)
stack
- - the stack.public static float getBaseSpeed(org.bukkit.Material material)
material
- - the material.public static float getBaseArmor(org.bukkit.inventory.ItemStack stack)
stack
- - the stack.public static float getBaseArmor(org.bukkit.Material material)
material
- - the material.public static float getBaseArmorToughness(org.bukkit.inventory.ItemStack stack)
stack
- - the stack.public static float getBaseArmorToughness(org.bukkit.Material material)
material
- - the material.