Interface AttributeHelper

All Known Implementing Classes:
GenericAttributeHelper

public interface AttributeHelper
Defines a strategy for applying attribute modifiers to tool items.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.Item.Properties
    applyAttributes(net.minecraft.world.item.Item.Properties properties, float damage, float speed)
    Applies combat attributes to tool properties.
  • Method Details

    • applyAttributes

      net.minecraft.world.item.Item.Properties applyAttributes(net.minecraft.world.item.Item.Properties properties, float damage, float speed)
      Applies combat attributes to tool properties.
      Parameters:
      properties - Initial item properties to enhance
      damage - Attack damage
      speed - Attack speed
      Returns:
      Enhanced item properties with combat attributes