Class LegacyChannelIdentifier

  • All Implemented Interfaces:

    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

      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.
        name - the name for the channel
    • Method Detail

      • getName

        public java.lang.String getName()
      • toString

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

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

        public int hashCode()
        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
        the textual representation of the identifier