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

Method New

server/world/block/commandBlock.go:21–26  ·  view source on GitHub ↗
(props BlockProperties)

Source from the content-addressed store, hash-verified

19}
20
21func (b CommandBlock) New(props BlockProperties) Block {
22 return CommandBlock{
23 Conditional: props["conditional"] != "false",
24 Facing: props["facing"],
25 }
26}
27
28func (b CommandBlock) BlockEntity(pos pos.BlockPosition) chunk.BlockEntity {
29 return chunk.BlockEntity{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected