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

Method writeFile

src/main/java/net/minecraft/src/Config.java:1846–1851  ·  view source on GitHub ↗
(File p_writeFile_0_, String p_writeFile_1_)

Source from the content-addressed store, hash-verified

1844 }
1845
1846 public static void writeFile(File p_writeFile_0_, String p_writeFile_1_) throws IOException {
1847 FileOutputStream fileoutputstream = new FileOutputStream(p_writeFile_0_);
1848 byte[] abyte = p_writeFile_1_.getBytes(StandardCharsets.US_ASCII);
1849 fileoutputstream.write(abyte);
1850 fileoutputstream.close();
1851 }
1852
1853 public static TextureMap getTextureMap() {
1854 return getMinecraft().getTextureMapBlocks();

Callers 1

saveShaderMethod · 0.95

Calls 3

getBytesMethod · 0.80
closeMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected