ResourceRegistration
Package: com.hypixel.hytale.component
public record ResourceRegistration<ECS_TYPE, T extends Resource<ECS_TYPE>>( @Nonnull Class<? super T> typeClass, @Nullable String id, @Nullable BuilderCodec<T> codec, @Nonnull Supplier<T> supplier, @Nonnull ResourceType<ECS_TYPE, T> resourceType)Immutable record holding all metadata for a registered resource type.
Record Components
Section titled “Record Components”typeClass— the registered resource classid— the serialization ID (null for non-serialized resources)codec— the serialization codec (null for non-serialized resources)supplier— factory for creating default resource instancesresourceType— the ResourceType handle
Related Types
Section titled “Related Types”- ResourceType — the typed handle for accessing the resource
- ComponentRegistration — the equivalent record for components
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.