Interface Painting

All Superinterfaces:
Attachable, Audience, CommandSender, Directional, Entity, Hanging, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator

public interface Painting extends Hanging
Represents a Painting.
  • Method Details

    • getArt

      Get the art on this painting
      Returns:
      The art
    • setArt

      boolean setArt(@NotNull @NotNull Art art)
      Set the art on this painting
      Parameters:
      art - The new art
      Returns:
      False if the new art won't fit at the painting's current location
    • setArt

      boolean setArt(@NotNull @NotNull Art art, boolean force)
      Set the art on this painting
      Parameters:
      art - The new art
      force - If true, force the new art regardless of whether it fits at the current location. Note that forcing it where it can't fit normally causes it to drop as an item unless you override this by catching the HangingBreakEvent.
      Returns:
      False if force was false and the new art won't fit at the painting's current location