Table of Contents

Interface IPluginRegistry

Namespace
Obsidian.API.Plugins
Assembly
Obsidian.API.dll
public interface IPluginRegistry

Methods

MapCommand(string, ValueTaskContextDelegate<CommandContext>)

IPluginRegistry MapCommand(string name, ValueTaskContextDelegate<CommandContext> contextDelegate)

Parameters

name string
contextDelegate ValueTaskContextDelegate<CommandContext>

Returns

IPluginRegistry

MapCommand(string, Delegate)

IPluginRegistry MapCommand(string name, Delegate contextDelegate)

Parameters

name string
contextDelegate Delegate

Returns

IPluginRegistry

MapCommands()

IPluginRegistry MapCommands()

Returns

IPluginRegistry

MapEvent(Delegate, Priority)

IPluginRegistry MapEvent(Delegate contextDelegate, Priority priority = Priority.Low)

Parameters

contextDelegate Delegate
priority Priority

Returns

IPluginRegistry

MapEvent<TEventArgs>(ValueTaskContextDelegate<TEventArgs>, Priority)

IPluginRegistry MapEvent<TEventArgs>(ValueTaskContextDelegate<TEventArgs> contextDelegate, Priority priority = Priority.Low) where TEventArgs : BaseMinecraftEventArgs

Parameters

contextDelegate ValueTaskContextDelegate<TEventArgs>
priority Priority

Returns

IPluginRegistry

Type Parameters

TEventArgs

MapEvents()

IPluginRegistry MapEvents()

Returns

IPluginRegistry

RegisterCommandArgumentHandler<T>(T)

IPluginRegistry RegisterCommandArgumentHandler<T>(T parser) where T : BaseArgumentParser

Parameters

parser T

Returns

IPluginRegistry

Type Parameters

T