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

Function New

server/entity/entity.go:22–29  ·  view source on GitHub ↗
(uuid uuid.UUID, typ int32, metadata metadata.Metadata, attributes []Attribute)

Source from the content-addressed store, hash-verified

20}
21
22func New(uuid uuid.UUID, typ int32, metadata metadata.Metadata, attributes []Attribute) *Entity {
23 return &Entity{
24 uuid: uuid,
25 typ: typ,
26 metadata: metadata,
27 attributes: attributes,
28 }
29}
30
31func NewLiving(e *Entity) LivingEntity {
32 return LivingEntity{Entity: *e}

Callers 1

NewMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected