Interface PieceType

All Known Implementing Classes:
ArmorType, ToolType

@Internal public interface PieceType
Internal interface for item pieces that have a naming suffix for registration.

This interface provides a standardized way to generate registry names for items within a set by combining a base name with a type-specific suffix.

Internal Use Only: This interface is part of the internal API and is not intended for direct implementation by mod developers. Breaking changes may occur without notice.

Since:
2.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the naming suffix for this piece type.
  • Method Details

    • getNameSuffix

      String getNameSuffix()
      Gets the naming suffix for this piece type.

      The suffix is appended to a base name to create the full registry name for an item. It should typically start with an underscore ("_") to separate it from the base name, following Minecraft's naming conventions.

      Examples:

      • "_sword" for swords
      • "_helmet" for helmets
      • "_chestplate" for chestplates
      Returns:
      the naming suffix for this piece type, never null