summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-25 21:38:12 +0100
committer zaaarf <zaaarf@proton.me>2023-03-25 21:38:12 +0100
commitf2303ce94374fb40f87eff0063441e09b3abdadd (patch)
tree87ca7aa1af806ac078e2b051c7b99e0954c405f1 /src/main/java/ftbsc
parentb8cd398fd5be79bbe5add01b6b6b998881a1bb46 (diff)
chore: added (restored?) setType with Class object to FieldProxy
Diffstat (limited to 'src/main/java/ftbsc')
-rw-r--r--src/main/java/ftbsc/lll/proxies/impl/FieldProxy.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/proxies/impl/FieldProxy.java b/src/main/java/ftbsc/lll/proxies/impl/FieldProxy.java
index ceb8277..61952b6 100644
--- a/src/main/java/ftbsc/lll/proxies/impl/FieldProxy.java
+++ b/src/main/java/ftbsc/lll/proxies/impl/FieldProxy.java
@@ -87,6 +87,15 @@ public class FieldProxy extends AbstractProxy {
}
/**
+ * @param clazz the {@link Class} corresponding to the element
+ * @return the current state of the builder
+ */
+ public Builder setType(Class<?> clazz) {
+ super.setType(Type.getType(clazz));
+ return this;
+ }
+
+ /**
* Builds a {@link FieldProxy} of the given kind.
* @return the built {@link FieldProxy}
*/