Package games.stendhal.common
Class ItemTools
java.lang.Object
games.stendhal.common.ItemTools
Utility functions to handle item names.
- Author:
- Martin Fuchs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
itemNameToDisplayName(String name)
Replace underscores in the given String by spaces.
-
Constructor Details
-
ItemTools
public ItemTools()
-
-
Method Details
-
itemNameToDisplayName
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
-