MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / setElement

Method setElement

src/main/java/com/volmit/adapt/util/UIWindow.java:312–321  ·  view source on GitHub ↗
(int position, int row, Element e)

Source from the content-addressed store, hash-verified

310 }
311
312 @Override
313 public UIWindow setElement(int position, int row, Element e) {
314 if (row > highestRow) {
315 highestRow = row;
316 }
317
318 elements.put(getRealPosition((int) clip(position, -getResolution().getMaxWidthOffset(), getResolution().getMaxWidthOffset()).doubleValue(), row), e);
319 updateInventory();
320 return this;
321 }
322
323 @Override
324 public Element getElement(int position, int row) {

Callers 1

openMethod · 0.95

Calls 6

getRealPositionMethod · 0.95
clipMethod · 0.95
getResolutionMethod · 0.95
updateInventoryMethod · 0.95
getMaxWidthOffsetMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected