|
1 | 1 | package com.cake.azimuth.ponder.new_tooltip; |
2 | 2 |
|
| 3 | +import com.cake.azimuth.Azimuth; |
3 | 4 | import com.google.gson.JsonArray; |
4 | 5 | import com.google.gson.JsonElement; |
5 | 6 | import com.google.gson.JsonParser; |
6 | 7 | import com.mojang.serialization.Codec; |
7 | 8 | import com.mojang.serialization.DataResult; |
8 | 9 | import com.mojang.serialization.JsonOps; |
9 | | -import com.cake.azimuth.Azimuth; |
10 | 10 | import net.minecraft.client.Minecraft; |
11 | 11 | import net.minecraft.network.chat.Component; |
12 | 12 | import net.minecraft.network.chat.MutableComponent; |
@@ -41,7 +41,7 @@ public class NewPonderTooltipManager { |
41 | 41 | private static final Object LOCK = new Object(); |
42 | 42 |
|
43 | 43 | private static Path filePath() { |
44 | | - return Minecraft.getInstance().gameDirectory.toPath().resolve("azimuth_ponders_watched.json"); |
| 44 | + return Minecraft.getInstance().gameDirectory.toPath().resolve("ponders_watched_azimuth.json"); |
45 | 45 | } |
46 | 46 |
|
47 | 47 | public static RegisterBuilder forItems(final Item... items) { |
@@ -70,6 +70,14 @@ public static boolean hasWatchedScene(final ResourceLocation id) { |
70 | 70 | return WATCHED_PONDER_SCENES != null && WATCHED_PONDER_SCENES.contains(id); |
71 | 71 | } |
72 | 72 |
|
| 73 | + public static void clearAllWatched() { |
| 74 | + load(); |
| 75 | + if (WATCHED_PONDER_SCENES != null) { |
| 76 | + WATCHED_PONDER_SCENES.clear(); |
| 77 | + save(); |
| 78 | + } |
| 79 | + } |
| 80 | + |
73 | 81 | /** |
74 | 82 | * Checks whether a component already contains a "new ponder" badge from any mod. |
75 | 83 | * This enables conflict detection — if another mod (e.g. Simulated) has already |
|
0 commit comments