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

     1  package block
     2  
     3  // Bricks are decorative building blocks.
     4  type Bricks struct {
     5  	solid
     6  	bassDrum
     7  }
     8  
     9  // BreakInfo ...
    10  func (b Bricks) BreakInfo() BreakInfo {
    11  	return newBreakInfo(2, pickaxeHarvestable, pickaxeEffective, oneOf(b)).withBlastResistance(30)
    12  }
    13  
    14  // EncodeItem ...
    15  func (Bricks) EncodeItem() (name string, meta int16) {
    16  	return "minecraft:brick_block", 0
    17  }
    18  
    19  // EncodeBlock ...
    20  func (Bricks) EncodeBlock() (string, map[string]any) {
    21  	return "minecraft:brick_block", nil
    22  }