Interface ToolCustomizer

All Known Implementing Classes:
AbstractHitEffectCustomizer

public interface ToolCustomizer
Factory interface for creating custom tool items with specialized initialization.

Implementations of this interface provide fine-grained control over tool item creation, enabling custom tool classes, modified attribute application, or additional properties beyond standard tool behavior. The DEFAULT implementation simply delegates to the piece's own factory via ToolPieceType.createItem(ToolContext, Item.Properties).

Since:
1.0.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ToolCustomizer
    The default customizer that simply uses the piece's own factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.item.Item
    create(ToolPieceType piece, ToolContext context, net.minecraft.world.item.Item.Properties properties)
    Creates a fully configured tool item instance for the given piece.