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

Method addToBlockList

src/main/java/net/optifine/CustomColors.java:583–607  ·  view source on GitHub ↗
(CustomColormap cm, List blockList)

Source from the content-addressed store, hash-verified

581 }
582
583 private static void addToBlockList(CustomColormap cm, List blockList)
584 {
585 int[] aint = cm.getMatchBlockIds();
586
587 if (aint != null && aint.length > 0)
588 {
589 for (int i = 0; i < aint.length; ++i)
590 {
591 int j = aint[i];
592
593 if (j < 0)
594 {
595 warn("Invalid block ID: " + j);
596 }
597 else
598 {
599 addToList(cm, blockList, j);
600 }
601 }
602 }
603 else
604 {
605 warn("No match blocks: " + Config.arrayToString(aint));
606 }
607 }
608
609 private static void addToList(CustomColormap cm, List list, int id)
610 {

Callers 1

readBlockColormapsMethod · 0.95

Calls 4

warnMethod · 0.95
addToListMethod · 0.95
arrayToStringMethod · 0.95
getMatchBlockIdsMethod · 0.45

Tested by

no test coverage detected