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

Method Health

server/entity/entity.go:194–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192}
193
194func (l *LivingEntity) Health() float32 {
195 return math.Float32frombits(l.health.Load())
196}
197
198func (l *LivingEntity) Food() (food int32, saturation, exhaustion float32) {
199 return int32(l.food.Load()), math.Float32frombits(l.foodSaturation.Load()), math.Float32frombits(l.foodExhaustion.Load())

Callers 1

syncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected