Package com.pixelmonmod.api.statue
Class StatueSpecificationProxy
java.lang.Object
com.pixelmonmod.api.statue.StatueSpecificationProxy
Static proxy class for the
SpecificationFactory where it handles passing in the class-
Method Summary
Modifier and TypeMethodDescriptionstatic ParseAttempt<StatueSpecification> Creates aStatueSpecificationinstance from a string arraystatic ParseAttempt<StatueSpecification> fromNbt(net.minecraft.nbt.CompoundTag nbt) Creates aSpecificationimplementation from given itemCompoundTagstatic String[]Gets all requirement names for Pokemonstatic voidregister(Requirement<Pokemon, StatueEntity, ?> requirement) Register a newRequirementstatic ParseAttempt<List<Requirement<Pokemon, StatueEntity, ?>>> requirements(String spec) Gets the list ofRequirements created from the given spec
-
Method Details
-
register
Register a newRequirement- Parameters:
requirement- The requirement being registered
-
create
Creates aStatueSpecificationinstance 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
-