Interface Banner

All Superinterfaces:
BlockState, Metadatable

public interface Banner
extends BlockState
  • Method Details

    • getBaseColor

      DyeColor getBaseColor()
      Returns the base color for this banner
      Returns:
      the base color
    • setBaseColor

      void setBaseColor​(DyeColor color)
      Sets the base color for this banner
      Parameters:
      color - the base color
    • getPatterns

      java.util.List<Pattern> getPatterns()
      Returns a list of patterns on this banner
      Returns:
      the patterns
    • setPatterns

      void setPatterns​(java.util.List<Pattern> patterns)
      Sets the patterns used on this banner
      Parameters:
      patterns - the new list of patterns
    • addPattern

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

      Pattern getPattern​(int i)
      Returns the pattern at the specified index
      Parameters:
      i - the index
      Returns:
      the pattern
    • removePattern

      Pattern removePattern​(int i)
      Removes the pattern at the specified index
      Parameters:
      i - the index
      Returns:
      the removed pattern
    • setPattern

      void setPattern​(int i, Pattern pattern)
      Sets the pattern at the specified index
      Parameters:
      i - the index
      pattern - the new pattern
    • numberOfPatterns

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