Package games.stendhal.client.entity
Class GrainField
java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.GrainField
- All Implemented Interfaces:
IEntity,RPObjectChangeListener
- Direct Known Subclasses:
CarrotGrower
A grain field entity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final games.stendhal.client.entity.PropertyRipeness property.Fields inherited from class games.stendhal.client.entity.Entity
clazz, inAdd, name, rpObject, title, type, x, yFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArea()Get the area the entity occupies.intGet the maximum ripeness.intGet the ripeness.voidinitialize(RPObject object) Initialize this entity for an object.voidonChangedAdded(RPObject object, RPObject changes) The object added/changed attribute(s).Methods inherited from class games.stendhal.client.entity.Entity
addChangeListener, addContentChangeListener, fireChange, getCursor, getEntityClass, getEntitySubclass, getHeight, getID, getName, getObjectID, getPath, getResistance, getResistance, getRPObject, getSlot, getTitle, getType, getVisibility, getWidth, getX, getY, isObstacle, isOnGround, isUser, onAdded, onChangedRemoved, onPosition, onRemoved, onSlotAdded, onSlotChangedAdded, onSlotChangedRemoved, onSlotRemoved, processPositioning, release, removeChangeListener, removeContentChangeListener, toString, update
-
Field Details
-
PROP_RIPENESS
public static final games.stendhal.client.entity.Property PROP_RIPENESSRipeness property.
-
-
Constructor Details
-
GrainField
public GrainField()Create a grain field.
-
-
Method Details
-
getMaximumRipeness
public int getMaximumRipeness()Get the maximum ripeness.- Returns:
- The maximum ripeness.
-
getRipeness
public int getRipeness()Get the ripeness.- Returns:
- The ripeness.
-
getArea
Get the area the entity occupies. -
initialize
Initialize this entity for an object.- Specified by:
initializein interfaceIEntity- Overrides:
initializein classEntity- Parameters:
object- The object.- See Also:
-
onChangedAdded
The object added/changed attribute(s).- Specified by:
onChangedAddedin interfaceRPObjectChangeListener- Overrides:
onChangedAddedin classEntity- Parameters:
object- The base object.changes- The changes.
-