Class NPCPartyStorage

All Implemented Interfaces:
Iterable<Pokemon>

public class NPCPartyStorage extends PartyStorage
  • Field Details

    • trainer

      protected NPC trainer
  • Constructor Details

    • NPCPartyStorage

      public NPCPartyStorage(UUID uuid)
    • NPCPartyStorage

      public NPCPartyStorage(NPC trainer)
  • Method Details

    • getUniqueId

      public UUID getUniqueId()
      Description copied from class: PokemonStorage
      Gets the unique identifier of the Pokemon storage
      Note that this will likely be the owning player's UUID in the case of a player storage, such as the PlayerPartyStorage or PCStorage
      Overrides:
      getUniqueId in class PokemonStorage
      Returns:
      the unique identifier of the Pokemon storage
    • getNPC

      public NPC getNPC()
    • sendCacheToPlayer

      public void sendCacheToPlayer(net.minecraft.server.level.ServerPlayer player)
      Description copied from class: PartyStorage
      Sends the Pokemon to the client for editing
      Overrides:
      sendCacheToPlayer in class PartyStorage
      Parameters:
      player - The player to send the Pokemon to