Class NonTicking<ECS_TYPE>

java.lang.Object
com.hypixel.hytale.component.NonTicking<ECS_TYPE>
All Implemented Interfaces:
Component<ECS_TYPE>, Cloneable

public class NonTicking<ECS_TYPE> extends Object implements Component<ECS_TYPE>
A component that marks an entity as non-ticking.

When an entity has this component it will be excluded from ArchetypeTickingSystem's by default, unless the system explicitly queries for non-ticking entities, i.e. ArchetypeTickingSystem.isExplicitQuery() returns true.

  • Constructor Details

    • NonTicking

      public NonTicking()
  • Method Details

    • get

      public static <ECS_TYPE> NonTicking<ECS_TYPE> get()
      Called to get the singleton instance of the NonTicking component.
      Type Parameters:
      ECS_TYPE - The type of ECS the component is for.
      Returns:
      the singleton instance of the NonTicking component.
    • clone

      public Component<ECS_TYPE> clone()
      Specified by:
      clone in interface Component<ECS_TYPE>
      Returns:
      a clone instance of the original component instance.