Class LegacyChannelIdentifier
- java.lang.Object
-
- com.velocitypowered.api.proxy.messages.LegacyChannelIdentifier
-
- All Implemented Interfaces:
ChannelIdentifier
public final class LegacyChannelIdentifier extends java.lang.Object implements ChannelIdentifier
Reperesents 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(java.lang.String name)
Creates a new legacy channel identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable java.lang.Object o)
java.lang.String
getId()
Returns the textual representation of this identifier.java.lang.String
getName()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getId
public java.lang.String getId()
Description copied from interface:ChannelIdentifier
Returns the textual representation of this identifier.- Specified by:
getId
in interfaceChannelIdentifier
- Returns:
- the textual representation of the identifier
-
-