summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/proxies/AbstractProxy.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-01 20:29:29 +0100
committer zaaarf <zaaarf@proton.me>2023-03-01 20:29:29 +0100
commit65d732c0790a553d00f15ba54df082bf3171e506 (patch)
treedd6843736b429f9125d9d03cce3b6f095d93604b /src/main/java/ftbsc/lll/proxies/AbstractProxy.java
parentde6cd068717a51852dab85e07329cb2fe8814240 (diff)
feat: added setModifier method to proxy builder
Diffstat (limited to 'src/main/java/ftbsc/lll/proxies/AbstractProxy.java')
-rw-r--r--src/main/java/ftbsc/lll/proxies/AbstractProxy.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/proxies/AbstractProxy.java b/src/main/java/ftbsc/lll/proxies/AbstractProxy.java
index 8baf112..01cc6fe 100644
--- a/src/main/java/ftbsc/lll/proxies/AbstractProxy.java
+++ b/src/main/java/ftbsc/lll/proxies/AbstractProxy.java
@@ -112,6 +112,15 @@ public abstract class AbstractProxy {
}
/**
+ * @param newModifier the new modifier value
+ * @return the current state of the builder
+ */
+ public Builder<T> setModifier(int newModifier) {
+ this.modifiers = newModifier;
+ return this;
+ }
+
+ /**
* @return the built proxy object
*/
public abstract T build();