ResourceType
Package: com.hypixel.hytale.component
public class ResourceType<ECS_TYPE, T extends Resource<ECS_TYPE>> implements Comparable<ResourceType<ECS_TYPE, ?>>A typed handle representing a registered resource in the ECS. Obtained from IComponentRegistry.registerResource(). Used to access per-store singleton data via Store.getResource().
Type Parameters
Section titled “Type Parameters”ECS_TYPE— the store type parameterT— the concrete resource class
Fields
Section titled “Fields”@Nonnullpublic static final ResourceType[] EMPTY_ARRAY = new ResourceType[0];Methods
Section titled “Methods”@Nonnullpublic ComponentRegistry<ECS_TYPE> getRegistry()@Nonnullpublic Class<? super T> getTypeClass()public int getIndex()public void validateRegistry(@Nonnull ComponentRegistry<ECS_TYPE> registry)public void validate()Related Types
Section titled “Related Types”- Resource — the interface all resources implement
- ResourceRegistration — the full registration record
- Store — uses ResourceType to access resources
- IResourceStorage — loads and saves resources by type
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.