@@ -70,7 +70,7 @@ private static Component displaySavedSeeds() {
7070 @ Config
7171 public static boolean AutoApplySeedCrackerSeed = true ;
7272
73- private static String getCurrentServerKey () {
73+ public static String getCurrentServerKey () {
7474 Minecraft minecraft = Minecraft .getInstance ();
7575 if (minecraft == null || minecraft .getConnection () == null || minecraft .getConnection ().getConnection () == null ) {
7676 return null ;
@@ -253,6 +253,37 @@ public static void setWaypointCompassEnabled(String worldIdentifier, java.util.S
253253 WaypointCompassEnabled .put (worldIdentifier , String .join ("," , names ));
254254 }
255255
256+ @ Config
257+ public static Map <String , String > SeedMapCompletedStructures = new HashMap <>();
258+
259+ public static java .util .Set <String > getSeedMapCompletedStructures (String worldIdentifier ) {
260+ if (worldIdentifier == null || worldIdentifier .isBlank ()) {
261+ return new java .util .HashSet <>();
262+ }
263+ String raw = SeedMapCompletedStructures .get (worldIdentifier );
264+ if (raw == null || raw .isBlank ()) {
265+ return new java .util .HashSet <>();
266+ }
267+ java .util .Set <String > entries = new java .util .HashSet <>();
268+ for (String part : raw .split ("," )) {
269+ if (!part .isBlank ()) {
270+ entries .add (part .trim ());
271+ }
272+ }
273+ return entries ;
274+ }
275+
276+ public static void setSeedMapCompletedStructures (String worldIdentifier , java .util .Set <String > entries ) {
277+ if (worldIdentifier == null || worldIdentifier .isBlank ()) {
278+ return ;
279+ }
280+ if (entries == null || entries .isEmpty ()) {
281+ SeedMapCompletedStructures .remove (worldIdentifier );
282+ return ;
283+ }
284+ SeedMapCompletedStructures .put (worldIdentifier , String .join ("," , entries ));
285+ }
286+
256287 public static void applyWaypointCompassOverlaySetting () {
257288 try {
258289 dev .xpple .simplewaypoints .config .Configs .waypointMarkerRenderLimit = 0 ;
0 commit comments