Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZeppelinMC/Zeppelin
/ SetHealth
Method
SetHealth
server/entity/entity.go:184–186 ·
view source on GitHub ↗
(h float32)
Source
from the content-addressed store, hash-verified
182
}
183
184
func
(l *LivingEntity) SetHealth(h float32) {
185
l.health.Store(math.Float32bits(h))
186
}
187
188
func
(l *LivingEntity) SetFood(food int32, saturation, exhaustion float32) {
189
l.food.Store(uint32(food))
Callers
1
New
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected