public class ItemDurability
extends java.lang.Object
Constructor and Description |
---|
ItemDurability() |
Modifier and Type | Method and Description |
---|---|
ItemDurability |
addSpecialBlock(org.bukkit.Material material,
int durability)
Adds a Special Block.
|
java.util.HashMap<org.bukkit.Material,java.lang.Integer> |
getAllSpecialBlocks() |
int |
getBlockBreak() |
int |
getBlockBreak(org.bukkit.block.Block block) |
int |
getEntityHit() |
int |
getInstantBlockBreak() |
java.lang.Integer |
getSpecialBlockDurability(org.bukkit.Material material)
Get the Durability that will be cut for the Block Specified
|
ItemDurability |
setBlockBreak(int blockBreak)
Set the amount of durability reduced when breaking a block.
|
ItemDurability |
setEntityHit(int entityHit)
Set the amount of durability reduced when hitting another entity.
|
ItemDurability |
setInstantBlockBreak(int instantBlockBreak)
Set the amount of durability reduced when breaking a block that has an
instant breaking speed, e.g.
|
public int getBlockBreak()
public int getBlockBreak(org.bukkit.block.Block block)
block
- The block that you want to know the durability for.public ItemDurability setBlockBreak(int blockBreak)
blockBreak
- public int getInstantBlockBreak()
public ItemDurability setInstantBlockBreak(int instantBlockBreak)
instantBlockBreak
- public int getEntityHit()
public ItemDurability setEntityHit(int entityHit)
entityHit
- public ItemDurability addSpecialBlock(org.bukkit.Material material, int durability)
material
- the blockdurability
- the durability that will be cutpublic java.util.HashMap<org.bukkit.Material,java.lang.Integer> getAllSpecialBlocks()
public java.lang.Integer getSpecialBlockDurability(org.bukkit.Material material)
material
- the block