Remove lombok setters

This commit is contained in:
Len 2024-07-28 14:57:48 +02:00
parent cf0bcefd06
commit a7f14eb573

View File

@ -45,7 +45,6 @@ public class EssentiaUserSettings implements UserSettings {
this.needsSaving = true;
}
@Setter
public static class Builder {
// TODO - defaults?
@ -57,6 +56,41 @@ public class EssentiaUserSettings implements UserSettings {
protected boolean pWeather;
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() {
return new EssentiaUserSettings(this);
}