Skip to content

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.

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