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

     1  package item
     2  
     3  // Spyglass is an item that zooms in on an area the player is looking at, like a telescope.
     4  type Spyglass struct {
     5  	nopReleasable
     6  }
     7  
     8  // MaxCount always returns 1.
     9  func (Spyglass) MaxCount() int {
    10  	return 1
    11  }
    12  
    13  // EncodeItem ...
    14  func (Spyglass) EncodeItem() (name string, meta int16) {
    15  	return "minecraft:spyglass", 0
    16  }