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