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.
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | void | onEntityAdd(@Nonnull Holder<EntityStore> holder, @Nonnull AddReason reason, @Nonnull Store<EntityStore> store) |
public | void | onEntityRemoved(@Nonnull Holder<EntityStore> holder, @Nonnull RemoveReason reason, @Nonnull Store<EntityStore> store) |
public | Query<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.