Dynamic Attribute Tool
public interface DynamicAttributeTool
Content copied to clipboard
Interface for adding various tool attributes to items.
Functions in this interface will provide user context if it is available. These context parameters are provided on a best-effort basis, and implementations should not fail hard if they are absent.
Functions
getDynamicModifiers
Link copied to clipboard
Multimap<EntityAttribute, EntityAttributeModifier> getDynamicModifiers(EquipmentSlot slot, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
getMiningLevel
Link copied to clipboard
@Deprecated()
Content copied to clipboard
int getMiningLevel(Tag<Item> tag, BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
getMiningSpeedMultiplier
Link copied to clipboard
@Deprecated()
Content copied to clipboard
float getMiningSpeedMultiplier(Tag<Item> tag, BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
postProcessMiningSpeed
Link copied to clipboard
float postProcessMiningSpeed(Tag<Item> tag, BlockState state, ItemStack stack, @Nullable() LivingEntity user, float currentSpeed, boolean isEffective)
Content copied to clipboard
Inheritors
MixinToolItem
Link copied to clipboard
Sources
jvm source
Link copied to clipboard