Interface AttributeListener<T>

Type Parameters:
T -

public interface AttributeListener<T>
An attribute listener, used to execute code when an attribute of an object is updated. For example: when Direction of an Entity is updated, it will call attributeUpdated giving old and new attribute value
  • Method Summary

    Modifier and Type Method Description
    void attributeUpdated​(T oldValue, T newValue)
    Called when attribute is updated.
  • Method Details

    • attributeUpdated

      void attributeUpdated​(T oldValue, T newValue)
      Called when attribute is updated.
      Parameters:
      oldValue - old attribute value
      newValue - new attribute value