PluginSubscriptions

Trait PluginSubscriptions 

Source
pub trait PluginSubscriptions {
    // Required method
    fn get_subscriptions(&self) -> Vec<EventType>;
}
Expand description

A trait that defines which events your plugin will receive.

You can implement this trait manually, or you can use the #[bedrock_plugin] macro on your PluginEventHandler implementation to generate it for you.

Required Methods§

Implementors§