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 Summary
Modifier and TypeMethodDescriptiondefault BattleQuery.BuilderbattleQuery(net.minecraft.server.level.ServerPlayer opponent) Creates aBattleQuery.Builderfor the player to query battles.default CompletableFuture<? extends BankAccount> Gets the bank account of the player.default BankAccountGets the bank account of the player.default BattleControllerGets the current battle controller for the player.default CompletableFuture<PlayerPartyStorage> getParty()Gets the party of the player.default PlayerPartyStorageGets the party of the player.default CompletableFuture<PokedexStorage> Gets the pokedex storage of the player.default PokedexStorageGets the pokedex storage of the player.default CompletableFuture<ResearchStorage> Gets the research storage of the player.default ResearchStorageGets the research storage of the player.default voidClears the cached data for the player.default booleanisShoulderLeft(Pokemon pokemon) Checks if the Pokemon is on the player's left shoulderdefault booleanisShoulderLeft(PixelmonEntity entity) Checks if the Pokemon is on the player's left shoulderdefault booleanisShoulderRight(Pokemon pokemon) Checks if the Pokemon is on the player's right shoulderdefault booleanisShoulderRight(PixelmonEntity entity) Checks if the Pokemon is on the player's right shoulder
-
Method Details
-
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
Gets the bank account of the player.- Returns:
- The player's bank account.
-
getBankAccount
Gets the bank account of the player.- Returns:
- A CompletableFuture that will complete with the player's bank account.
-
getResearchNow
Gets the research storage of the player.- Returns:
- The player's research storage.
-
getResearch
Gets the research storage of the player.- Returns:
- A CompletableFuture that will complete with the player's research storage.
-
getPokedex
Gets the pokedex storage of the player.- Returns:
- The player's pokedex storage.
-
getPokedexNow
Gets the pokedex storage of the player.- Returns:
- The player's pokedex storage.
-
battleQuery
Creates aBattleQuery.Builderfor the player to query battles.- Parameters:
opponent- The opponent player- Returns:
- A query builder
-
getCurrentBattle
Gets the current battle controller for the player.- Returns:
- The current battle controller.
-
isShoulderLeft
Checks if the Pokemon is on the player's left shoulder- Parameters:
entity- The pokemon to check- Returns:
- True if it is
-
isShoulderLeft
Checks if the Pokemon is on the player's left shoulder- Parameters:
pokemon- The pokemon to check- Returns:
- True if it is
-
isShoulderRight
Checks if the Pokemon is on the player's right shoulder- Parameters:
entity- The pokemon to check- Returns:
- True if it is
-
isShoulderRight
Checks if the Pokemon is on the player's right shoulder- Parameters:
pokemon- The pokemon to check- Returns:
- True if it is
-
invalidateCache
default void invalidateCache()Clears the cached data for the player.
-