public final class AttackDamage extends Object
| Modifier and Type | Method and Description |
|---|---|
static float |
getMeleeDamage(org.bukkit.Material material)
Gets the damage an item in-hand would cause without added benefits.
|
static float |
getMeleeDamage(org.bukkit.Material material,
boolean critical)
Gets the damage an item in-hand would cause without added benefits.
|
static short |
getMeleeDurabilityLoss(org.bukkit.Material material)
Gets the durability loss of the supplied type for a successful hit.
|
public static float getMeleeDamage(org.bukkit.Material material)
material - the item typepublic static float getMeleeDamage(org.bukkit.Material material,
boolean critical)
material - the item typecritical - true if critical damage should be returnedpublic static short getMeleeDurabilityLoss(org.bukkit.Material material)
material - the item typeCopyright © 2021. All rights reserved.