Class DamageSystems.BreathingSystem

All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
Enclosing class:
DamageSystems

public static class DamageSystems.BreathingSystem extends DelayedEntitySystem<EntityStore>
A delayed entity system that tracks the block material and fluid at each entity's breathing height.

When the material or fluid changes, a BreathingCheckEvent is fired, allowing other systems to override the default breathing logic. The resulting suffocation state is stored on the entity's BreathingComponent component.