Class AnimationChanged


  • public class AnimationChanged
    extends java.lang.Object
    An event where the Actor has changed animations.

    In order to get the new animation ID, use Actor.getAnimation().

    Examples of when this event may trigger include:

    • A player starts or stops gathering a resource (ie. woodcut, fishing)
    • A player starts or stops dancing
    See Also:
    AnimationID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      Actor getActor()
      The actor that has entered a new animation.
      int hashCode()  
      void setActor​(Actor actor)
      The actor that has entered a new animation.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AnimationChanged

        public AnimationChanged()
    • Method Detail

      • getActor

        public Actor getActor()
        The actor that has entered a new animation.
      • setActor

        public void setActor​(Actor actor)
        The actor that has entered a new animation.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object