Package com.hypixel.hytale.component
Class SystemType<ECS_TYPE,T extends ISystem<ECS_TYPE>>
java.lang.Object
com.hypixel.hytale.component.SystemType<ECS_TYPE,T>
- All Implemented Interfaces:
Comparable<SystemType<ECS_TYPE,?>>
- Direct Known Subclasses:
EventSystemType
public class SystemType<ECS_TYPE,T extends ISystem<ECS_TYPE>>
extends Object
implements Comparable<SystemType<ECS_TYPE,?>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemType[]private final intprivate booleanprivate final ComponentRegistry<ECS_TYPE> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSystemType(ComponentRegistry<ECS_TYPE> registry, Class<? super T> tClass, int index) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SystemType<ECS_TYPE, ?> o) booleanintgetIndex()inthashCode()protected voidbooleanprotected booleanisValid()toString()voidvalidate()voidvalidateRegistry(ComponentRegistry<ECS_TYPE> registry)
-
Field Details
-
EMPTY_ARRAY
-
registry
-
tClass
-
index
private final int index -
invalidated
private boolean invalidated
-
-
Constructor Details
-
SystemType
protected SystemType(@Nonnull ComponentRegistry<ECS_TYPE> registry, @Nonnull Class<? super T> tClass, int index)
-
-
Method Details
-
getRegistry
-
getTypeClass
-
isType
-
getIndex
public int getIndex() -
validateRegistry
-
validate
public void validate() -
invalidate
protected void invalidate() -
isValid
protected boolean isValid() -
compareTo
- Specified by:
compareToin interfaceComparable<ECS_TYPE>
-
equals
-
hashCode
public int hashCode() -
toString
-