Class GenericAttributeHelper

java.lang.Object
net.xun.lib.common.api.item.tools.GenericAttributeHelper
All Implemented Interfaces:
AttributeHelper

public class GenericAttributeHelper extends Object implements AttributeHelper
Default implementation applying standard Minecraft attack attributes.
  • Constructor Details

    • GenericAttributeHelper

      public GenericAttributeHelper()
  • Method Details

    • applyAttributes

      public net.minecraft.world.item.Item.Properties applyAttributes(net.minecraft.world.item.Item.Properties properties, float damage, float speed)
      Applies standard combat attributes using Minecraft's attribute system.
      Specified by:
      applyAttributes in interface AttributeHelper
      Parameters:
      properties - Initial item properties to modify
      damage - Total attack damage (tier base + bonus)
      speed - Attack speed (this is the actual attack speed)
      Returns:
      Modified properties with attack attributes