Class ItemTools

java.lang.Object
games.stendhal.common.ItemTools

public class ItemTools extends Object
Utility functions to handle item names.
Author:
Martin Fuchs
  • Constructor Details

    • ItemTools

      public ItemTools()
  • Method Details

    • itemNameToDisplayName

      public static String itemNameToDisplayName(String name)
      Replace underscores in the given String by spaces. This is used to replace underscore characters in compound item and creature names after loading data from the database.
      Parameters:
      name - name of item
      Returns:
      transformed String if name contained an underscore, or unchanged String object or null if name was null