AssetRegistry
Package: com.hypixel.hytale.server.core.plugin.registry
public class AssetRegistryRegistry for registering AssetStore instances with the global AssetRegistry. Tracks unregister callbacks for cleanup during plugin shutdown. Used by plugins to register custom asset types.
Constructors
Section titled “Constructors”| Constructor | Description |
|---|---|
AssetRegistry(List<BooleanConsumer> unregister) | Creates a registry backed by the given unregister callback list. |
Methods
Section titled “Methods”| Method | Return Type | Description |
|---|---|---|
register(@Nonnull S assetStore) | AssetRegistry | Registers an asset store and records an unregister callback. Returns this for chaining. |
shutdown() | void | No-op shutdown hook. |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.