Interface BannerMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder
All Known Subinterfaces:
ShieldMeta

public interface BannerMeta extends ItemMeta
  • Method Details Link icon

    • getPatterns Link icon

      @NotNull List<Pattern> getPatterns()
      Returns a list of patterns on this banner
      Returns:
      the patterns
    • setPatterns Link icon

      void setPatterns(@NotNull List<Pattern> patterns)
      Sets the patterns used on this banner
      Parameters:
      patterns - the new list of patterns
    • addPattern Link icon

      void addPattern(@NotNull Pattern pattern)
      Adds a new pattern on top of the existing patterns
      Parameters:
      pattern - the new pattern to add
    • getPattern Link icon

      @NotNull Pattern getPattern(int i)
      Returns the pattern at the specified index
      Parameters:
      i - the index
      Returns:
      the pattern
      Throws:
      IndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) range
    • removePattern Link icon

      @NotNull Pattern removePattern(int i)
      Removes the pattern at the specified index
      Parameters:
      i - the index
      Returns:
      the removed pattern
      Throws:
      IndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) range
    • setPattern Link icon

      void setPattern(int i, @NotNull Pattern pattern)
      Sets the pattern at the specified index
      Parameters:
      i - the index
      pattern - the new pattern
      Throws:
      IndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) range
    • numberOfPatterns Link icon

      int numberOfPatterns()
      Returns the number of patterns on this banner
      Returns:
      the number of patterns