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