Skip to content

AssetRegistry

Package: com.hypixel.hytale.server.core.plugin.registry

public class AssetRegistry

Registry for registering AssetStore instances with the global AssetRegistry. Tracks unregister callbacks for cleanup during plugin shutdown. Used by plugins to register custom asset types.

ConstructorDescription
AssetRegistry(List<BooleanConsumer> unregister)Creates a registry backed by the given unregister callback list.
MethodReturn TypeDescription
register(@Nonnull S assetStore)AssetRegistryRegisters an asset store and records an unregister callback. Returns this for chaining.
shutdown()voidNo-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.