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

Method New

server/world/block/sculkSensor.go:23–29  ·  view source on GitHub ↗
(props BlockProperties)

Source from the content-addressed store, hash-verified

21}
22
23func (b SculkSensor) New(props BlockProperties) Block {
24 return SculkSensor{
25 Power: atoi(props["power"]),
26 SculkSensorPhase: props["sculk_sensor_phase"],
27 Waterlogged: props["waterlogged"] != "false",
28 }
29}
30
31func (b SculkSensor) BlockEntity(pos pos.BlockPosition) chunk.BlockEntity {
32 return chunk.BlockEntity{

Callers

nothing calls this directly

Calls 1

atoiFunction · 0.85

Tested by

no test coverage detected