Contents
Enum Class HierarchyScope
- All Implemented Interfaces:
Serializable, Comparable<HierarchyScope>, Constable
Which entities a
QuerySystem processes, by their place in the store hierarchy.
The scope is applied per table, so it is exact for ticking and ArchetypeChunkSystem
callbacks. A HolderSystem or RefSystem only hears about an entity when it is
added to or removed from the store, so a later reparent or first child does not notify it.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvery matching entity, whichever entity owns it.The matching entities that another entity owns.The matching entities that own at least one child.The matching entities the store owns directly, with or without children of their own. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanstatic HierarchyScopeReturns the enum constant of this class with the specified name.static HierarchyScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ALL
Every matching entity, whichever entity owns it. -
ROOT
The matching entities the store owns directly, with or without children of their own.- See Also:
-
PARENT_ONLY
The matching entities that own at least one child.Entity add/remove callbacks do not report promotion or demotion. Use
ArchetypeChunkSystemfor notifications when tables enter or leave this scope. -
CHILD_ONLY
The matching entities that another entity owns.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
includesChildlessRoots
public boolean includesChildlessRoots()- Returns:
- whether the scope holds an entity the store owns directly that owns no children.
-
includesParents
public boolean includesParents()- Returns:
- whether the scope holds an entity that owns children.
-
includesChildren
public boolean includesChildren()- Returns:
- whether the scope holds an entity that another entity owns.
-