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

     1  package block
     2  
     3  // Bedrock is a block that is indestructible in survival.
     4  type Bedrock struct {
     5  	solid
     6  	bassDrum
     7  
     8  	// InfiniteBurning specifies if the bedrock block is set aflame and will burn forever. This is the case
     9  	// for bedrock found under end crystals on top of the end pillars.
    10  	InfiniteBurning bool
    11  }
    12  
    13  // EncodeItem ...
    14  func (Bedrock) EncodeItem() (name string, meta int16) {
    15  	return "minecraft:bedrock", 0
    16  }
    17  
    18  // EncodeBlock ...
    19  func (b Bedrock) EncodeBlock() (name string, properties map[string]any) {
    20  	//noinspection SpellCheckingInspection
    21  	return "minecraft:bedrock", map[string]any{"infiniburn_bit": b.InfiniteBurning}
    22  }