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
ConstructorsConstructorDescriptionLogicalAndRequirement(List<Requirement<Pokemon, StatueEntity, ?>> requirements) -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the parsed requirement to the datavoidapplyMinecraft(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 valuebooleanisDataMatch(Pokemon pixelmon) If the data type matches the parsed requirementbooleanisMinecraftMatch(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:RequirementCreates a new instance of the requirement with the given value- Parameters:
value- The value- Returns:
- The new requirement instance
-
isMinecraftMatch
Description copied from interface:RequirementIf 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:RequirementIf the data type matches the parsed requirement- Parameters:
pixelmon- The data to check against- Returns:
- True if a match
-
applyMinecraft
Description copied from interface:RequirementApplis the parsed requirement to the minecraft data- Parameters:
StatueEntity- The minecraft data
-
applyData
Description copied from interface:RequirementApplies the parsed requirement to the data- Parameters:
pokemon- The data
-