Class SystemGroup<ECS_TYPE>

java.lang.Object
com.hypixel.hytale.component.SystemGroup<ECS_TYPE>
Type Parameters:
ECS_TYPE - The type of ECS this system group is part of.
All Implemented Interfaces:
Comparable<SystemGroup<ECS_TYPE>>

public class SystemGroup<ECS_TYPE> extends Object implements Comparable<SystemGroup<ECS_TYPE>>
A group of systems, registered with a ComponentRegistry, whcih helps define the order systems should run.
  • Method Details

    • getRegistry

      @Nonnull public ComponentRegistry<ECS_TYPE> getRegistry()
      The registry this component type is part of.
      Returns:
      the registry
    • getDependencies

      @Nonnull public Set<Dependency<ECS_TYPE>> getDependencies()
      The dependencies this system has on other systems
      Returns:
      the dependencies of this group.
    • getIndex

      public int getIndex()
      Get the index for this registered system group.
      Returns:
      The index for this system group
    • validateRegistry

      public void validateRegistry(@Nonnull ComponentRegistry<ECS_TYPE> registry)
      Called to validate that this system group is for the given registry.
      Parameters:
      registry - The registry to validate against.
    • validate

      public void validate()
      Called to validate that this system group is still valid.
    • compareTo

      public int compareTo(@Nonnull SystemGroup<ECS_TYPE> o)
      Specified by:
      compareTo in interface Comparable<ECS_TYPE>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object