Class EndGameEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.tcg.api.events.EndGameEvent

public class EndGameEvent extends net.minecraftforge.eventbus.api.Event
Fires as a TCG game is ending.
  • Constructor Details

  • Method Details

    • getWinnerPlayer

      public net.minecraft.server.level.ServerPlayer getWinnerPlayer()
      Returns:
      - An ServerPlayer instance of the winning player
    • getLoserPlayer

      public net.minecraft.server.level.ServerPlayer getLoserPlayer()
      Returns:
      - An ServerPlayer instance of the losing player
    • getWinner

      public PlayerServerState getWinner()
      Returns:
      - The PlayerServerState of the winning player
    • getLoser

      public PlayerServerState getLoser()
      Returns:
      - The PlayerServerState of the losing player
    • isTiedGame

      public boolean isTiedGame()
      Returns:
      - Returns true if the game was tied