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>

public abstract class AbstractBooleanRequirement<A,B> extends AbstractRequirement<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.
  • Field Details

    • value

      protected boolean value
  • Constructor Details

    • AbstractBooleanRequirement

      protected AbstractBooleanRequirement(Set<String> keys)
    • AbstractBooleanRequirement

      protected AbstractBooleanRequirement(Set<String> keys, boolean value)
  • Method Details