Package com.pixelmonmod.api.pokemon
Class PokemonSpecificationProxy
java.lang.Object
com.pixelmonmod.api.pokemon.PokemonSpecificationProxy
Static proxy class for the
SpecificationFactory
where it handles passing in the class-
Method Summary
Modifier and TypeMethodDescriptionstatic ParseAttempt<PokemonSpecification>
Creates aPokemonSpecification
instance from a string arraystatic ParseAttempt<PokemonSpecification>
fromNbt
(net.minecraft.nbt.CompoundTag nbt) Creates aSpecification
implementation from given itemCompoundTag
static String[]
Gets all requirement names for Pokemonstatic void
register
(Requirement<Pokemon, PixelmonEntity, ?> requirement) Register a newRequirement
static <T> GenericBuiltPokemonRequirement.Builder<T>
requirementBuilder
(Class<T> type) Creates a newGenericBuiltPokemonRequirement.Builder
static ParseAttempt<List<Requirement<Pokemon,
PixelmonEntity, ?>>> requirements
(String spec) Gets the list ofRequirement
s created from the given spec
-
Method Details
-
requirementBuilder
Creates a newGenericBuiltPokemonRequirement.Builder
- Type Parameters:
T
- The type of the requirement- Parameters:
type
- The type of the requirement- Returns:
- The builder
-
register
Register a newRequirement
- Parameters:
requirement
- The requirement being registered
-
create
Creates aPokemonSpecification
instance from a string array- Parameters:
specs
- The specs being parsed- Returns:
- The pokemon spec created
-
requirements
Gets the list ofRequirement
s created from the given spec- Parameters:
spec
- The spec being parsed- Returns:
- The list of all requirements
-
getRequirementNames
Gets all requirement names for Pokemon- Returns:
- All requirement names
-
fromNbt
Creates aSpecification
implementation from given itemCompoundTag
- Parameters:
nbt
- The NBT data- Returns:
- The parse attempt
-