NPCRunTestsCommand.NPCTestData
Package: com.hypixel.hytale.server.npc.commands
public static class NPCRunTestsCommand.NPCTestData implements Component<EntityStore>Inner class of NPCRunTestsCommand. An ECS component attached to the player entity during an NPC test session to track test state. Stores the list of NPC roles being tested, flock sizes, the current test index, the set of failed roles, and the UUID of the currently spawned test NPC.
The component type is registered by NPCPlugin and retrieved via NPCPlugin.get().getNpcTestDataComponentType().
Fields
Section titled “Fields”private final IntList npcRolesList of role indices to test.
private final IntList flockSizesFlock size for each role (parallel to npcRoles).
private final IntSet failedRolesSet of role indices that have been marked as failed.
private int indexCurrent position in the test sequence.
private UUID targetUUIDUUID of the currently spawned test NPC entity.
Methods
Section titled “Methods”public static ComponentType<EntityStore, NPCRunTestsCommand.NPCTestData> getComponentType()Returns the component type, delegating to NPCPlugin.get().getNpcTestDataComponentType().
@Nonnull@Overridepublic Component<EntityStore> clone()Creates a deep copy of the test data, copying the roles list, index, and failed roles set.
Related Types
Section titled “Related Types”- NPCRunTestsCommand — parent command using this component