refactor(lombok): add Getter where possible

This commit is contained in:
Breno A.
2024-06-09 09:52:49 -03:00
Unverified
parent 7ee644c794
commit 8f4120fcd3
200 changed files with 708 additions and 1401 deletions
@@ -26,11 +26,14 @@ import it.unimi.dsi.fastutil.ints.*;
import java.nio.file.*;
import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
import lombok.Getter;
import org.greenrobot.eventbus.Subscribe;
public class GachaSystem extends BaseGameSystem {
private static final int starglitterId = 221;
private static final int stardustId = 222;
@Getter
private final Int2ObjectMap<GachaBanner> gachaBanners;
private WatchService watchService;
@@ -41,10 +44,6 @@ public class GachaSystem extends BaseGameSystem {
this.startWatcher(server);
}
public Int2ObjectMap<GachaBanner> getGachaBanners() {
return gachaBanners;
}
public int randomRange(int min, int max) { // Both are inclusive
return ThreadLocalRandom.current().nextInt(max - min + 1) + min;
}