Class NewPonderTooltipManager
java.lang.Object
com.cake.azimuth.ponder.new_tooltip.NewPonderTooltipManager
Manages tracking of which ponder scenes a player has watched, and provides
a registration API for mods to associate items with their ponder scene IDs.
When an item has unwatched scenes, a gold "NEW" badge is appended to the
ponder progress bar tooltip.
This system originated from the Simulated project by the Simulated Team. Full credit goes to them for the original concept and implementation. Adapted and iterated for Azimuth.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforItems(net.minecraft.world.item.Item... items) static booleanhasNewPonderBadge(net.minecraft.network.chat.MutableComponent component) Checks whether a component already contains a "new ponder" badge from any mod.static booleanhasWatchedAllScenes(net.minecraft.world.item.Item item) static booleanhasWatchedScene(net.minecraft.resources.ResourceLocation id) static voidload()static voidsave()static voidsetSceneWatched(net.minecraft.resources.ResourceLocation id)
-
Constructor Details
-
NewPonderTooltipManager
public NewPonderTooltipManager()
-
-
Method Details
-
forItems
public static NewPonderTooltipManager.RegisterBuilder forItems(net.minecraft.world.item.Item... items) -
hasWatchedAllScenes
public static boolean hasWatchedAllScenes(net.minecraft.world.item.Item item) -
setSceneWatched
public static void setSceneWatched(net.minecraft.resources.ResourceLocation id) -
hasWatchedScene
public static boolean hasWatchedScene(net.minecraft.resources.ResourceLocation id) -
clearAllWatched
public static void clearAllWatched() -
hasNewPonderBadge
public static boolean hasNewPonderBadge(net.minecraft.network.chat.MutableComponent component) Checks whether a component already contains a "new ponder" badge from any mod. This enables conflict detection — if another mod (e.g. Simulated) has already appended a new ponder indicator, we skip adding ours to avoid duplication.- Parameters:
component- the tooltip component to check- Returns:
- true if a new ponder badge is already present
-
save
public static void save() -
load
public static void load()
-