Class NonSerialized<ECS_TYPE>

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

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

When an entity has this component it will be excluded from serialization processes.

  • Constructor Details

    • NonSerialized

      public NonSerialized()
  • Method Details

    • get

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

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