public interface ISpecType
PokemonSpec
. Implementations
of this interface must be registered under PokemonSpec.extraSpecTypes
, completing which
the new type of spec field will be completely compatible with every function using PokemonSpecs.Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getKeys()
All the acceptable keys for this spec type.
|
java.lang.Class<? extends SpecValue<?>> |
getSpecClass()
The
SpecValue class that this will create. |
SpecValue<?> |
parse(java.lang.String arg)
Attempts to parse a spec of this type from a String argument.
|
SpecValue<?> |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
Reads this type of spec value from NBT.
|
java.lang.String |
toParameterForm(SpecValue<?> value)
Restores it to the form used in commands.
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt,
SpecValue<?> value)
Writes this type of spec value to NBT.
|
java.util.List<java.lang.String> getKeys()
SpecValue<?> parse(@Nullable java.lang.String arg)
SpecValue<?> readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt, SpecValue<?> value)
java.lang.Class<? extends SpecValue<?>> getSpecClass()
SpecValue
class that this will create. This is needed for JSON deserialization.java.lang.String toParameterForm(SpecValue<?> value)