NPCDeathSystems
Package: com.hypixel.hytale.server.npc.systems
public class NPCDeathSystemsContainer class for two ECS systems that process NPC death events.
Inner Systems
Section titled “Inner Systems”NPCDeathSystems.EntityViewSystem
Section titled “NPCDeathSystems.EntityViewSystem”public static class EntityViewSystem extends DeathSystems.OnDeathSystemPosts 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
NPCDeathSystems.NPCKillsEntitySystem
Section titled “NPCDeathSystems.NPCKillsEntitySystem”public static class NPCKillsEntitySystem extends DeathSystems.OnDeathSystemNotifies the killing NPC’s DamageData when it kills any living entity. Records the kill position for potential use by sensors.
Query: AllLegacyLivingEntityTypesQuery AND TransformComponent
Related Types
Section titled “Related Types”- NPCDamageSystems — damage event handling
- BlackboardSystems — event view updated by death events
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.