Package com.pixelmonmod.api.requirement
Class AbstractBooleanRequirement<A,B> 
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<A,B,Boolean>
  
com.pixelmonmod.api.requirement.AbstractBooleanRequirement<A,B> 
- All Implemented Interfaces:
 Requirement<A,B, Boolean> 
Basic abstract implementation for specs following the basic
 implementation that have a boolean value so that
 boolean specs are handled consistently.
 
All boolean specs extending this class can be matched using the following formats:
> "spec" - defaults to true > "!spec" - becomes false > "!spec:true" - false > "spec:true" - true > "spec:false" - false > "spec:1" - true > "spec:0" - false
The "!" inverts the value on any boolean spec.
All boolean specs extending this class can be matched using the following formats:
> "spec" - defaults to true > "!spec" - becomes false > "!spec:true" - false > "spec:true" - true > "spec:false" - false > "spec:1" - true > "spec:0" - false
The "!" inverts the value on any boolean spec.
- 
Field Summary
FieldsFields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBooleanRequirement(Set<String> keys) protectedAbstractBooleanRequirement(Set<String> keys, boolean value)  - 
Method Summary
Modifier and TypeMethodDescriptionParseAttempt<List<Requirement<A,B, ?>>> Attempts to parse the spec with the key that was found in the spec stringgetValue()Gets the internal value of the requirementprotected booleanMethods 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
applyData, applyMinecraft, createInstance, getPriority, isDataMatch, isMinecraftMatch, shouldContinue 
- 
Field Details
- 
value
protected boolean value 
 - 
 - 
Constructor Details
- 
AbstractBooleanRequirement
 - 
AbstractBooleanRequirement
 
 - 
 - 
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 classAbstractRequirement<A,B, Boolean> - Parameters:
 key- The key foundspec- The spec being parsed- Returns:
 - The parse attempt
 
 - 
parseBoolean
 - 
getValue
Description copied from interface:RequirementGets the internal value of the requirement- Returns:
 - The value stored
 
 
 -