java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemTool

public class ItemTool extends Object
  • Constructor Details

    • ItemTool

      public ItemTool(List<ItemTool.Rule> rules, float defaultMiningSpeed, int damagePerBlock)
  • Method Details

    • read

      public static ItemTool read(PacketWrapper<?> wrapper)
    • write

      public static void write(PacketWrapper<?> wrapper, ItemTool tool)
    • addRule

      public void addRule(ItemTool.Rule rule)
    • getRules

      public List<ItemTool.Rule> getRules()
    • setRules

      public void setRules(List<ItemTool.Rule> rules)
    • getDefaultMiningSpeed

      public float getDefaultMiningSpeed()
    • setDefaultMiningSpeed

      public void setDefaultMiningSpeed(float defaultMiningSpeed)
    • getDamagePerBlock

      public int getDamagePerBlock()
    • setDamagePerBlock

      public void setDamagePerBlock(int damagePerBlock)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object