Skip to content

NPCSystems.OnNPCAdded

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

public static class OnNPCAdded extends HolderSystem<EntityStore>

Inner class of NPCSystems. ECS holder system that fires when an NPC entity is added. Migrates inventory data to components and ensures Storage, Armor, Hotbar, and Utility inventory components are present with default capacities.

ModifierReturn TypeSignature
publicvoidonEntityAdd(@Nonnull Holder<EntityStore> holder, @Nonnull AddReason reason, @Nonnull Store<EntityStore> store)
publicvoidonEntityRemoved(@Nonnull Holder<EntityStore> holder, @Nonnull RemoveReason reason, @Nonnull Store<EntityStore> store)
publicQuery<EntityStore>getQuery()
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.