MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Encode

Method Encode

server/world/block/lectern.go:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15func (b Lectern) Encode() (string, BlockProperties) {
16 return "minecraft:lectern", BlockProperties{
17 "has_book": strconv.FormatBool(b.HasBook),
18 "powered": strconv.FormatBool(b.Powered),
19 "facing": b.Facing,
20 }
21}
22
23func (b Lectern) New(props BlockProperties) Block {
24 return Lectern{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected