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

Method readColorVec3

src/main/java/net/optifine/CustomColors.java:709–727  ·  view source on GitHub ↗
(Properties props, String name)

Source from the content-addressed store, hash-verified

707 }
708
709 private static Vec3 readColorVec3(Properties props, String name)
710 {
711 int i = readColor(props, name);
712
713 if (i < 0)
714 {
715 return null;
716 }
717 else
718 {
719 int j = i >> 16 & 255;
720 int k = i >> 8 & 255;
721 int l = i & 255;
722 float f = (float)j / 255.0F;
723 float f1 = (float)k / 255.0F;
724 float f2 = (float)l / 255.0F;
725 return new Vec3((double)f, (double)f1, (double)f2);
726 }
727 }
728
729 private static CustomColormap getCustomColors(String basePath, String[] paths, int width, int height)
730 {

Callers 1

readColorPropertiesMethod · 0.95

Calls 1

readColorMethod · 0.95

Tested by

no test coverage detected