Class LogicalNOTRequirement
java.lang.Object
com.pixelmonmod.api.statue.requirement.impl.LogicalNOTRequirement
- All Implemented Interfaces:
Requirement<Pokemon,StatueEntity, StatueSpecification>
public class LogicalNOTRequirement
extends Object
implements Requirement<Pokemon,StatueEntity,StatueSpecification>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the parsed requirement to the datavoidapplyMinecraft(StatueEntity StatueEntity) Applis the parsed requirement to the minecraft dataCreates a list of requirements from the spec being parsedCreates a new instance of the requirement with the given valuebooleanChecks if the given fits for this requirementThe aliases of the requirement that it can match againstintGets the order priority of the requirement.protected StringgetSubSpec(String value) getValue()Gets the internal value of the requirementbooleanisDataMatch(Pokemon pokemon) If the data type matches the parsed requirementbooleanisMinecraftMatch(StatueEntity StatueEntity) If the minecraft type matches the parsed requirementMethods 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
shouldContinue
-
Constructor Details
-
LogicalNOTRequirement
-
LogicalNOTRequirement
public LogicalNOTRequirement()
-
-
Method Details
-
getAliases
Description copied from interface:RequirementThe aliases of the requirement that it can match against- Specified by:
getAliasesin interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Returns:
- The aliases
-
getPriority
public int getPriority()Description copied from interface:RequirementGets the order priority of the requirement. Higher number = higher priority (i.e. it is applied first)- Specified by:
getPriorityin interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Returns:
- The priority
-
fits
Description copied from interface:RequirementChecks if the given fits for this requirement- Specified by:
fitsin interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Parameters:
spec- The parsed spec- Returns:
- True if this requirement is found in the parameter
-
create
Description copied from interface:RequirementCreates a list of requirements from the spec being parsed- Specified by:
createin interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Parameters:
spec- The spec being parsed- Returns:
- The new list of requirements
-
getSubSpec
-
createInstance
public ParseAttempt<Requirement<Pokemon,StatueEntity, createInstanceStatueSpecification>> (StatueSpecification value) Description copied from interface:RequirementCreates a new instance of the requirement with the given value- Specified by:
createInstancein interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Parameters:
value- The value- Returns:
- The new requirement instance
-
isDataMatch
Description copied from interface:RequirementIf the data type matches the parsed requirement- Specified by:
isDataMatchin interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Parameters:
pokemon- 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,StatueEntity, StatueSpecification> - Parameters:
StatueEntity- The minecraft data to check against- Returns:
- True if a match
-
applyData
Description copied from interface:RequirementApplies the parsed requirement to the data- Specified by:
applyDatain interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Parameters:
pokemon- The data
-
applyMinecraft
Description copied from interface:RequirementApplis the parsed requirement to the minecraft data- Specified by:
applyMinecraftin interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Parameters:
StatueEntity- The minecraft data
-
getValue
Description copied from interface:RequirementGets the internal value of the requirement- Specified by:
getValuein interfaceRequirement<Pokemon,StatueEntity, StatueSpecification> - Returns:
- The value stored
-