HyCodeYourTale
classpublicPriority 3

Archetype

com.hypixel.hytale.component.Archetype

implements Query

21

Methods

21

Public Methods

2

Fields

2

Constructors

Constants

ArchetypeEMPTY= new Archetype(0, 0, ComponentType.EMPTY_ARRAY)

Constructors

package-private
Archetype(ComponentRegistry.Data<ECS_TYPE> data)
private
Archetype(int minIndex, int count, ComponentType<ECS_TYPE, ?>[] componentTypes)

Methods

Public Methods (21)

public
ExactArchetypeQuery<ECS_TYPE> asExactQuery()
@Nonnull
public
boolean contains(ComponentType<ECS_TYPE, ?> componentType)
public
boolean contains(Archetype<ECS_TYPE> archetype)
public
int count()
publicstatic
<ECS_TYPE> Archetype<ECS_TYPE> empty()
public
boolean equals(Object o)
@Override
public
int getMinIndex()
public
Archetype<ECS_TYPE> getSerializableArchetype(ComponentRegistry.Data<ECS_TYPE> data)
public
boolean hasSerializableComponents(ComponentRegistry.Data<ECS_TYPE> data)
public
int hashCode()
@Override
public
boolean isEmpty()
public
int length()
publicstatic
<ECS_TYPE> Archetype<ECS_TYPE> of(ComponentType<ECS_TYPE, ?> componentTypes)
@Nonnull
publicstatic
<ECS_TYPE> Archetype<ECS_TYPE> of(ComponentType<ECS_TYPE, ?>[] componentTypes)
@SafeVarargs
public
boolean requiresComponentType(ComponentType<ECS_TYPE, ?> componentType)
@Override
public
boolean test(Archetype<ECS_TYPE> archetype)
@Override
public
String toString()
@Nonnull@Override
public
void validate()
@Override
public
void validateComponentType(ComponentType<ECS_TYPE, ?> componentType)
public
void validateComponents(Component<ECS_TYPE>[] components, ComponentType<ECS_TYPE, UnknownComponents<ECS_TYPE>> ignore)
public
void validateRegistry(ComponentRegistry<ECS_TYPE> registry)
@Override

Fields

Private/Package Fields (2)

privateint count
privateint minIndex

Related Classes