Package com.hypixel.hytale.component
Class Archetype<ECS_TYPE>
java.lang.Object
com.hypixel.hytale.component.Archetype<ECS_TYPE>
- All Implemented Interfaces:
Query<ECS_TYPE>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentType<ECS_TYPE,?>[] private final intprivate static final Archetypeprivate final ExactArchetypeQuery<ECS_TYPE> private final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArchetype(int minIndex, int count, ComponentType<ECS_TYPE, ?>[] componentTypes) -
Method Summary
Modifier and TypeMethodDescriptionadd(Archetype<ECS_TYPE> archetype, ComponentType<ECS_TYPE, T> componentType) booleanbooleancontains(ComponentType<ECS_TYPE, ?> componentType) intcount()static <ECS_TYPE> Archetype<ECS_TYPE> empty()booleanget(int index) intinthashCode()booleanbooleanisEmpty()intlength()static <ECS_TYPE> Archetype<ECS_TYPE> of(ComponentType<ECS_TYPE, ?> componentTypes) static <ECS_TYPE> Archetype<ECS_TYPE> of(ComponentType<ECS_TYPE, ?>... componentTypes) remove(Archetype<ECS_TYPE> archetype, ComponentType<ECS_TYPE, T> componentType) booleanrequiresComponentType(ComponentType<ECS_TYPE, ?> componentType) booleantoString()voidvalidate()voidvalidateComponents(Component<ECS_TYPE>[] components, ComponentType<ECS_TYPE, UnknownComponents<ECS_TYPE>> ignore) voidvalidateComponentType(ComponentType<ECS_TYPE, ?> componentType) voidvalidateRegistry(ComponentRegistry<ECS_TYPE> registry)
-
Field Details
-
EMPTY
-
minIndex
private final int minIndex -
count
private final int count -
componentTypes
-
exactQuery
-
-
Constructor Details
-
Archetype
-
-
Method Details
-
empty
-
getMinIndex
public int getMinIndex() -
count
public int count() -
length
public int length() -
get
-
isEmpty
public boolean isEmpty() -
contains
-
contains
-
validateComponentType
-
validateComponents
public void validateComponents(@Nonnull Component<ECS_TYPE>[] components, @Nullable ComponentType<ECS_TYPE, UnknownComponents<ECS_TYPE>> ignore) -
hasSerializableComponents
-
getSerializableArchetype
-
asExactQuery
-
of
@Nonnull public static <ECS_TYPE> Archetype<ECS_TYPE> of(@Nonnull ComponentType<ECS_TYPE, ?> componentTypes) -
of
@SafeVarargs public static <ECS_TYPE> Archetype<ECS_TYPE> of(ComponentType<ECS_TYPE, ?>... componentTypes) -
add
@Nonnull public static <ECS_TYPE,T extends Component<ECS_TYPE>> Archetype<ECS_TYPE> add(@Nonnull Archetype<ECS_TYPE> archetype, @Nonnull ComponentType<ECS_TYPE, T> componentType) -
remove
public static <ECS_TYPE,T extends Component<ECS_TYPE>> Archetype<ECS_TYPE> remove(@Nonnull Archetype<ECS_TYPE> archetype, @Nonnull ComponentType<ECS_TYPE, T> componentType) -
test
-
requiresComponentType
- Specified by:
requiresComponentTypein interfaceQuery<ECS_TYPE>
-
validateRegistry
- Specified by:
validateRegistryin interfaceQuery<ECS_TYPE>
-
validate
public void validate() -
equals
-
hashCode
public int hashCode() -
toString
-