Interface TeamSupplier
- All Known Implementing Classes:
EmptyTeamSupplier
,PokemonSpecTeamSupplier
,PokePasteTeamSupplier
public interface TeamSupplier
An interface that is used to build a
This exists because the species registry loads after the Mojang registries (NPC Presets), and so we need to store the raw data so that we can parse it once the species registry is loaded.
PartyStorage
from raw data.
This exists because the species registry loads after the Mojang registries (NPC Presets), and so we need to store the raw data so that we can parse it once the species registry is loaded.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPartyStorage
from the team supplier.com.mojang.serialization.Codec<? extends TeamSupplier>
codec()
Gets the codec for theTeamSupplier
.static TeamSupplier
empty()
Creates an emptyTeamSupplier
.static TeamSupplier
pokemonSpec
(String... specs) Creates aTeamSupplier
that reads a team from a list ofPokemonSpecification
sstatic TeamSupplier
pokemonSpec
(Collection<String> specs) Creates aTeamSupplier
that reads a team from a list ofPokemonSpecification
sstatic TeamSupplier
Creates aTeamSupplier
that reads a team from a PokePaste URL.
-
Field Details
-
CODEC
-
-
Method Details
-
codec
com.mojang.serialization.Codec<? extends TeamSupplier> codec()Gets the codec for theTeamSupplier
.- Returns:
- the codec
-
build
PartyStorage build()Builds aPartyStorage
from the team supplier.- Returns:
- the
PartyStorage
-
pokePaste
Creates aTeamSupplier
that reads a team from a PokePaste URL.- Parameters:
url
- the PokePaste URL- Returns:
- the
TeamSupplier
-
pokemonSpec
Creates aTeamSupplier
that reads a team from a list ofPokemonSpecification
s- Parameters:
specs
- the list of Pokemon specifications- Returns:
- the
TeamSupplier
-
pokemonSpec
Creates aTeamSupplier
that reads a team from a list ofPokemonSpecification
s- Parameters:
specs
- the list of Pokemon specifications- Returns:
- the
TeamSupplier
-
empty
Creates an emptyTeamSupplier
.- Returns:
- the
TeamSupplier
-