LoadedNPCEvent
Package:
com.hypixel.hytale.server.spawningImplements:IEvent<Void>Cancellable: No
Standard event dispatched when a single NPC builder is loaded. The builder info must contain a builder that implements ISpawnableWithModel — the constructor validates this requirement.
Fields / Accessors
Section titled “Fields / Accessors”| Field | Type | Accessor | Mutable | Nullable |
|---|---|---|---|---|
builderInfo | BuilderInfo | getBuilderInfo() | No | No |
- builderInfo — Information about the NPC builder that was loaded. The builder within this info is guaranteed to implement
ISpawnableWithModel.
Fired By
Section titled “Fired By”Dispatch location not identified in decompiled source. This event may be dispatched by game modules not yet mapped.
Listening
Section titled “Listening”getEventRegistry().register(LoadedNPCEvent.class, event -> { BuilderInfo info = event.getBuilderInfo(); // Handle individual NPC builder load});Related Events
Section titled “Related Events”AllNPCsLoadedEvent— Fired after all NPC builders have been loaded. Provides aggregate maps.