Class PlayerModInfoEvent

java.lang.Object
com.velocitypowered.api.event.player.PlayerModInfoEvent

public final class PlayerModInfoEvent extends Object
This event is fired when a Forge client sends its mods to the proxy while connecting to a server. Velocity will not wait on this event to finish firing.
  • Constructor Details

    • PlayerModInfoEvent

      public PlayerModInfoEvent(Player player, ModInfo modInfo)
      Constructs a new PlayerModInfoEvent.
      Parameters:
      player - the player sending their mod list
      modInfo - the mod list information
  • Method Details

    • getPlayer

      public Player getPlayer()
      Returns the player who sent their mod list.
      Returns:
      the player
    • getModInfo

      public ModInfo getModInfo()
      Returns the mod information sent by the player.
      Returns:
      the mod information
    • toString

      public String toString()
      Overrides:
      toString in class Object