classpublicPriority 3
NotQuery
com.hypixel.hytale.component.query.NotQuery
implements Query
4
Methods
4
Public Methods
1
Fields
1
Constructors
Constructors
public
NotQuery(Query<ECS_TYPE> query)Methods
Public Methods (4)
public
boolean requiresComponentType(ComponentType<ECS_TYPE, ?> componentType)@Override
public
boolean test(Archetype<ECS_TYPE> archetype)@Override
public
void validate()@Override
public
void validateRegistry(ComponentRegistry<ECS_TYPE> registry)@Override
Fields
Private/Package Fields (1)
private
Query<ECS_TYPE> queryInheritance
Parent
Current
Interface
Child
Use mouse wheel to zoom, drag to pan. Click nodes to navigate.
Related Classes
Source Code
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<ECS_TYPE> implements Query<ECS_TYPE> {
private final Query<ECS_TYPE> query;
public NotQuery(Query<ECS_TYPE> query) {
this.query = query;
}
@Override
public boolean test(Archetype<ECS_TYPE> archetype) {
return !this.query.test(archetype);
}
@Override
public boolean requiresComponentType(ComponentType<ECS_TYPE, ?> componentType) {
return this.query.requiresComponentType(componentType);
}
@Override
public void validateRegistry(ComponentRegistry<ECS_TYPE> registry) {
this.query.validateRegistry(registry);
}
@Override
public void validate() {
this.query.validate();
}
}