Package com.pixelmonmod.tcg.api.events
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionEndGameEvent
(PlayerServerState winner, PlayerServerState loser, boolean tiedGame) -
Method Summary
Modifier and TypeMethodDescriptiongetLoser()
net.minecraft.server.level.ServerPlayer
net.minecraft.server.level.ServerPlayer
boolean
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
EndGameEvent
-
-
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
- Returns:
- - The PlayerServerState of the winning player
-
getLoser
- Returns:
- - The PlayerServerState of the losing player
-
isTiedGame
public boolean isTiedGame()- Returns:
- - Returns true if the game was tied
-