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

     1  package item
     2  
     3  // Wheat is a crop used to craft bread, cake, & cookies.
     4  type Wheat struct{}
     5  
     6  // CompostChance ...
     7  func (Wheat) CompostChance() float64 {
     8  	return 0.65
     9  }
    10  
    11  // EncodeItem ...
    12  func (w Wheat) EncodeItem() (name string, meta int16) {
    13  	return "minecraft:wheat", 0
    14  }