package com.hypixel.hytale.component.query; import com.hypixel.hytale.component.Archetype; import com.hypixel.hytale.component.ComponentRegistry; import com.hypixel.hytale.component.ComponentType; public class NotQuery implements Query { private final Query query; public NotQuery(Query query) { this.query = query; } @Override public boolean test(Archetype archetype) { return !this.query.test(archetype); } @Override public boolean requiresComponentType(ComponentType componentType) { return this.query.requiresComponentType(componentType); } @Override public void validateRegistry(ComponentRegistry registry) { this.query.validateRegistry(registry); } @Override public void validate() { this.query.validate(); } }