Interface TeamSupplier
- All Known Implementing Classes:
EmptyTeamSupplier,PokemonSpecTeamSupplier,PokePasteTeamSupplier,RandomCombinationTeamSupplier
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
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPartyStoragefrom the team supplier.com.mojang.serialization.MapCodec<? extends TeamSupplier> codec()Gets the codec for theTeamSupplier.static TeamSupplierempty()Creates an emptyTeamSupplier.static TeamSupplierpokemonSpec(String... specs) Creates aTeamSupplierthat reads a team from a list ofPokemonSpecificationsstatic TeamSupplierpokemonSpec(Collection<String> specs) Creates aTeamSupplierthat reads a team from a list ofPokemonSpecificationsstatic TeamSupplierCreates aTeamSupplierthat reads a team from a PokePaste URL.type()
-
Field Details
-
CODEC
-
-
Method Details
-
codec
com.mojang.serialization.MapCodec<? extends TeamSupplier> codec()Gets the codec for theTeamSupplier.- Returns:
- the codec
-
type
TeamSupplierType<?> type() -
build
PartyStorage build()Builds aPartyStoragefrom the team supplier.- Returns:
- the
PartyStorage
-
pokePaste
Creates aTeamSupplierthat reads a team from a PokePaste URL.- Parameters:
url- the PokePaste URL- Returns:
- the
TeamSupplier
-
pokemonSpec
Creates aTeamSupplierthat reads a team from a list ofPokemonSpecifications- Parameters:
specs- the list of Pokemon specifications- Returns:
- the
TeamSupplier
-
pokemonSpec
Creates aTeamSupplierthat reads a team from a list ofPokemonSpecifications- Parameters:
specs- the list of Pokemon specifications- Returns:
- the
TeamSupplier
-
empty
Creates an emptyTeamSupplier.- Returns:
- the
TeamSupplier
-