From f2303ce94374fb40f87eff0063441e09b3abdadd Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sat, 25 Mar 2023 21:38:12 +0100 Subject: [PATCH] chore: added (restored?) setType with Class object to FieldProxy --- src/main/java/ftbsc/lll/proxies/impl/FieldProxy.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ -86,6 +86,15 @@ public class FieldProxy extends AbstractProxy { return this.setParent(parentFQN, 0); } + /** + * @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}