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

     1  package item
     2  
     3  import "github.com/df-mc/dragonfly/server/world"
     4  
     5  // TropicalFish is a food item that cannot be cooked.
     6  type TropicalFish struct {
     7  	defaultFood
     8  }
     9  
    10  // Consume ...
    11  func (TropicalFish) Consume(_ *world.World, c Consumer) Stack {
    12  	c.Saturate(1, 0.2)
    13  	return Stack{}
    14  }
    15  
    16  // EncodeItem ...
    17  func (TropicalFish) EncodeItem() (name string, meta int16) {
    18  	return "minecraft:tropical_fish", 0
    19  }