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 aStatueSpecification
instance from a string arraystatic ParseAttempt<StatueSpecification>
fromNbt
(net.minecraft.nbt.CompoundTag nbt) Creates aSpecification
implementation from given itemCompoundTag
static String[]
Gets all requirement names for Pokemonstatic void
register
(Requirement<Pokemon, StatueEntity, ?> requirement) Register a newRequirement
static ParseAttempt<List<Requirement<Pokemon,
StatueEntity, ?>>> requirements
(String spec) Gets the list ofRequirement
s created from the given spec
-
Method Details
-
register
Register a newRequirement
- Parameters:
requirement
- The requirement being registered
-
create
Creates aStatueSpecification
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
-