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

Method Position

server/entity/entity.go:153–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153func (p *Entity) Position() (x, y, z float64) {
154 return math.Float64frombits(p.x.Load()), math.Float64frombits(p.y.Load()), math.Float64frombits(p.z.Load())
155}
156
157func (p *Entity) Motion() (vx, vy, vz float64) {
158 return math.Float64frombits(p.vx.Load()), math.Float64frombits(p.vy.Load()), math.Float64frombits(p.vz.Load())

Callers 4

debug.goFile · 0.45
startGameMethod · 0.45
sendSpawnChunksMethod · 0.45
syncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected