Skip to content

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().

  • ECS_TYPE — the store type parameter
  • T — the concrete resource class
@Nonnull
public static final ResourceType[] EMPTY_ARRAY = new ResourceType[0];
@Nonnull
public ComponentRegistry<ECS_TYPE> getRegistry()
@Nonnull
public Class<? super T> getTypeClass()
public int getIndex()
public void validateRegistry(@Nonnull ComponentRegistry<ECS_TYPE> registry)
public void validate()
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.