Class 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 see MinecraftChannelIdentifier. 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LegacyChannelIdentifier

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

      • getName

        public java.lang.String getName()
      • toString

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

        public boolean equals​(@Nullable java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.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