Interface Painting

All Superinterfaces:
Attachable, net.kyori.adventure.audience.Audience, CommandSender, Directional, Entity, Hanging, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, 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