Class AbstractStringRequirement<A,B>

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

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

    • value

      protected String value
    • defaultValue

      protected final String defaultValue
  • Constructor Details

    • AbstractStringRequirement

      protected AbstractStringRequirement(Set<String> keys, String defaultValue)
    • AbstractStringRequirement

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