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

Method SetPosition

server/entity/entity.go:138–142  ·  view source on GitHub ↗
(x, y, z float64)

Source from the content-addressed store, hash-verified

136}
137
138func (p *Entity) SetPosition(x, y, z float64) {
139 p.x.Store(math.Float64bits(x))
140 p.y.Store(math.Float64bits(y))
141 p.z.Store(math.Float64bits(z))
142}
143
144func (p *Entity) SetRotation(yaw, pitch float32) {
145 p.yaw.Store(math.Float32bits(yaw))

Callers 2

SynchronizePositionMethod · 0.80
NewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected