Skip to content

SystemType

Package: com.hypixel.hytale.component

public class SystemType<ECS_TYPE, T extends ISystem<ECS_TYPE>> implements Comparable<SystemType<ECS_TYPE, ?>>

A typed handle representing a category of ECS systems. The registry pre-registers system types for the built-in system base classes (TickingSystem, RefSystem, HolderSystem, etc.). Systems are grouped by their SystemType for iteration — for example, the store iterates all systems of the TickingSystem type each tick.

  • ECS_TYPE — the store type parameter
  • T — the system interface or base class
@Nonnull
public static final SystemType[] EMPTY_ARRAY = new SystemType[0];
@Nonnull
public ComponentRegistry<ECS_TYPE> getRegistry()
public Class<? super T> getTypeClass()
public boolean isType(@Nonnull ISystem<ECS_TYPE> system)

Returns true if the given system is an instance of this type’s class.

public int getIndex()
public void validateRegistry(@Nonnull ComponentRegistry<ECS_TYPE> registry)
public void validate()
  • ComponentRegistry — registers system types and provides accessors for built-in types
  • SystemGroup — groups systems for dependency ordering
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.