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

Method addToList

src/main/java/net/optifine/CustomColors.java:609–625  ·  view source on GitHub ↗
(CustomColormap cm, List list, int id)

Source from the content-addressed store, hash-verified

607 }
608
609 private static void addToList(CustomColormap cm, List list, int id)
610 {
611 while (id >= list.size())
612 {
613 list.add(null);
614 }
615
616 List list1 = (List)list.get(id);
617
618 if (list1 == null)
619 {
620 list1 = new ArrayList();
621 list.set(id, list1);
622 }
623
624 list1.add(cm);
625 }
626
627 private static CustomColormap[][] blockListToArray(List list)
628 {

Callers 1

addToBlockListMethod · 0.95

Calls 4

getMethod · 0.65
sizeMethod · 0.45
addMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected