public final class MinecraftChannelIdentifier extends Object implements ChannelIdentifier
Modifier and Type | Method and Description |
---|---|
static MinecraftChannelIdentifier |
create(String namespace,
String name)
Creates an identifier in the specified namespace.
|
boolean |
equals(@Nullable Object o) |
static MinecraftChannelIdentifier |
forDefaultNamespace(String name)
Creates an identifier in the default namespace (
minecraft ). |
String |
getId()
Returns the textual representation of this identifier.
|
String |
getName() |
String |
getNamespace() |
int |
hashCode() |
String |
toString() |
public static MinecraftChannelIdentifier forDefaultNamespace(String name)
minecraft
). Plugins are strongly
encouraged to provide their own namespace.name
- the name in the default namespace to usepublic static MinecraftChannelIdentifier create(String namespace, String name)
namespace
- the namespace to usename
- the channel name inside the specified namespacepublic String getNamespace()
public String getName()
public String getId()
ChannelIdentifier
getId
in interface ChannelIdentifier