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

Method propertyListToArray

src/main/java/net/optifine/CustomGuis.java:224–250  ·  view source on GitHub ↗
(List<List<CustomGuiProperties>> listProps)

Source from the content-addressed store, hash-verified

222 }
223
224 private static CustomGuiProperties[][] propertyListToArray(List<List<CustomGuiProperties>> listProps)
225 {
226 if (listProps.isEmpty())
227 {
228 return (CustomGuiProperties[][])null;
229 }
230 else
231 {
232 CustomGuiProperties[][] acustomguiproperties = new CustomGuiProperties[CustomGuiProperties.EnumContainer.VALUES.length][];
233
234 for (int i = 0; i < acustomguiproperties.length; ++i)
235 {
236 if (listProps.size() > i)
237 {
238 List<CustomGuiProperties> list = (List)listProps.get(i);
239
240 if (list != null)
241 {
242 CustomGuiProperties[] acustomguiproperties1 = (CustomGuiProperties[])((CustomGuiProperties[])list.toArray(new CustomGuiProperties[list.size()]));
243 acustomguiproperties[i] = acustomguiproperties1;
244 }
245 }
246 }
247
248 return acustomguiproperties;
249 }
250 }
251
252 private static void update(IResourcePack rp, List<List<CustomGuiProperties>> listProps)
253 {

Callers 1

updateMethod · 0.95

Calls 4

getMethod · 0.65
isEmptyMethod · 0.45
sizeMethod · 0.45
toArrayMethod · 0.45

Tested by

no test coverage detected