Class EquipUtil
java.lang.Object
games.stendhal.server.actions.equip.EquipUtil
Useful method to deal with equipable items.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.log4j.Loggerprotected static final intThe maximum distance a player can throw an item away from himself. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntitygetEntityFromId(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:
-
-
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.
-