AllLegacyLivingEntityTypesQuery
Package: com.hypixel.hytale.server.core.modules.entity
@Deprecatedpublic class AllLegacyLivingEntityTypesQuery implements Query<EntityStore>A deprecated query that matches all archetypes containing a legacy living entity component. Similar to AllLegacyEntityTypesQuery but restricted to living entities, as determined by EntityUtils.hasLivingEntity(archetype).
Exposed as a singleton via the INSTANCE field.
Fields
Section titled “Fields”@Nonnullpublic static final AllLegacyLivingEntityTypesQuery INSTANCE = new AllLegacyLivingEntityTypesQuery();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 living entity component, as determined by EntityUtils.hasLivingEntity(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”- AllLegacyEntityTypesQuery — similar query for all entity types (not just living)
- EntityModule — the module context where these queries are used
EntityUtils— provides thehasLivingEntity()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.