Skip to content

ComponentRegistration

Package: com.hypixel.hytale.component

public record ComponentRegistration<ECS_TYPE, T extends Component<ECS_TYPE>>(
@Nonnull Class<? super T> typeClass,
@Nullable String id,
@Nullable BuilderCodec<T> codec,
@Nonnull Supplier<T> supplier,
@Nonnull ComponentType<ECS_TYPE, T> componentType
)

Immutable record holding all metadata for a registered component type. Created internally by ComponentRegistry during registration.

  • typeClass — the registered component class
  • id — the serialization ID (null for non-serialized components)
  • codec — the serialization codec (null for non-serialized components)
  • supplier — factory for creating default component instances
  • componentType — the ComponentType handle
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.