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

     1  package item
     2  
     3  // Book is an item used in enchanting and crafting.
     4  type Book struct{}
     5  
     6  // EnchantmentValue ...
     7  func (b Book) EnchantmentValue() int {
     8  	return 1
     9  }
    10  
    11  // EncodeItem ...
    12  func (Book) EncodeItem() (name string, meta int16) {
    13  	return "minecraft:book", 0
    14  }