Class PixelmonPlayerTracker
java.lang.Object
com.pixelmonmod.pixelmon.listener.PixelmonPlayerTracker
Event handlers for player login and logout.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
onPlayerDeath
(net.minecraftforge.event.entity.living.LivingDeathEvent event) Listens for player death to remove the player from certain tracking processes.static void
onPlayerLogin
(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event) static void
onPlayerLogout
(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedOutEvent event) static void
removePlayer
(net.minecraft.server.level.ServerPlayer player, BattleEndCause cause) Removes a player from processes that track all players.
-
Constructor Details
-
PixelmonPlayerTracker
public PixelmonPlayerTracker()
-
-
Method Details
-
onPlayerLogin
public static void onPlayerLogin(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event) -
onPlayerLogout
public static void onPlayerLogout(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedOutEvent event) -
onPlayerDeath
public static void onPlayerDeath(net.minecraftforge.event.entity.living.LivingDeathEvent event) Listens for player death to remove the player from certain tracking processes.- Parameters:
event
- The death event that triggered this method.
-
removePlayer
public static void removePlayer(net.minecraft.server.level.ServerPlayer player, BattleEndCause cause) Removes a player from processes that track all players.- Parameters:
player
- The player to remove.
-