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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemupdateItem(String name) static voidupdateItemAttributes(Item item) static StringupdateItemName(String name) Update old item names to the current naming.static voidupdateKeyring(Player player) Convert keyring feature to keyring item.static voidupdatePlayerRPObject(RPObject object) Updates a player RPObject from an old version of Stendhal.static voidupdateQuests(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- Player instance being updated.
-
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
-