Class ItemTool
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemTool
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionItemTool
(List<ItemTool.Rule> rules, float defaultMiningSpeed, int damagePerBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRule
(ItemTool.Rule rule) boolean
int
float
getRules()
int
hashCode()
static ItemTool
read
(PacketWrapper<?> wrapper) void
setDamagePerBlock
(int damagePerBlock) void
setDefaultMiningSpeed
(float defaultMiningSpeed) void
setRules
(List<ItemTool.Rule> rules) static void
write
(PacketWrapper<?> wrapper, ItemTool tool)
-
Constructor Details
-
ItemTool
-
-
Method Details
-
read
-
write
-
addRule
-
getRules
-
setRules
-
getDefaultMiningSpeed
public float getDefaultMiningSpeed() -
setDefaultMiningSpeed
public void setDefaultMiningSpeed(float defaultMiningSpeed) -
getDamagePerBlock
public int getDamagePerBlock() -
setDamagePerBlock
public void setDamagePerBlock(int damagePerBlock) -
equals
-
hashCode
public int hashCode()
-