public static class Wearable.CODES
extends java.lang.Object
| Constructor | Description | 
|---|---|
| CODES() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | add(java.lang.String desc,
   long dependencyMask,
   double armorStrength,
   int wornOrder,
   double clothWeight,
   double leatherWeight,
   double metalWeight,
   java.lang.String usualName) | Adds a new wear location. | 
| long[] | all() | Returns an array of the numeric codes for all locations | 
| static long[] | ALL() | Returns an array of the numeric codes for all locations | 
| long[] | all_ordered() | Returns an array of the numeric codes for all locations | 
| static long[] | ALL_ORDERED() | Returns an array of the numeric codes for all locations | 
| static Wearable.CODES | c(byte c) | |
| long[] | dependency_masks() | Returns the location dependency mask (or -1) of the various locations | 
| static long[] | DEPENDENCY_MASKS() | Returns the location dependency mask (or -1) of the various locations | 
| long | find_endsWith(java.lang.String rsc) | Returns the index of the names locations, or -1 | 
| static long | FIND_endsWith(java.lang.String rsc) | Returns the index of the names locations, or -1 | 
| long[] | find_endsWiths(java.lang.String rsc) | Returns the index of the names locations, or [] | 
| static long[] | FIND_endsWiths(java.lang.String rsc) | Returns the index of the names locations, or -1 | 
| long | find_ignoreCase(java.lang.String rsc) | Returns the code of the names , or -1 | 
| static long | FIND_ignoreCase(java.lang.String rsc) | Returns the code of the names , or -1 | 
| int | findDex_endsWith(java.lang.String rsc) | Returns the index of the names locations, or -1 | 
| static int | FINDDEX_endsWith(java.lang.String rsc) | Returns the index of the names locations, or -1 | 
| int | findDex_ignoreCase(java.lang.String rsc) | Returns the index of the names locations, or -1 | 
| static int | FINDDEX_ignoreCase(java.lang.String rsc) | Returns the index of the names locations, or -1 | 
| long | get(int x) | Returns an the numeric codes of the indexes locations code | 
| static long | GET(int x) | Returns an the numeric codes of the indexes locations code | 
| static Wearable.CODES | instance() | |
| static boolean | IS_VALID(int code) | Returns whether the code is valid | 
| static java.lang.String | LISTED_CODES(long wornCode) | Returns a comma-delimited list of location names
 represented by the given worn code. | 
| java.lang.String | listedCodes(long wornCode) | Returns a comma-delimited list of location names
 represented by the given worn code. | 
| double[] | location_strength_points() | Returns an array of the protective strength of each location | 
| static double[] | LOCATION_STRENGTH_POINTS() | Returns an array of the protective strength of each location | 
| double[][] | material_weight_item() | Returns an array representing the relative weight of items made for
 each of the several worn locations, in the same order as their
 numeric value. | 
| static double[][] | MATERIAL_WEIGHT_ITEM() | Returns an array representing the relative weight of items made for
 each of the several worn locations, in the same order as their
 numeric value. | 
| java.lang.String | name(int code) | Returns the name of the code | 
| java.lang.String | name(long code) | Returns the name of the code | 
| static java.lang.String | NAME(int code) | Returns the name of the locations | 
| static java.lang.String | NAME(long code) | Returns the name of the locations | 
| java.lang.String[] | names() | Returns the names of the various locations | 
| static java.lang.String[] | NAMES() | Returns the names of the various locations | 
| java.lang.String[] | namesup() | Returns the names of the various locations | 
| static java.lang.String[] | NAMESUP() | Returns the names of the various locations | 
| java.lang.String | nameup(int code) | Returns the name of the code | 
| java.lang.String | nameup(long code) | Returns the name of the code | 
| static java.lang.String | NAMEUP(int code) | Returns the name of the locations | 
| static java.lang.String | NAMEUP(long code) | Returns the name of the locations | 
| void | replace(int codeIndex,
       java.lang.String desc,
       long dependencyMask,
       double armorStrength,
       int wornOrder,
       double clothWeight,
       double leatherWeight,
       double metalWeight,
       java.lang.String usualName) | replaces an existing wear location. | 
| static void | reset() | |
| int | total() | Returns total number of codes 0 - this-1 | 
| static int | TOTAL() | Returns total number of codes 0 - this-1 | 
| java.lang.String | usual(long code) | Returns the name of typical equipment here | 
| static java.lang.String | USUAL(long code) | Returns the name of typical equipment here | 
public static Wearable.CODES c(byte c)
public static Wearable.CODES instance()
public static void reset()
public static int TOTAL()
public int total()
public static long[] ALL_ORDERED()
public long[] all_ordered()
public static long[] ALL()
public long[] all()
public static long GET(int x)
x - the indexed locations codepublic long get(int x)
x - the indexed locations codepublic static int FINDDEX_ignoreCase(java.lang.String rsc)
rsc - the resource namepublic int findDex_ignoreCase(java.lang.String rsc)
rsc - the resource namepublic static long FIND_ignoreCase(java.lang.String rsc)
rsc - the resource namepublic long find_ignoreCase(java.lang.String rsc)
rsc - the resource namepublic static int FINDDEX_endsWith(java.lang.String rsc)
rsc - the resource namepublic int findDex_endsWith(java.lang.String rsc)
rsc - the resource namepublic static long FIND_endsWith(java.lang.String rsc)
rsc - the resource namepublic static long[] FIND_endsWiths(java.lang.String rsc)
rsc - the resource namepublic long find_endsWith(java.lang.String rsc)
rsc - the loc namepublic long[] find_endsWiths(java.lang.String rsc)
rsc - the loc namepublic static java.lang.String LISTED_CODES(long wornCode)
wornCode - the worn codepublic java.lang.String listedCodes(long wornCode)
wornCode - the worn codepublic static boolean IS_VALID(int code)
code - the resource codepublic static java.lang.String[] NAMES()
public static java.lang.String[] NAMESUP()
public java.lang.String[] names()
public java.lang.String[] namesup()
public static java.lang.String NAME(int code)
code - the codepublic static java.lang.String NAMEUP(int code)
code - the codepublic java.lang.String name(int code)
code - the codepublic java.lang.String nameup(int code)
code - the codepublic static java.lang.String NAME(long code)
code - the codepublic static java.lang.String NAMEUP(long code)
code - the codepublic java.lang.String name(long code)
code - the codepublic java.lang.String nameup(long code)
code - the codepublic java.lang.String usual(long code)
code - the codepublic static java.lang.String USUAL(long code)
code - the codepublic static long[] DEPENDENCY_MASKS()
public long[] dependency_masks()
public static double[][] MATERIAL_WEIGHT_ITEM()
public double[][] material_weight_item()
public static double[] LOCATION_STRENGTH_POINTS()
public double[] location_strength_points()
public void add(java.lang.String desc,
                long dependencyMask,
                double armorStrength,
                int wornOrder,
                double clothWeight,
                double leatherWeight,
                double metalWeight,
                java.lang.String usualName)
desc - the wear location descriptiondependencyMask - the dependency locationsarmorStrength - armor strength factorwornOrder - the worn orderclothWeight - the cloth weight factorleatherWeight - the leather weight factormetalWeight - the metal weight factorusualName - for auto-generated gear, a noun that might go herepublic void replace(int codeIndex,
                    java.lang.String desc,
                    long dependencyMask,
                    double armorStrength,
                    int wornOrder,
                    double clothWeight,
                    double leatherWeight,
                    double metalWeight,
                    java.lang.String usualName)
codeIndex - the index of the location to replacedesc - the wear location descriptiondependencyMask - the dependency locationsarmorStrength - armor strength factorwornOrder - the worn orderclothWeight - the cloth weight factorleatherWeight - the leather weight factormetalWeight - the metal weight factorusualName - the usual equipment name