Package games.stendhal.client.entity
Class Item
java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.Item
- All Implemented Interfaces:
IEntity
,RPObjectChangeListener
- Direct Known Subclasses:
Box
,Ring
,StackableItem
-
Field Summary
Fields inherited from class games.stendhal.client.entity.Entity
clazz, inAdd, name, rpObject, title, type, x, y
Fields inherited from interface games.stendhal.client.entity.IEntity
PROP_ANIMATED, PROP_CLASS, PROP_NAME, PROP_POSITION, PROP_SIZE, PROP_STATE, PROP_TITLE, PROP_VISIBILITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the content slot.void
initialize(RPObject object)
Initialize this entity for an object.Methods inherited from class games.stendhal.client.entity.Entity
addChangeListener, addContentChangeListener, fireChange, getArea, getCursor, getEntityClass, getEntitySubclass, getHeight, getID, getName, getObjectID, getPath, getResistance, getResistance, getRPObject, getSlot, getTitle, getType, getVisibility, getWidth, getX, getY, isObstacle, isOnGround, isUser, onAdded, onChangedAdded, onChangedRemoved, onPosition, onRemoved, onSlotAdded, onSlotChangedAdded, onSlotChangedRemoved, onSlotRemoved, processPositioning, release, removeChangeListener, removeContentChangeListener, toString, update
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
initialize
Initialize this entity for an object.- Specified by:
initialize
in interfaceIEntity
- Overrides:
initialize
in classEntity
- Parameters:
object
- The object.- See Also:
Entity.release()
-
getContent
Get the content slot.- Returns:
- Content slot or
null
if the item has none or it's not accessible.
-