AllLegacyEntityTypesQuery
Package: com.hypixel.hytale.server.core.modules.entity
@Deprecatedpublic class AllLegacyEntityTypesQuery implements Query<EntityStore>A deprecated query that matches all archetypes containing a legacy entity component. Used internally by EntityModule migration systems (LegacyTransformSystem, LegacyUUIDSystem, LegacyUUIDUpdateSystem) to target all legacy entity types during ECS processing.
Exposed as a singleton via the INSTANCE field.
Fields
Section titled “Fields”@Nonnullpublic static final AllLegacyEntityTypesQuery INSTANCE = new AllLegacyEntityTypesQuery();Singleton instance used by all consumers.
Methods
Section titled “Methods”@Overridepublic boolean test(@Nonnull Archetype<EntityStore> archetype)Returns true if the archetype contains a legacy entity component, as determined by EntityUtils.hasEntity(archetype).
@Overridepublic boolean requiresComponentType(ComponentType<EntityStore, ?> componentType)Always returns false. This query does not require any specific component type for incremental matching.
@Overridepublic void validateRegistry(@Nonnull ComponentRegistry<EntityStore> registry)No-op. No validation is performed.
@Overridepublic void validate()No-op. No validation is performed.
Related Types
Section titled “Related Types”- AllLegacyLivingEntityTypesQuery — similar query restricted to living entity types
- EntityModule — registers migration systems that use this query
EntityUtils— provides thehasEntity()testQuery— the ECS query interface this class implements
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.