public final class MinecraftChannelIdentifier extends Object implements ChannelIdentifier
| Modifier and Type | Method and Description |
|---|---|
net.kyori.minecraft.Key |
asKey() |
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). |
static MinecraftChannelIdentifier |
from(net.kyori.minecraft.Key key)
Creates an channel identifier from the specified Minecraft identifier.
|
static MinecraftChannelIdentifier |
from(String identifier)
Creates an channel identifier from the specified Minecraft identifier.
|
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 static MinecraftChannelIdentifier from(String identifier)
identifier - the Minecraft identifierpublic static MinecraftChannelIdentifier from(net.kyori.minecraft.Key key)
key - the Minecraft key to usepublic String getNamespace()
public String getName()
public net.kyori.minecraft.Key asKey()
public String getId()
ChannelIdentifiergetId in interface ChannelIdentifier