MCPcopy Create free account
hub / github.com/boxbeam/RedLib / set

Method set

src/redempt/redlib/nms/NMSArray.java:47–52  ·  view source on GitHub ↗

Sets the object at the index of the wrapped array @param index The index to set @param obj The object to set. If it is an NMSObject, it will be unwrapped automatically.

(int index, Object obj)

Source from the content-addressed store, hash-verified

45 * @param obj The object to set. If it is an {@link NMSObject}, it will be unwrapped automatically.
46 */
47 public void set(int index, Object obj) {
48 if (obj instanceof NMSObject) {
49 obj = ((NMSObject) obj).getObject();
50 }
51 Array.set(array, index, obj);
52 }
53
54 public int length() {
55 return Array.getLength(array);

Callers

nothing calls this directly

Calls 2

setMethod · 0.65
getObjectMethod · 0.45

Tested by

no test coverage detected