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

Method applyOptions

src/main/java/net/optifine/shaders/Shaders.java:1799–1820  ·  view source on GitHub ↗
(String line, ShaderOption[] ops)

Source from the content-addressed store, hash-verified

1797 }
1798
1799 private static String applyOptions(String line, ShaderOption[] ops)
1800 {
1801 if (ops != null && ops.length > 0)
1802 {
1803 for (int i = 0; i < ops.length; ++i)
1804 {
1805 ShaderOption shaderoption = ops[i];
1806
1807 if (shaderoption.matchesLine(line))
1808 {
1809 line = shaderoption.getSourceLine();
1810 break;
1811 }
1812 }
1813
1814 return line;
1815 }
1816 else
1817 {
1818 return line;
1819 }
1820 }
1821
1822 public static ArrayList listOfShaders()
1823 {

Callers 3

createVertShaderMethod · 0.95
createGeomShaderMethod · 0.95
createFragShaderMethod · 0.95

Calls 2

matchesLineMethod · 0.95
getSourceLineMethod · 0.95

Tested by

no test coverage detected