// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.component.system;

import javax.annotation.Nullable;
import com.hypixel.hytale.component.query.Query;
import com.hypixel.hytale.component.Archetype;
import com.hypixel.hytale.component.ComponentRegistry;

public interface QuerySystem<ECS_TYPE> extends ISystem<ECS_TYPE>
{
    default boolean test(final ComponentRegistry<ECS_TYPE> componentRegistry, final Archetype<ECS_TYPE> archetype) {
        return this.getQuery().test(archetype);
    }
    
    @Nullable
    Query<ECS_TYPE> getQuery();
}
