public class PositionRequirement extends AbstractStringPokemonRequirement
Modifier and Type | Field and Description |
---|---|
protected java.util.function.BiConsumer<java.lang.String,PixelmonEntity> |
editor |
protected java.lang.String |
value |
defaultValue
keys
Constructor and Description |
---|
PositionRequirement(java.util.Set<java.lang.String> keys,
java.util.function.BiConsumer<java.lang.String,PixelmonEntity> editor) |
PositionRequirement(java.util.Set<java.lang.String> keys,
java.util.function.BiConsumer<java.lang.String,PixelmonEntity> editor,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
applyData(Pokemon pokemon) |
void |
applyMinecraft(PixelmonEntity entityPixelmon) |
Requirement<Pokemon,PixelmonEntity,java.lang.String> |
createInstance(java.lang.String value)
Creates a new instance of the requirement with the given value
|
boolean |
isDataMatch(Pokemon pokemon) |
createSimple, getValue
isMinecraftMatch
create, fits, getAliases
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, shouldContinue
protected java.lang.String value
protected final java.util.function.BiConsumer<java.lang.String,PixelmonEntity> editor
public PositionRequirement(java.util.Set<java.lang.String> keys, java.util.function.BiConsumer<java.lang.String,PixelmonEntity> editor)
public PositionRequirement(java.util.Set<java.lang.String> keys, java.util.function.BiConsumer<java.lang.String,PixelmonEntity> editor, java.lang.String value)
public Requirement<Pokemon,PixelmonEntity,java.lang.String> createInstance(java.lang.String value)
Requirement
value
- The valuepublic boolean isDataMatch(Pokemon pokemon)
public void applyData(Pokemon pokemon)
public void applyMinecraft(PixelmonEntity entityPixelmon)
applyMinecraft
in interface Requirement<Pokemon,PixelmonEntity,java.lang.String>
applyMinecraft
in class AbstractPokemonRequirement<java.lang.String>