Class LegacyChannelIdentifier
- java.lang.Object
-
- com.velocitypowered.api.proxy.messages.LegacyChannelIdentifier
-
- All Implemented Interfaces:
ChannelIdentifier
public final class LegacyChannelIdentifier extends Object implements ChannelIdentifier
Represents a legacy channel identifier (for Minecraft 1.12 and below). For modern 1.13 plugin messages, please seeMinecraftChannelIdentifier. This class is immutable and safe for multi-threaded use.
-
-
Constructor Summary
Constructors Constructor Description LegacyChannelIdentifier(String name)Creates a new legacy channel identifier.
-
-
-
Constructor Detail
-
LegacyChannelIdentifier
public LegacyChannelIdentifier(String name)
Creates a new legacy channel identifier.- Parameters:
name- the name for the channel
-
-
Method Detail
-
getName
public String getName()
-
getId
public String getId()
Description copied from interface:ChannelIdentifierReturns the textual representation of this identifier.- Specified by:
getIdin interfaceChannelIdentifier- Returns:
- the textual representation of the identifier
-
-