Class PixelmonPlayerTracker

java.lang.Object
com.pixelmonmod.pixelmon.listener.PixelmonPlayerTracker

public class PixelmonPlayerTracker extends Object
Event handlers for player login and logout.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.