MCPcopy Create free account
hub / github.com/Garten/sourcecraft / putInBrackets

Method putInBrackets

src/vmfWriter/ValveWriter.java:83–88  ·  view source on GitHub ↗
(String key, java.awt.Color color)

Source from the content-addressed store, hash-verified

81 }
82
83 public ValveWriter putInBrackets(String key, java.awt.Color color) throws IOException {
84 if (color != null) {
85 this.put(key, "{" + color.getRed() + " " + color.getGreen() + " " + color.getBlue() + "}");
86 }
87 return this;
88 }
89
90 public ValveWriter putTransparentColor(String key, Color color) throws IOException {
91 return this.put(key, color.red + " " + color.green + " " + color.blue + " " + color.alpha);

Callers 1

writeVmfMethod · 0.80

Calls 4

putMethod · 0.95
getRedMethod · 0.80
getGreenMethod · 0.80
getBlueMethod · 0.80

Tested by

no test coverage detected