Class GraphicChanged


  • public class GraphicChanged
    extends Object
    An event where the graphic of an Actor has changed.

    The graphic the player has changed to can be obtained using Actor.getGraphic().

    Examples of when this event may trigger include:

    • Casting a magic spell
    • Using a fairy ring
    • Breaking a teleport tab
    See Also:
    GraphicID
    • Constructor Detail

      • GraphicChanged

        public GraphicChanged()
    • Method Detail

      • getActor

        public Actor getActor()
        The actor that has had their graphic changed.
      • setActor

        public void setActor​(Actor actor)
        The actor that has had their graphic changed.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object