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

     1  package block
     2  
     3  // Amethyst is a decorative block crafted from four amethyst shards.
     4  type Amethyst struct {
     5  	solid
     6  }
     7  
     8  // BreakInfo ...
     9  func (a Amethyst) BreakInfo() BreakInfo {
    10  	return newBreakInfo(1.5, pickaxeHarvestable, pickaxeHarvestable, oneOf(a))
    11  }
    12  
    13  // EncodeItem ...
    14  func (Amethyst) EncodeItem() (name string, meta int16) {
    15  	return "minecraft:amethyst_block", 0
    16  }
    17  
    18  // EncodeBlock ...
    19  func (Amethyst) EncodeBlock() (string, map[string]any) {
    20  	return "minecraft:amethyst_block", nil
    21  }