Interface RegisterChannelEvent

All Superinterfaces:
Event, LifecycleEvent

public interface RegisterChannelEvent extends LifecycleEvent
Lifecycle event to indicate when network channels should be created and registered.
  • Method Summary

    Modifier and Type
    Method
    Description
    <C extends Channel>
    C
    register(ResourceKey channelKey, Class<C> channelType)
    Creates and registers a new Channel for the given channel key and type.

    Methods inherited from interface org.spongepowered.api.event.Event

    cause, context, source

    Methods inherited from interface org.spongepowered.api.event.lifecycle.LifecycleEvent

    game