Class EquipUtil
java.lang.Object
games.stendhal.server.actions.equip.EquipUtil
Useful method to deal with equipable items.
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.apache.log4j.Logger
protected static int
The maximum distance a player can throw an item away from himself. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
getEntityFromId(Player player, int objectId)
Gets the object for the given id.
-
Field Details
-
logger
public static final org.apache.log4j.Logger logger -
MAX_THROWING_DISTANCE
protected static final int MAX_THROWING_DISTANCEThe maximum distance a player can throw an item away from himself.- See Also:
- Constant Field Values
-
-
Constructor Details
-
EquipUtil
public EquipUtil()
-
-
Method Details
-
getEntityFromId
Gets the object for the given id. Returns null when the item is not available. Failure is written to the logger.- Parameters:
player
- the playerobjectId
- the objects id- Returns:
- the object with the given id or null if the object is not available.
-