Class UpdateConverter

java.lang.Object
games.stendhal.server.entity.player.UpdateConverter

public abstract class UpdateConverter extends Object
converts player objects to the most recent version by adding attributes, transforming quest states and similar migrations.
  • Constructor Details

    • UpdateConverter

      public UpdateConverter()
  • Method Details

    • updateItemName

      public static String updateItemName(String name)
      Update old item names to the current naming.
      Parameters:
      name -
      Returns:
      the currentName of an Item
    • updateItem

      public static Item updateItem(String name)
    • updatePlayerRPObject

      public static void updatePlayerRPObject(RPObject object)
      Updates a player RPObject from an old version of Stendhal.
      Parameters:
      object - RPObject representing a player
    • updateItemAttributes

      public static void updateItemAttributes(Item item)
    • updateQuests

      public static void updateQuests(Player player)
      Update the quest slot to the current version.
      Parameters:
      player -
    • updateKeyring

      public static void updateKeyring(Player player)
      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