github.com/df-mc/dragonfly@v0.9.13/server/block/soul_soil.go (about) 1 package block 2 3 import "github.com/df-mc/dragonfly/server/world" 4 5 // SoulSoil is a block naturally found only in the soul sand valley. 6 type SoulSoil struct { 7 solid 8 } 9 10 // SoilFor ... 11 func (s SoulSoil) SoilFor(block world.Block) bool { 12 _, ok := block.(NetherSprouts) 13 return ok 14 } 15 16 // BreakInfo ... 17 func (s SoulSoil) BreakInfo() BreakInfo { 18 return newBreakInfo(1, alwaysHarvestable, shovelEffective, oneOf(s)) 19 } 20 21 // EncodeItem ... 22 func (SoulSoil) EncodeItem() (name string, meta int16) { 23 return "minecraft:soul_soil", 0 24 } 25 26 // EncodeBlock ... 27 func (SoulSoil) EncodeBlock() (string, map[string]any) { 28 return "minecraft:soul_soil", nil 29 }