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 see MinecraftChannelIdentifier. This class is immutable and safe for multi-threaded use.
  • Constructor Details

    • LegacyChannelIdentifier

      public LegacyChannelIdentifier(String name)
      Creates a new legacy channel identifier.
      Parameters:
      name - the name for the channel
  • Method Details

    • getName

      public String getName()
      Returns the name of this legacy plugin message channel.
      Returns:
      the channel name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Description copied from interface: ChannelIdentifier
      Returns the textual representation of this identifier.
      Specified by:
      getId in interface ChannelIdentifier
      Returns:
      the textual representation of the identifier