9
0
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:
repixelatedmc
2024-08-18 17:15:06 +02:00
9 changed files with 245 additions and 67 deletions

View File

@@ -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;
}