Files
OpenOnyx/src/openonyx/render/group_v/IconPaths.java
T

45 lines
1.1 KiB
Java

package openonyx.render.group_v;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public final class IconPaths {
private static final Map<String, float[]> STRING_MAP = new LinkedHashMap<>();
public static void L(String string) {
STRING_MAP.remove(string);
}
private IconPaths() {
}
public static List<float[]> L(String string) {
String string1 = string;
ArrayList arrayList = new ArrayList(STRING_MAP.size());
Iterator iterator = STRING_MAP.entrySet().iterator();
while (iterator.hasNext()) {
Entry entry;
if (!((String)(entry = (Entry)iterator.next()).getKey()).equals(string1)) {
arrayList.add((float[])entry.getValue());
}
}
return arrayList;
}
public static void L(String string, float f, float g, float h, float i) {
float[] j = new float[4];
boolean bl = true;
j[0] = f;
j[1] = g;
j[2] = h;
j[3] = i;
STRING_MAP.put(string, j);
}
}