Class ModInfo.Mod

java.lang.Object
com.velocitypowered.api.util.ModInfo.Mod
Enclosing class:
ModInfo

public static final class ModInfo.Mod extends Object
Represents a mod to send to the client.
  • Constructor Details

    • Mod

      public Mod(String id, String version)
      Creates a new mod info.
      Parameters:
      id - the mod identifier
      version - the mod version
  • Method Details

    • getId

      public String getId()
      Returns the mod ID (identifier string).
      Returns:
      the mod ID
    • getVersion

      public String getVersion()
      Returns the mod version string.
      Returns:
      the mod version
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object