Interface PixelmonPlayerExtension

All Known Implementing Classes:
net.minecraft.client.player.AbstractClientPlayer, DummyLocalPlayer, net.minecraft.client.player.LocalPlayer, MixinLocalPlayer, MixinPlayer, MixinServerPlayer, net.minecraft.world.entity.player.Player, SkinnableDummyLocalPlayer

public interface PixelmonPlayerExtension
Extension interface for Player to add Pixelmon specific functionality.
  • Method Details

    • getPartyNow

      default PlayerPartyStorage getPartyNow()
      Gets the party of the player.
      Returns:
      The player's party.
    • getParty

      Gets the party of the player.
      Returns:
      A CompletableFuture that will complete with the player's party.
    • getBankAccountNow

      default BankAccount getBankAccountNow()
      Gets the bank account of the player.
      Returns:
      The player's bank account.
    • getBankAccount

      default CompletableFuture<? extends BankAccount> getBankAccount()
      Gets the bank account of the player.
      Returns:
      A CompletableFuture that will complete with the player's bank account.
    • getResearchNow

      default ResearchStorage getResearchNow()
      Gets the research storage of the player.
      Returns:
      The player's research storage.
    • getResearch

      default CompletableFuture<ResearchStorage> getResearch()
      Gets the research storage of the player.
      Returns:
      A CompletableFuture that will complete with the player's research storage.
    • getPokedex

      default CompletableFuture<PokedexStorage> getPokedex()
      Gets the pokedex storage of the player.
      Returns:
      The player's pokedex storage.
    • getPokedexNow

      default PokedexStorage getPokedexNow()
      Gets the pokedex storage of the player.
      Returns:
      The player's pokedex storage.
    • battleQuery

      default BattleQuery.Builder battleQuery(net.minecraft.server.level.ServerPlayer opponent)
      Creates a BattleQuery.Builder for the player to query battles.
      Parameters:
      opponent - The opponent player
      Returns:
      A query builder
    • getCurrentBattle

      default BattleController getCurrentBattle()
      Gets the current battle controller for the player.
      Returns:
      The current battle controller.
    • invalidateCache

      default void invalidateCache()
      Clears the cached data for the player.