Class DamageSystems.InvulnerableBreathing

java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.RefChangeSystem<EntityStore, Invulnerable>
com.hypixel.hytale.server.core.modules.entity.damage.DamageSystems.InvulnerableBreathing
All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
Enclosing class:
DamageSystems

public static class DamageSystems.InvulnerableBreathing extends RefChangeSystem<EntityStore, Invulnerable>
A ref change system that reprocesses an entity's breathing state when an Invulnerable component is added, set, or removed.

This ensures that changes to invulnerability (such as switching game-mode) immediately update the entity's suffocation state without waiting for a material or fluid change.