Class EquipUtil

java.lang.Object
games.stendhal.server.actions.equip.EquipUtil

public class EquipUtil extends Object
Useful method to deal with equipable items.
  • Field Details

    • logger

      public static final org.apache.log4j.Logger logger
    • MAX_THROWING_DISTANCE

      protected static final int MAX_THROWING_DISTANCE
      The maximum distance a player can throw an item away from himself.
      See Also:
      Constant Field Values
  • Constructor Details

    • EquipUtil

      public EquipUtil()
  • Method Details

    • getEntityFromId

      public static Entity getEntityFromId(Player player, int objectId)
      Gets the object for the given id. Returns null when the item is not available. Failure is written to the logger.
      Parameters:
      player - the player
      objectId - the objects id
      Returns:
      the object with the given id or null if the object is not available.