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

Method readCitProperties

src/main/java/net/optifine/CustomItems.java:97–123  ·  view source on GitHub ↗
(String fileName)

Source from the content-addressed store, hash-verified

95 }
96
97 private static void readCitProperties(String fileName)
98 {
99 try
100 {
101 ResourceLocation resourcelocation = new ResourceLocation(fileName);
102 InputStream inputstream = Config.getResourceStream(resourcelocation);
103
104 if (inputstream == null)
105 {
106 return;
107 }
108
109 Config.dbg("CustomItems: Loading " + fileName);
110 Properties properties = new PropertiesOrdered();
111 properties.load(inputstream);
112 inputstream.close();
113 useGlint = Config.parseBoolean(properties.getProperty("useGlint"), true);
114 }
115 catch (FileNotFoundException var4)
116 {
117 return;
118 }
119 catch (IOException ioexception)
120 {
121 ioexception.printStackTrace();
122 }
123 }
124
125 private static void update(IResourcePack rp)
126 {

Callers 1

updateMethod · 0.95

Calls 6

getResourceStreamMethod · 0.95
dbgMethod · 0.95
parseBooleanMethod · 0.95
closeMethod · 0.65
loadMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected