Interface Painting

    • Method Detail

      • 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