package mcjty.rftoolscontrol.api.parameters;

import java.util.HashMap;
import java.util.Map;

public enum ParameterType {
    PAR_STRING("string"),
    PAR_INTEGER("integer"),
    PAR_FLOAT("float"),
    PAR_SIDE("side"),
    PAR_BOOLEAN("boolean"),
    PAR_INVENTORY("inventory"),
    PAR_ITEM("item"),
    PAR_EXCEPTION("exception"),
    PAR_TUPLE("tuple"),
    PAR_FLUID("fluid"),
    PAR_VECTOR("vector");

    private final String name;

    private static final Map<String, ParameterType> TYPE_MAP = new HashMap<>();

    static {
        for (ParameterType type : values()) {
            TYPE_MAP.put(type.getName(), type);
        }
    }

    ParameterType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static ParameterType getByName(String name) {
        return TYPE_MAP.get(name);
    }
}

@@ -402,16 +402,64 @@
 vector%22)
+,%0A    PAR_LONG(%22long%22),%0A    PAR_NUMBER(%22number%22)
 ;%0A%0A    p

Update API