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 CompletableFuture
<? extends BankAccount> Gets the bank account of the player.default BankAccount
Gets the bank account of the player.default CompletableFuture
<PlayerPartyStorage> getParty()
Gets the party of the player.default PlayerPartyStorage
Gets the party of the player.default CompletableFuture
<ResearchStorage> Gets the research storage of the player.default ResearchStorage
Gets the research storage of the player.default void
Clears the cached data for the player.
-
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.
-
invalidateCache
default void invalidateCache()Clears the cached data for the player.
-