Class CustomToolItem

java.lang.Object
com.github.imdabigboss.easydatapack.api.items.CustomItem
com.github.imdabigboss.easydatapack.api.items.CustomToolItem

public class CustomToolItem extends CustomItem
  • Method Details

    • getAttackDamage

      public double getAttackDamage()
      Gets the attack damage that the tool deals.
      Returns:
      the attack damage that the tool deals
    • getAttackSpeed

      public double getAttackSpeed()
      Gets the attack speed of the tool.
      Returns:
      the attack speed of the tool
    • getPlayerHitEntityEvent

      @Nullable public @Nullable Consumer<org.bukkit.event.entity.EntityDamageByEntityEvent> getPlayerHitEntityEvent()
      Gets the event that is called when a player hits an entity with the tool.
      Returns:
      the event that is called when a player hits an entity with the tool
    • getPlayerBreakBlockEvent

      @Nullable public @Nullable Consumer<org.bukkit.event.block.BlockBreakEvent> getPlayerBreakBlockEvent()
      Gets the event that is called when a player breaks a block with the tool.
      Returns:
      the event that is called when a player breaks a block with the tool
    • formatToolPropertiesLore

      public static void formatToolPropertiesLore(org.bukkit.inventory.ItemStack itemStack, CustomToolItem customItem)