Class GenericAttributeHelper
java.lang.Object
net.xun.lib.common.api.item.tools.GenericAttributeHelper
- All Implemented Interfaces:
AttributeHelper
Default implementation applying standard Minecraft attack attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item.PropertiesapplyAttributes(net.minecraft.world.item.Item.Properties properties, float damage, float speed) Applies standard combat attributes using Minecraft's attribute system.
-
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:
applyAttributesin interfaceAttributeHelper- Parameters:
properties- Initial item properties to modifydamage- Total attack damage (tier base + bonus)speed- Attack speed (this is the actual attack speed)- Returns:
- Modified properties with attack attributes
-