Class AbstractIntegerRequirement<A,B>

java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<A,B,Integer>
com.pixelmonmod.api.requirement.AbstractIntegerRequirement<A,B>
All Implemented Interfaces:
Requirement<A,B,Integer>

public abstract class AbstractIntegerRequirement<A,B> extends AbstractRequirement<A,B,Integer>
Basic abstract implementation for specs following the basic implementation that have an integer value so that integer specs are handled consistently.
All integer specs extending this class can use the following format: > "spec" - returns the provided default value > "spec:" - returns the provided integer > "spec:" - returns the provided default value
  • Field Details

    • value

      protected int value
    • defaultValue

      protected int defaultValue
  • Constructor Details

    • AbstractIntegerRequirement

      protected AbstractIntegerRequirement(Set<String> keys, int defaultValue)
    • AbstractIntegerRequirement

      protected AbstractIntegerRequirement(Set<String> keys, int defaultValue, int value)
  • Method Details