Class LogicalAndRequirement
java.lang.Object
com.pixelmonmod.api.statue.requirement.AbstractRecursiveStatueRequirement
com.pixelmonmod.api.statue.requirement.impl.LogicalAndRequirement
- All Implemented Interfaces:
Requirement<Pokemon,
StatueEntity, List<Requirement<Pokemon, StatueEntity, ?>>>
-
Field Summary
Fields inherited from class com.pixelmonmod.api.statue.requirement.AbstractRecursiveStatueRequirement
keys, requirements
-
Constructor Summary
ConstructorDescriptionLogicalAndRequirement
(List<Requirement<Pokemon, StatueEntity, ?>> requirements) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the parsed requirement to the datavoid
applyMinecraft
(StatueEntity StatueEntity) Applis the parsed requirement to the minecraft datacreateInstance
(List<Requirement<Pokemon, StatueEntity, ?>> value) Creates a new instance of the requirement with the given valueboolean
isDataMatch
(Pokemon pixelmon) If the data type matches the parsed requirementboolean
isMinecraftMatch
(StatueEntity entity) If the minecraft type matches the parsed requirementMethods inherited from class com.pixelmonmod.api.statue.requirement.AbstractRecursiveStatueRequirement
create, fits, getAliases, getPriority, getValue, shouldContinue
-
Constructor Details
-
LogicalAndRequirement
public LogicalAndRequirement() -
LogicalAndRequirement
-
-
Method Details
-
createInstance
public ParseAttempt<Requirement<Pokemon,StatueEntity, createInstanceList<Requirement<Pokemon, StatueEntity, ?>>>> (List<Requirement<Pokemon, StatueEntity, ?>> value) Description copied from interface:Requirement
Creates a new instance of the requirement with the given value- Parameters:
value
- The value- Returns:
- The new requirement instance
-
isMinecraftMatch
Description copied from interface:Requirement
If the minecraft type matches the parsed requirement- Parameters:
entity
- The minecraft data to check against- Returns:
- True if a match
-
isDataMatch
Description copied from interface:Requirement
If the data type matches the parsed requirement- Parameters:
pixelmon
- The data to check against- Returns:
- True if a match
-
applyMinecraft
Description copied from interface:Requirement
Applis the parsed requirement to the minecraft data- Parameters:
StatueEntity
- The minecraft data
-
applyData
Description copied from interface:Requirement
Applies the parsed requirement to the data- Parameters:
pokemon
- The data
-