Skip to content

NPCDeathSystems

Package: com.hypixel.hytale.server.npc.systems

public class NPCDeathSystems

Container class for two ECS systems that process NPC death events.

public static class EntityViewSystem extends DeathSystems.OnDeathSystem

Posts death events to the blackboard’s EntityEventView when an NPC or player dies from an entity source. Enables nearby NPCs with entity event sensors to detect deaths. Skips creative-mode players unless allowNPCDetection is enabled.

Query: (NPCEntity OR Player) AND TransformComponent

public static class NPCKillsEntitySystem extends DeathSystems.OnDeathSystem

Notifies the killing NPC’s DamageData when it kills any living entity. Records the kill position for potential use by sensors.

Query: AllLegacyLivingEntityTypesQuery AND TransformComponent

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.