mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Un-promote ChannelRegistry#byCommandName from API
This commit is contained in:
7 files changed
+24
-32
No files matched your search
@@ -22,7 +22,6 @@ package net.draycia.carbon.api.channels;
|
||||
import net.draycia.carbon.api.util.DefaultedKeyValueRegistry;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import net.kyori.registry.Registry;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
/**
|
||||
* Registry for chat channels.
|
||||
@@ -39,12 +38,4 @@ public interface ChannelRegistry extends Registry<Key, ChatChannel>, DefaultedKe
|
||||
*/
|
||||
void registerChannelCommands(final ChatChannel channel);
|
||||
|
||||
/**
|
||||
* Gets the channel with the corresponding command name.
|
||||
*
|
||||
* @param channelName the command used to speak in the channel
|
||||
* @return the channel
|
||||
*/
|
||||
@Nullable ChatChannel byCommandName(final String channelName);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user