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

Method addToList

src/main/java/net/optifine/CustomGuis.java:295–320  ·  view source on GitHub ↗
(CustomGuiProperties cgp, List<List<CustomGuiProperties>> listProps)

Source from the content-addressed store, hash-verified

293 }
294
295 private static void addToList(CustomGuiProperties cgp, List<List<CustomGuiProperties>> listProps)
296 {
297 if (cgp.getContainer() == null)
298 {
299 warn("Invalid container: " + cgp.getContainer());
300 }
301 else
302 {
303 int i = cgp.getContainer().ordinal();
304
305 while (listProps.size() <= i)
306 {
307 listProps.add(null);
308 }
309
310 List<CustomGuiProperties> list = (List)listProps.get(i);
311
312 if (list == null)
313 {
314 list = new ArrayList();
315 listProps.set(i, list);
316 }
317
318 list.add(cgp);
319 }
320 }
321
322 public static PlayerControllerOF getPlayerControllerOF()
323 {

Callers 1

updateMethod · 0.95

Calls 6

warnMethod · 0.95
getContainerMethod · 0.80
getMethod · 0.65
sizeMethod · 0.45
addMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected