Class UpdateConverter
java.lang.Object
games.stendhal.server.entity.player.UpdateConverter
converts player objects to the most recent version by adding attributes,
transforming quest states and similar migrations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Item
updateItem(String name)
static void
updateItemAttributes(Item item)
static String
updateItemName(String name)
Update old item names to the current naming.static void
updateKeyring(Player player)
Convert keyring feature to keyring item.static void
updatePlayerRPObject(RPObject object)
Updates a player RPObject from an old version of Stendhal.static void
updateQuests(Player player)
Update the quest slot to the current version.
-
Constructor Details
-
UpdateConverter
public UpdateConverter()
-
-
Method Details
-
updateItemName
Update old item names to the current naming.- Parameters:
name
-- Returns:
- the currentName of an Item
-
updateItem
-
updatePlayerRPObject
Updates a player RPObject from an old version of Stendhal.- Parameters:
object
- RPObject representing a player
-
updateItemAttributes
-
updateQuests
Update the quest slot to the current version.- Parameters:
player
-
-
updateKeyring
Convert keyring feature to keyring item. Moves the contents of the keyring to the newly created item and removes the feature and the legacy slot.- Parameters:
player
- converted player
-