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 aPokemonSpecificationinstance from a string arraystatic ParseAttempt<PokemonSpecification>fromNbt(net.minecraft.nbt.CompoundTag nbt) Creates aSpecificationimplementation from given itemCompoundTagstatic String[]Gets all requirement names for Pokemonstatic voidregister(Requirement<Pokemon, PixelmonEntity, ?> requirement) Register a newRequirementstatic <T> GenericBuiltPokemonRequirement.Builder<T>requirementBuilder(Class<T> type) Creates a newGenericBuiltPokemonRequirement.Builderstatic ParseAttempt<List<Requirement<Pokemon,PixelmonEntity, ?>>> requirements(String spec) Gets the list ofRequirements 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 aPokemonSpecificationinstance from a string array- Parameters:
 specs- The specs being parsed- Returns:
 - The pokemon spec created
 
 - 
requirements
Gets the list ofRequirements 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 aSpecificationimplementation from given itemCompoundTag- Parameters:
 nbt- The NBT data- Returns:
 - The parse attempt
 
 
 -