Class GrainField

java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.GrainField
All Implemented Interfaces:
IEntity, RPObjectChangeListener
Direct Known Subclasses:
CarrotGrower

public class GrainField extends Entity
A grain field entity.
  • Field Details

    • PROP_RIPENESS

      public static final games.stendhal.client.entity.Property PROP_RIPENESS
      Ripeness 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

      public Rectangle2D getArea()
      Get the area the entity occupies.
      Specified by:
      getArea in interface IEntity
      Overrides:
      getArea in class Entity
      Returns:
      A rectange (in world coordinate units).
    • initialize

      public void initialize(RPObject object)
      Initialize this entity for an object.
      Specified by:
      initialize in interface IEntity
      Overrides:
      initialize in class Entity
      Parameters:
      object - The object.
      See Also:
      Entity.release()
    • onChangedAdded

      public void onChangedAdded(RPObject object, RPObject changes)
      The object added/changed attribute(s).
      Specified by:
      onChangedAdded in interface RPObjectChangeListener
      Overrides:
      onChangedAdded in class Entity
      Parameters:
      object - The base object.
      changes - The changes.