A
- The reforged objectB
- the minecraft objectC
- the value data typepublic abstract class AbstractRequirement<A,B,C> extends java.lang.Object implements Requirement<A,B,C>
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.String> |
keys |
Constructor and Description |
---|
AbstractRequirement(java.util.Set<java.lang.String> keys) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Requirement<A,B,?>> |
create(java.lang.String spec)
Creates a list of requirements from the spec being parsed
|
abstract java.util.List<Requirement<A,B,?>> |
createSimple(java.lang.String key,
java.lang.String spec) |
boolean |
fits(java.lang.String spec)
Checks if the given fits for this requirement
|
java.util.List<java.lang.String> |
getAliases() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyData, applyMinecraft, createInstance, getPriority, getValue, isDataMatch, isMinecraftMatch, shouldContinue
public AbstractRequirement(java.util.Set<java.lang.String> keys)
public java.util.List<java.lang.String> getAliases()
getAliases
in interface Requirement<A,B,C>
public boolean fits(java.lang.String spec)
Requirement
fits
in interface Requirement<A,B,C>
spec
- The parsed specpublic java.util.List<Requirement<A,B,?>> create(java.lang.String spec)
Requirement
create
in interface Requirement<A,B,C>
spec
- The spec being parsedpublic abstract java.util.List<Requirement<A,B,?>> createSimple(java.lang.String key, java.lang.String spec)