github.com/df-mc/dragonfly@v0.9.13/server/item/banner_pattern.go (about)

     1  package item
     2  
     3  // BannerPattern is an item used to customize banners inside looms.
     4  type BannerPattern struct {
     5  	// Type represents the type of banner pattern. These types do not include all patterns that can be applied to a
     6  	// banner.
     7  	Type BannerPatternType
     8  }
     9  
    10  // MaxCount always returns 1.
    11  func (b BannerPattern) MaxCount() int {
    12  	return 1
    13  }
    14  
    15  // EncodeItem ...
    16  func (b BannerPattern) EncodeItem() (name string, meta int16) {
    17  	return "minecraft:" + b.Type.String() + "_banner_pattern", 0
    18  }