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

Method Encode

server/world/block/piston.go:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func (b Piston) Encode() (string, BlockProperties) {
15 return "minecraft:piston", BlockProperties{
16 "extended": strconv.FormatBool(b.Extended),
17 "facing": b.Facing,
18 }
19}
20
21func (b Piston) New(props BlockProperties) Block {
22 return Piston{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected