mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-31 04:46:40 +00:00
Merge remote-tracking branch 'origin/iris4' into iris4
This commit is contained in:
@@ -54,6 +54,18 @@ public class WrappedField<C, T> {
|
||||
}
|
||||
}
|
||||
|
||||
public void set(T value) throws IllegalAccessException {
|
||||
set(null, value);
|
||||
}
|
||||
|
||||
public void set(C instance, T value) throws IllegalAccessException {
|
||||
if (field == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
field.set(instance, value);
|
||||
}
|
||||
|
||||
public boolean hasFailed() {
|
||||
return field == null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user