#650: Add method to get player's attack cooldown
By: DiamondDagger590 <diamonddagger590@gmail.com>
This commit is contained in:
@@ -490,6 +490,11 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
||||
return getHandle().getExpToLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getAttackCooldown() {
|
||||
return getHandle().s(0.5f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasCooldown(Material material) {
|
||||
Preconditions.checkArgument(material != null, "material");
|
||||
|
||||
Reference in New Issue
Block a user