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

Method Encode

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

Source from the content-addressed store, hash-verified

11}
12
13func (b DetectorRail) Encode() (string, BlockProperties) {
14 return "minecraft:detector_rail", BlockProperties{
15 "powered": strconv.FormatBool(b.Powered),
16 "shape": b.Shape,
17 "waterlogged": strconv.FormatBool(b.Waterlogged),
18 }
19}
20
21func (b DetectorRail) New(props BlockProperties) Block {
22 return DetectorRail{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected