Interface NmsItemMethods


public interface NmsItemMethods
Interface providing version-specific implementations for NMS item operations that require direct access to Minecraft's internal item system.

This interface handles item-related operations that cannot be performed through the standard Bukkit API and require version-specific NMS access. It provides methods for retrieving internal item identifiers and properties that are used by Minecraft's internationalization and display systems.

  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    getI18NItemName(@NotNull ItemStack item)
    Retrieves the internal internationalization name for an item.
  • Method Details

    • getI18NItemName

      @NotNull @NotNull String getI18NItemName(@NotNull @NotNull ItemStack item)
      Retrieves the internal internationalization name for an item.

      This method returns the internal name that Minecraft uses for item localization and translation.

      Parameters:
      item - the ItemStack to get the internal name for
      Returns:
      the internal internationalization name used by Minecraft