Skip to content

AllLegacyEntityTypesQuery

Package: com.hypixel.hytale.server.core.modules.entity

@Deprecated
public 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.

@Nonnull
public static final AllLegacyEntityTypesQuery INSTANCE = new AllLegacyEntityTypesQuery();

Singleton instance used by all consumers.

@Override
public boolean test(@Nonnull Archetype<EntityStore> archetype)

Returns true if the archetype contains a legacy entity component, as determined by EntityUtils.hasEntity(archetype).

@Override
public boolean requiresComponentType(ComponentType<EntityStore, ?> componentType)

Always returns false. This query does not require any specific component type for incremental matching.

@Override
public void validateRegistry(@Nonnull ComponentRegistry<EntityStore> registry)

No-op. No validation is performed.

@Override
public void validate()

No-op. No validation is performed.

  • AllLegacyLivingEntityTypesQuery — similar query restricted to living entity types
  • EntityModule — registers migration systems that use this query
  • EntityUtils — provides the hasEntity() test
  • Query — 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.