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

     1  package item
     2  
     3  // Diamond is a rare mineral obtained from diamond ore or loot chests.
     4  type Diamond struct{}
     5  
     6  // EncodeItem ...
     7  func (Diamond) EncodeItem() (name string, meta int16) {
     8  	return "minecraft:diamond", 0
     9  }
    10  
    11  // PayableForBeacon ...
    12  func (Diamond) PayableForBeacon() bool {
    13  	return true
    14  }