Class PlayerChangeObjectColorEvent

All Implemented Interfaces:
Cancellable

public final class PlayerChangeObjectColorEvent extends PlayerObjectEvent
Called when a player paints an object (i.e changes the color of an object element, e.g furniture, doors etc). For painting construction elements, see PlayerChangeConstructionColorEvent
  • Method Details

    • getOldColor

      public int getOldColor()
    • getNewColor

      public int getNewColor()
      Gets the new object color.
      Returns:
      the new color, as int RGBA.
    • setNewColor

      public void setNewColor(int color)
    • getObject

      public ObjectElement getObject()
      Description copied from class: PlayerObjectEvent
      Gets the object element.
      Overrides:
      getObject in class PlayerObjectEvent
      Returns:
      the object element.