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

     1  package item
     2  
     3  // EnchantedBook is an item that lets players add enchantments to certain items using an anvil.
     4  type EnchantedBook struct{}
     5  
     6  // MaxCount ...
     7  func (b EnchantedBook) MaxCount() int {
     8  	return 1
     9  }
    10  
    11  // EncodeItem ...
    12  func (EnchantedBook) EncodeItem() (name string, meta int16) {
    13  	return "minecraft:enchanted_book", 0
    14  }