Package redempt.redlib.nms
Class NMSArray
java.lang.Object
redempt.redlib.nms.NMSArray
Wraps any type of Array and provides easy reflection access
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NMSArray
-
-
Method Details
-
get
Gets a wrapped NMSObject with the value at a certain index in the array- Parameters:
index
- The index to get- Returns:
- An NMSObject wrapping the object at the index
-
getDirect
Gets the object at the given index in the wrapped array- Parameters:
index
- The index to get- Returns:
- The object at the index
-
set
Sets the object at the index of the wrapped array- Parameters:
index
- The index to setobj
- The object to set. If it is anNMSObject
, it will be unwrapped automatically.
-
length
public int length()
-