API reference Obsidian.API.Client
IClientPlugin interface
A plugin with a client side: implemented by a mod's PluginBase subclass to register what the Obsidian client does with it, like its payload handlers, key bindings, block tints and entity renderers.
public interface IClientPlugin
In Obsidian.API.Client.
Remarks
Only the Obsidian client calls IClientPlugin.ConfigureClient, after the mod's PluginBase.ConfigureRegistry; servers never do, so a mod whose side is both runs on a server without any client code. Keep client-only work in this method and what it registers.
Methods
ConfigureClient(IClientRegistry)
void ConfigureClient(IClientRegistry registry);Registers the mod's client side. Called when the client loads its mods: at startup, and again on a new instance of the plugin when the player reloads them. What it registers takes effect when it returns, after which registry takes no more registrations, and is dropped when the mods reload.