github.com/df-mc/dragonfly@v0.9.13/server/entity/flammable.go (about) 1 package entity 2 3 import "time" 4 5 // Flammable is an interface for entities that can be set on fire. 6 type Flammable interface { 7 // OnFireDuration returns duration of fire in ticks. 8 OnFireDuration() time.Duration 9 // SetOnFire sets the entity on fire for the specified duration. 10 SetOnFire(duration time.Duration) 11 // Extinguish extinguishes the entity. 12 Extinguish() 13 }