Class AIRequirement
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<Pokemon,PixelmonEntity,Aggression>
com.pixelmonmod.api.pokemon.requirement.AbstractPokemonRequirement<Aggression>
com.pixelmonmod.api.pokemon.requirement.impl.AIRequirement
- All Implemented Interfaces:
Requirement<Pokemon,PixelmonEntity, Aggression>
-
Field Summary
Fields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the parsed requirement to the datavoidapplyMinecraft(PixelmonEntity entityPixelmon) Applis the parsed requirement to the minecraft dataAttempts to parse the spec with the key that was found in the spec stringcreateInstance(Aggression value) Creates a new instance of the requirement with the given valuegetValue()Gets the internal value of the requirementbooleanisDataMatch(Pokemon pixelmon) If the data type matches the parsed requirementbooleanisMinecraftMatch(PixelmonEntity entityPixelmon) If the minecraft type matches the parsed requirementMethods inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
create, fits, getAliasesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.api.requirement.Requirement
getPriority, shouldContinue
-
Constructor Details
-
AIRequirement
public AIRequirement() -
AIRequirement
-
-
Method Details
-
create
Description copied from class:AbstractRequirementAttempts to parse the spec with the key that was found in the spec string- Specified by:
createin classAbstractPokemonRequirement<Aggression>- Parameters:
key- The key foundspec- The spec being parsed- Returns:
- The parse attempt
-
createInstance
public ParseAttempt<Requirement<Pokemon,PixelmonEntity, createInstanceAggression>> (Aggression 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
-
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
-
isMinecraftMatch
Description copied from interface:RequirementIf the minecraft type matches the parsed requirement- Specified by:
isMinecraftMatchin interfaceRequirement<Pokemon,PixelmonEntity, Aggression> - Overrides:
isMinecraftMatchin classAbstractPokemonRequirement<Aggression>- Parameters:
entityPixelmon- The minecraft data to check against- Returns:
- True if a match
-
applyData
Description copied from interface:RequirementApplies the parsed requirement to the data- Parameters:
pixelmon- The data
-
applyMinecraft
Description copied from interface:RequirementApplis the parsed requirement to the minecraft data- Specified by:
applyMinecraftin interfaceRequirement<Pokemon,PixelmonEntity, Aggression> - Overrides:
applyMinecraftin classAbstractPokemonRequirement<Aggression>- Parameters:
entityPixelmon- The minecraft data
-
getValue
Description copied from interface:RequirementGets the internal value of the requirement- Returns:
- The value stored
-