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.
Record Components
Section titled “Record Components”typeClass— the registered component classid— the serialization ID (null for non-serialized components)codec— the serialization codec (null for non-serialized components)supplier— factory for creating default component instancescomponentType— the ComponentType handle
Related Types
Section titled “Related Types”- ComponentType — the typed handle for accessing the component
- ResourceRegistration — the equivalent record for resources
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.