MCPcopy Create free account
hub / github.com/Neop/mudmap2 / setPathColor

Method setPathColor

src/main/java/mudmap2/backend/World.java:344–354  ·  view source on GitHub ↗

Sets the color of an exit direction @param dir @param color

(String dir, Color color)

Source from the content-addressed store, hash-verified

342 * @param color
343 */
344 public void setPathColor(String dir, Color color){
345 if(dir == null){
346 throw new NullPointerException();
347 }
348 if(color == null){
349 throw new NullPointerException();
350 }
351
352 pathColors.put(dir, color);
353 callListeners(this);
354 }
355
356 /**
357 * Sets the path color

Callers 5

testSetPathColorMethod · 0.95
testGetPathColorsMethod · 0.95
readFileMethod · 0.95
addEntryMethod · 0.80
saveListMethod · 0.80

Calls 2

callListenersMethod · 0.95
putMethod · 0.80

Tested by 2

testSetPathColorMethod · 0.76
testGetPathColorsMethod · 0.76