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

Method Attributes

server/entity/entity.go:75–79  ·  view source on GitHub ↗

Attributes returns a clone of the attributes of this state

()

Source from the content-addressed store, hash-verified

73
74// Attributes returns a clone of the attributes of this state
75func (p *Entity) Attributes() []Attribute {
76 p.attr_mu.RLock()
77 defer p.attr_mu.RUnlock()
78 return slices.Clone(p.attributes)
79}
80
81func (p *Entity) SetAttribute(id string, base float64) {
82 p.attr_mu.Lock()

Callers 1

syncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected