MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / parseFormat

Method parseFormat

src/main/java/net/optifine/CustomColormap.java:70–98  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

68 }
69
70 private int parseFormat(String str)
71 {
72 if (str == null)
73 {
74 return 0;
75 }
76 else
77 {
78 str = str.trim();
79
80 if (str.equals("vanilla"))
81 {
82 return 0;
83 }
84 else if (str.equals("grid"))
85 {
86 return 1;
87 }
88 else if (str.equals("fixed"))
89 {
90 return 2;
91 }
92 else
93 {
94 warn("Unknown format: " + str);
95 return -1;
96 }
97 }
98 }
99
100 public boolean isValid(String path)
101 {

Callers 1

CustomColormapMethod · 0.95

Calls 3

warnMethod · 0.95
trimMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected