|
24 | 24 | */ |
25 | 25 | package de.bluecolored.bluemap.common.config; |
26 | 26 |
|
| 27 | +import lombok.Getter; |
27 | 28 | import org.spongepowered.configurate.objectmapping.ConfigSerializable; |
28 | 29 |
|
29 | 30 | import java.nio.file.Path; |
|
33 | 34 |
|
34 | 35 | @SuppressWarnings({"FieldMayBeFinal", "FieldCanBeLocal"}) |
35 | 36 | @ConfigSerializable |
| 37 | +@Getter |
36 | 38 | public class WebappConfig { |
37 | 39 |
|
38 | 40 | private boolean enabled = true; |
@@ -65,80 +67,8 @@ public class WebappConfig { |
65 | 67 | private Set<String> scripts = new HashSet<>(); |
66 | 68 | private Set<String> styles = new HashSet<>(); |
67 | 69 |
|
68 | | - public boolean isEnabled() { |
69 | | - return enabled; |
70 | | - } |
71 | | - |
72 | | - public Path getWebroot() { |
73 | | - return webroot; |
74 | | - } |
75 | | - |
76 | | - public boolean isUpdateSettingsFile() { |
77 | | - return updateSettingsFile; |
78 | | - } |
79 | | - |
80 | | - public boolean isUseCookies() { |
81 | | - return useCookies; |
82 | | - } |
83 | | - |
84 | | - public boolean isDefaultToFlatView() { |
85 | | - return defaultToFlatView; |
86 | | - } |
87 | | - |
88 | 70 | public Optional<String> getStartLocation() { |
89 | 71 | return Optional.ofNullable(startLocation); |
90 | 72 | } |
91 | 73 |
|
92 | | - public float getResolutionDefault() { |
93 | | - return resolutionDefault; |
94 | | - } |
95 | | - |
96 | | - public int getMinZoomDistance() { |
97 | | - return minZoomDistance; |
98 | | - } |
99 | | - |
100 | | - public int getMaxZoomDistance() { |
101 | | - return maxZoomDistance; |
102 | | - } |
103 | | - |
104 | | - public int getHiresSliderMax() { |
105 | | - return hiresSliderMax; |
106 | | - } |
107 | | - |
108 | | - public int getHiresSliderDefault() { |
109 | | - return hiresSliderDefault; |
110 | | - } |
111 | | - |
112 | | - public int getHiresSliderMin() { |
113 | | - return hiresSliderMin; |
114 | | - } |
115 | | - |
116 | | - public int getLowresSliderMax() { |
117 | | - return lowresSliderMax; |
118 | | - } |
119 | | - |
120 | | - public int getLowresSliderDefault() { |
121 | | - return lowresSliderDefault; |
122 | | - } |
123 | | - |
124 | | - public int getLowresSliderMin() { |
125 | | - return lowresSliderMin; |
126 | | - } |
127 | | - |
128 | | - public String getMapDataRoot() { |
129 | | - return mapDataRoot; |
130 | | - } |
131 | | - |
132 | | - public String getLiveDataRoot() { |
133 | | - return liveDataRoot; |
134 | | - } |
135 | | - |
136 | | - public Set<String> getScripts() { |
137 | | - return scripts; |
138 | | - } |
139 | | - |
140 | | - public Set<String> getStyles() { |
141 | | - return styles; |
142 | | - } |
143 | | - |
144 | 74 | } |
0 commit comments