Package com.velocitypowered.api.util
Class ModInfo
java.lang.Object
com.velocitypowered.api.util.ModInfo
Represents the information for a Forge mod list.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a mod to send to the client. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModInfo(String type, List<ModInfo.Mod> modList) Constructs a new ModInfo instance. -
Method Summary
-
Field Details
-
DEFAULT
The default mod info used when no mods are present. Typically used for Forge-compatible connections that require a placeholder.
-
-
Constructor Details
-
ModInfo
Constructs a new ModInfo instance.- Parameters:
type- the Forge server list version to usemodList- the mods to present to the client
-
-
Method Details
-
getType
Returns the Forge mod list type (e.g., "FML").- Returns:
- the mod list type
-
getMods
Returns an immutable list of all mods in this mod list.- Returns:
- the list of mods
-
toString
-
equals
-
hashCode
public int hashCode()
-