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

Method setFlag

src/main/java/mudmap2/backend/Place.java:323–328  ·  view source on GitHub ↗

Sets a string flag @param key flag name @param state value

(final String key, final boolean state)

Source from the content-addressed store, hash-verified

321 * @param state value
322 */
323 public void setFlag(final String key, final boolean state) {
324 if (key != null) {
325 flags.put(key, state);
326 callWorldChangeListeners();
327 }
328 }
329
330 /**
331 * Gets the flags of a place

Callers 6

testGetFlagMethod · 0.95
testSetFlagMethod · 0.95
testGetFlagsMethod · 0.95
testReadWriteFileMethod · 0.95
testReadWriteFileMethod · 0.95
readFileMethod · 0.95

Calls 2

putMethod · 0.80

Tested by 5

testGetFlagMethod · 0.76
testSetFlagMethod · 0.76
testGetFlagsMethod · 0.76
testReadWriteFileMethod · 0.76
testReadWriteFileMethod · 0.76