Interface AttributeHelper
- All Known Implementing Classes:
GenericAttributeHelper
public interface AttributeHelper
Defines a strategy for applying attribute modifiers to tool items.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item.PropertiesapplyAttributes(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 enhancedamage- Attack damagespeed- Attack speed- Returns:
- Enhanced item properties with combat attributes
-