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

Method exist

src/main/java/mudmap2/backend/Layer.java:300–302  ·  view source on GitHub ↗

Returns true, if an element at position x,y exists @param x x position @param y y position @return true, if an element exists

(final int x, final int y)

Source from the content-addressed store, hash-verified

298 * @return true, if an element exists
299 */
300 public boolean exist(final int x, final int y) {
301 return elements.exist(x, y);
302 }
303
304 /**
305 * Check whether the layer is empty

Callers 4

testRemoveMethod · 0.95
testExistMethod · 0.95
updateInfobarMethod · 0.95
paintMethod · 0.45

Calls

no outgoing calls

Tested by 2

testRemoveMethod · 0.76
testExistMethod · 0.76