Remove lombok setters
This commit is contained in:
1 parent
cf0bcefd06
commit
a7f14eb573
1 file changed
+35
-1
@@ -45,7 +45,6 @@ public class EssentiaUserSettings implements UserSettings {
|
|||||||
this.needsSaving = true;
|
this.needsSaving = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Setter
|
|
||||||
public static class Builder {
|
public static class Builder {
|
||||||
|
|
||||||
// TODO - defaults?
|
// TODO - defaults?
|
||||||
@@ -57,6 +56,41 @@ public class EssentiaUserSettings implements UserSettings {
|
|||||||
protected boolean pWeather;
|
protected boolean pWeather;
|
||||||
protected boolean allowTeleports;
|
protected boolean allowTeleports;
|
||||||
|
|
||||||
|
public Builder godMode(boolean godMode) {
|
||||||
|
this.godMode = godMode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder flying(boolean flying) {
|
||||||
|
this.flying = flying;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder flySpeed(double flySpeed) {
|
||||||
|
this.flySpeed = flySpeed;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder walkSpeed(double walkSpeed) {
|
||||||
|
this.walkSpeed = walkSpeed;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder pTime(boolean pTime) {
|
||||||
|
this.pTime = pTime;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder pWeather(boolean pWeather) {
|
||||||
|
this.pWeather = pWeather;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder allowTeleports(boolean allowTeleports) {
|
||||||
|
this.allowTeleports = allowTeleports;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public EssentiaUserSettings build() {
|
public EssentiaUserSettings build() {
|
||||||
return new EssentiaUserSettings(this);
|
return new EssentiaUserSettings(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user